當前位置: 首頁>>代碼示例>>Java>>正文


Java QueryMixin類代碼示例

本文整理匯總了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;
}
 
開發者ID:egopulse,項目名稱:querydsl-rethinkdb,代碼行數:26,代碼來源:ReqlSerializingHelper.java

示例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();
}
 
開發者ID:egopulse,項目名稱:querydsl-mongodb-async,代碼行數:8,代碼來源:AsyncMongoQuery.java

示例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;
}
 
開發者ID:querydsl,項目名稱:querydsl-contrib,代碼行數:9,代碼來源:DynamoDBQuery.java

示例4: AnyEmbeddedBuilder

import com.querydsl.core.support.QueryMixin; //導入依賴的package包/類
public AnyEmbeddedBuilder(QueryMixin<Q> queryMixin,
        Path<? extends Collection<?>> collection) {
    this.queryMixin = queryMixin;
    this.collection = collection;
}
 
開發者ID:egopulse,項目名稱:querydsl-mongodb-async,代碼行數:6,代碼來源:AnyEmbeddedBuilder.java

示例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;
}
 
開發者ID:egopulse,項目名稱:querydsl-mongodb-async,代碼行數:6,代碼來源:JoinBuilder.java

示例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;
}
 
開發者ID:querydsl,項目名稱:querydsl-contrib,代碼行數:7,代碼來源:ElasticsearchQuery.java

示例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;
}
 
開發者ID:querydsl,項目名稱:querydsl-contrib,代碼行數:7,代碼來源:AbstractIMapQuery.java


注:本文中的com.querydsl.core.support.QueryMixin類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。