当前位置: 首页>>代码示例>>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;未经允许,请勿转载。