本文整理匯總了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;
}