本文整理汇总了Java中com.querydsl.core.support.QueryMixin类的典型用法代码示例。如果您正苦于以下问题:Java QueryMixin类的具体用法?Java QueryMixin怎么用?Java QueryMixin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QueryMixin类属于com.querydsl.core.support包,在下文中一共展示了QueryMixin类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reql
import com.querydsl.core.support.QueryMixin; //导入依赖的package包/类
public static ReqlExpr reql(Table table, QueryMixin<?> queryMixin) {
ReqlExpr query = table;
Predicate whereClause = queryMixin.getMetadata().getWhere();
if (whereClause != null) {
query = query.filter(reql(queryMixin.getMetadata().getWhere()));
}
Long limit = queryMixin.getMetadata().getModifiers().getLimit();
if (limit != null) {
query = query.limit(limit);
}
Long offset = queryMixin.getMetadata().getModifiers().getOffset();
if (offset != null) {
query = query.skip(offset);
}
List<OrderSpecifier<?>> orderBys = queryMixin.getMetadata().getOrderBy();
if (!orderBys.isEmpty()) {
query = serializer.toSort(orderBys, query);
}
return query;
}
示例2: AsyncMongoQuery
import com.querydsl.core.support.QueryMixin; //导入依赖的package包/类
protected AsyncMongoQuery(MongoDatabase database) {
this.database = database;
@SuppressWarnings("unchecked")
Q query = (Q) this;
this.queryMixin = new QueryMixin<Q>(query, new DefaultQueryMetadata(), false);
this.serializer = new MongodbSerializer();
}
示例3: DynamoDBQuery
import com.querydsl.core.support.QueryMixin; //导入依赖的package包/类
public DynamoDBQuery(AmazonDynamoDB client, EntityPath<Q> entityPath) {
this.queryMixin = new QueryMixin<DynamoDBQuery<Q>>(this,
new DefaultQueryMetadata().noValidate());
this.client = client;
this.mapper = new DynamoDBMapper(this.client);
this.serializer = DynamodbSerializer.DEFAULT;
this.entityPath = entityPath;
}
示例4: AnyEmbeddedBuilder
import com.querydsl.core.support.QueryMixin; //导入依赖的package包/类
public AnyEmbeddedBuilder(QueryMixin<Q> queryMixin,
Path<? extends Collection<?>> collection) {
this.queryMixin = queryMixin;
this.collection = collection;
}
示例5: JoinBuilder
import com.querydsl.core.support.QueryMixin; //导入依赖的package包/类
public JoinBuilder(QueryMixin<Q> queryMixin, Path<?> ref, Path<T> target) {
this.queryMixin = queryMixin;
this.ref = ref;
this.target = target;
}
示例6: ElasticsearchQuery
import com.querydsl.core.support.QueryMixin; //导入依赖的package包/类
public ElasticsearchQuery(Client client, Function<SearchHit, K> transformer, ElasticsearchSerializer serializer) {
this.queryMixin = new QueryMixin<ElasticsearchQuery<K>>(this, new DefaultQueryMetadata().noValidate(), false);
this.client = client;
this.transformer = transformer;
this.serializer = serializer;
}
示例7: AbstractIMapQuery
import com.querydsl.core.support.QueryMixin; //导入依赖的package包/类
public AbstractIMapQuery() {
super();
this.queryMixin = new QueryMixin<AbstractIMapQuery<Q>>(this,
new DefaultQueryMetadata().noValidate());
this.serializer = HazelcastSerializer.DEFAULT;
}