本文整理了Java中net.java.ao.Query.order
方法的一些代码示例,展示了Query.order
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.order
方法的具体详情如下:
包路径:net.java.ao.Query
类名称:Query
方法名:order
暂无
代码示例来源:origin: com.atlassian.plugin.automation/automation-module
@Override
public Iterable<Rule> getRules()
{
final List<Rule> rules = newArrayList();
for (RuleEntity ruleEntity : ao.find(RuleEntity.class, Query.select().order("RULE_NAME ASC")))
{
rules.add(transformRule(ruleEntity));
}
return rules;
}
代码示例来源:origin: com.marvelution.jira.plugins/jira-jenkins-plugin
@Override
public List<JobMapping> doInTransaction() {
Query query = Query.select();
if (!includeDeleted) {
query.where(DELETED + " = ?", Boolean.FALSE);
}
query.order(NAME);
return Arrays.asList(ao.find(JobMapping.class, query));
}
});
代码示例来源:origin: com.marvelution.jira.plugins/jira-jenkins-plugin
@Override
public List<BuildMapping> doInTransaction() {
return Arrays.asList(ao.find(BuildMapping.class, Query.select()
.where(JOB_ID + " = ?", jobId)
.order(TIME_STAMP)));
}
});
代码示例来源:origin: com.atlassian.labs.hipchat/hipchat-for-jira-plugin
@Nonnull
@Override
public Collection<ProjectConfiguration> getProjectConfigurations(int startIndex, int maxConfigurationGroup) {
final List<String> configurationGroupIds = getConfigurationGroupIds(startIndex, maxConfigurationGroup);
if (configurationGroupIds.size() == 0) {
return Collections.emptyList();
}
final String inClause = Joiner.on(",").join(Collections2.transform(configurationGroupIds,
new Function<String, String>() {
@Override
public String apply(@Nullable String input) {
return "'" + input + "'";
}
}));
final Query query = Query.select()
.where(ProjectConfigurationAO.COLUMN_CONFIGURATION_GROUP_ID + " IN (" + inClause + ")")
.order(ProjectConfigurationAO.COLUMN_CONFIGURATION_GROUP_ID);
ProjectConfigurationAO[] allProjectConfigurationItems = getAO().find(ProjectConfigurationAO.class, query);
return Arrays.<ProjectConfiguration>asList(allProjectConfigurationItems);
}
代码示例来源:origin: com.marvelution.jira.plugins/jira-jenkins-plugin
@Override
public List<JobMapping> doInTransaction() {
Query query = Query.select();
if (includeDeleted) {
query.where(SITE_ID + " = ?", siteId);
} else {
query.where(SITE_ID + " = ? AND " + DELETED + " = ?", siteId, Boolean.FALSE);
}
query.order(NAME);
return Arrays.asList(ao.find(JobMapping.class, query));
}
});
代码示例来源:origin: com.marvelution.jira.plugins/jira-jenkins-plugin
.from(BuildMapping.class)
.where(whereClaus.toString())
.order(TIME_STAMP + DESC);
代码示例来源:origin: com.marvelution.jira.plugins/jira-jenkins-plugin
@Override
public List<BuildMapping> doInTransaction() {
return Arrays.asList(ao.find(BuildMapping.class, Query.select()
.where(JOB_ID + " = ? AND " + BUILD_NUMBER + " >= ? AND " + BUILD_NUMBER +
" <= ?", jobId, buildRange.getMinimumInteger(), buildRange.getMaximumInteger())
.order(TIME_STAMP)));
}
});
代码示例来源:origin: Eernie/bitbucket-webhooks-plugin
public WebHookConfiguration[] getWebHookConfigurations(Repository repo) {
return activeObjects.find(WebHookConfiguration.class, Query.select()
.where(COLUMN_REPO_ID + " = ?", repo.getId())
.order(COLUMN_TITLE));
}
代码示例来源:origin: Eernie/bitbucket-webhooks-plugin
public WebHookConfiguration[] getEnabledWebHookConfigurations(Repository repo, EventType eventType) {
return activeObjects.find(WebHookConfiguration.class, Query.select()
.where(COLUMN_REPO_ID + " = ? AND " + COLUMN_ENABLED + " = ? AND " + eventType.getQueryColumn() + " = ?",
repo.getId(), true, true)
.order(COLUMN_TITLE));
}
代码示例来源:origin: com.marvelution.jira.plugins/jira-jenkins-plugin
.from(IssueMapping.class)
.where(finalClaus.toString())
.order(BUILD_DATE + DESC);
代码示例来源:origin: com.atlassian.webhooks/atlassian-webhooks-plugin
query.offset(search.getOffset());
query.distinct();
query.order("ID ASC");
代码示例来源:origin: com.atlassian.plugin.automation/automation-module
ao.stream(AdminAuditMessageEntity.class, Query.select("ID, DATE, ACTOR, RULE_ID, MESSAGE").offset(startAt).limit(resultsLimit).order("DATE DESC"), new EntityStreamCallback<AdminAuditMessageEntity, Integer>()
代码示例来源:origin: com.atlassian.plugin.automation/automation-module
List<AuditMessage> messages = Lists.newArrayList();
for (AuditMessageEntity msgEntity : ao.find(AuditMessageEntity.class, Query.select().offset(startAt).limit(resultsLimit).order("DATE DESC")))
内容来源于网络,如有侵权,请联系作者删除!