當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。