本文整理汇总了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 ;
}