本文整理了Java中org.jooq.TableField.contains()
方法的一些代码示例,展示了TableField.contains()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableField.contains()
方法的具体详情如下:
包路径:org.jooq.TableField
类名称:TableField
方法名:contains
暂无
代码示例来源:origin: com.walmartlabs.concord.server/concord-server
public List<RepositoryEntry> find(String repoUrl) {
try (DSLContext tx = DSL.using(cfg)) {
return selectRepositoryEntry(tx)
.where(REPOSITORIES.REPO_URL.contains(repoUrl))
.fetch(this::toEntry);
}
}
代码示例来源:origin: rancher/cattle
@Override
public List<Account> searchUsers(String username) {
return create()
.select(ACCOUNT.fields())
.from(ACCOUNT)
.join(CREDENTIAL)
.on(CREDENTIAL.ACCOUNT_ID.eq(ACCOUNT.ID))
.where(ACCOUNT.STATE.in(getActiveStates())
.and(CREDENTIAL.STATE.eq(CommonStatesConstants.ACTIVE))
.and(CREDENTIAL.PUBLIC_VALUE.contains(username))
.and(CREDENTIAL.KIND.eq(CredentialConstants.KIND_PASSWORD)))
.orderBy(ACCOUNT.ID.asc()).fetchInto(Account.class);
}
代码示例来源:origin: com.walmartlabs.concord.server/concord-server
public List<AnsibleHostEntry> list(UUID instanceId, Timestamp instanceCreatedAt,
String host, String hostGroup,
AnsibleHostStatus status,
int limit, int offset) {
return txResult(tx -> {
SelectConditionStep<AnsibleHostsRecord> q = tx.selectFrom(ANSIBLE_HOSTS)
.where(ANSIBLE_HOSTS.INSTANCE_ID.eq(instanceId)
.and(ANSIBLE_HOSTS.INSTANCE_CREATED_AT.eq(instanceCreatedAt)));
if (host != null) {
q.and(ANSIBLE_HOSTS.HOST.contains(host));
}
if (hostGroup != null) {
q.and(ANSIBLE_HOSTS.HOST_GROUP.eq(hostGroup));
}
if (status != null) {
q.and(ANSIBLE_HOSTS.STATUS.eq(status.name()));
}
return q.orderBy(ANSIBLE_HOSTS.HOST)
.limit(limit)
.offset(offset)
.fetch(AnsibleHostsDao::toEntity);
});
}
内容来源于网络,如有侵权,请联系作者删除!