当前位置: 首页>>代码示例>>Java>>正文


Java Row.getDate方法代码示例

本文整理汇总了Java中com.datastax.driver.core.Row.getDate方法的典型用法代码示例。如果您正苦于以下问题:Java Row.getDate方法的具体用法?Java Row.getDate怎么用?Java Row.getDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.datastax.driver.core.Row的用法示例。


在下文中一共展示了Row.getDate方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: marshalRow

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
protected IndexCreatedEvent marshalRow(Row row)
{
    if (row == null)
    {
        return null;
    }
    //look up index here
    Index index = new Index();
    index.setName(row.getString(Columns.INDEX_NAME));
    index.setTable(row.getString(Columns.DATABASE), row.getString(Columns.TABLE));
    Index toUse;
    try
    {
        toUse = indexRepo.read(index.getId());
    } catch (ItemNotFoundException e)//this should only happen in tests that do not have full test data established; errors will be evident if this happens in the actual app
    {
        toUse = index;
    }
    IndexCreatedEvent i = new IndexCreatedEvent(row.getUUID(Columns.ID), row.getDate(Columns.STARTED_AT), row.getDate(Columns.UPDATED_AT), toUse, row.getLong(Columns.TOTAL_RECORDS), row.getLong(Columns.RECORDS_COMPLETED));
    i.setFatalError(row.getString(Columns.FATAL_ERROR));
    i.setErrors(row.getList(Columns.ERRORS, String.class));
    i.calculateValues();
    return i;
}
 
开发者ID:PearsonEducation,项目名称:Docussandra,代码行数:25,代码来源:IndexStatusRepositoryImpl.java

示例2: load

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
    data.id = row.getString(0);
    data.type = row.getInt(1);    // NOTE: in datastax driver,  If the int value is NULL, 0 is returned!
    data.expires = row.getDate(2);
    data.other = row.getInt(3);
    data.ns = row.getString(4);     
    data.notes = row.getString(5);
    data.cred = row.getBytesUnsafe(6);            
    return data;
}
 
开发者ID:att,项目名称:AAF,代码行数:12,代码来源:CredDAO.java

示例3: load

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
	data.user = row.getString(0);
	data.delegate = row.getString(1);
	data.expires = row.getDate(2);
	return data;
}
 
开发者ID:att,项目名称:AAF,代码行数:8,代码来源:DelegateDAO.java

示例4: load

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
	data.user = row.getString(0);
	data.role = row.getString(1);
	data.ns = row.getString(2);
	data.rname = row.getString(3);
	data.expires = row.getDate(4);
	return data;
}
 
开发者ID:att,项目名称:AAF,代码行数:10,代码来源:UserRoleDAO.java

示例5: load

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
	// Int more efficient
	data.name = row.getString(0);
	data.seg = row.getInt(1);
	data.touched = row.getDate(2);
	return data;
}
 
开发者ID:att,项目名称:AAF,代码行数:9,代码来源:CacheInfoDAO.java

示例6: load

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
    data.mechid = row.getString(0);
    data.machine = row.getString(1);
    data.type = row.getSet(2, String.class);
    data.sponsor = row.getString(3);
    data.ca = row.getString(4);
    data.dir = row.getString(5);
    data.appName = row.getString(6);
    data.os_user = row.getString(7);
    data.notify = row.getString(8);
    data.expires = row.getDate(9);
    data.renewDays = row.getInt(10);
    return data;
}
 
开发者ID:att,项目名称:AAF,代码行数:16,代码来源:ArtiDAO.java

示例7: load

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
           data.id 		= row.getUUID(0);
           data.target		= row.getString(1);
           data.memo       = row.getString(2);
           data.start 		= row.getDate(3);
           data.expires 	= row.getDate(4);
           data.construct 	= row.getBytes(5);
           return data;
       }
 
开发者ID:att,项目名称:AAF,代码行数:11,代码来源:FutureDAO.java

示例8: create

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public UserRole create(Row row) {
	return new UserRole(row.getString(0), row.getString(1), row.getString(2),row.getString(3),row.getDate(4));
}
 
开发者ID:att,项目名称:AAF,代码行数:5,代码来源:UserRole.java

示例9: create

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Future create(Row row) {
	return new Future(row.getUUID(0),row.getString(1),row.getString(2),
			row.getDate(3),row.getDate(4));
}
 
开发者ID:att,项目名称:AAF,代码行数:6,代码来源:Future.java

示例10: create

import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Notification create(Row row) {
	return new Notification(row.getString(0), row.getInt(1), row.getDate(2),row.getInt(3));
}
 
开发者ID:att,项目名称:AAF,代码行数:5,代码来源:Notification.java


注:本文中的com.datastax.driver.core.Row.getDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。