本文整理匯總了Java中org.jooq.Record.get方法的典型用法代碼示例。如果您正苦於以下問題:Java Record.get方法的具體用法?Java Record.get怎麽用?Java Record.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.jooq.Record
的用法示例。
在下文中一共展示了Record.get方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildFromRecord
import org.jooq.Record; //導入方法依賴的package包/類
public static Tweet buildFromRecord(Record record) {
final User user = User.buildFromRecord(record);
return
new Tweet(
record.get(TWEETS.ID).longValue(),
record.get(TWEETS.CREATED_AT),
user,
record.get(TWEETS.TEXT),
record.get(TWEETS.IS_RETWEET));
}
示例2: buildFromRecord
import org.jooq.Record; //導入方法依賴的package包/類
public static User buildFromRecord(Record record) {
return
new User(
record.get(USERS.ID).longValue(),
record.get(USERS.NAME),
record.get(USERS.SCREEN_NAME),
record.get(USERS.LOCATION),
record.get(USERS.VERIFIED));
}
示例3: mapTodo
import org.jooq.Record; //導入方法依賴的package包/類
public static Todo mapTodo(Record record) {
Todo todo = new Todo(
record.get(TODOS.ID),
asUUID(record.get(TODOS.UUID)),
defaultIfNull(record.get(TODOS.USER_ID),0L),
record.get(TODOS.SUMMARY),
record.get(TODOS.DESCRIPTION));
LOG.trace("todo returned : {}", todo);
return todo ;
}
示例4: mapUser
import org.jooq.Record; //導入方法依賴的package包/類
public static User mapUser(Record record) {
User user = new User(record.get(USERS.ID),
UUID.nameUUIDFromBytes(record.get(USERS.UUID)),
record.get(USERS.NAME));
LOG.trace("user returned : {}", user);
return user ;
}