Examples of DBObjectQuerySpecification


Examples of org.hibernate.ogm.datastore.mongodb.query.impl.DBObjectQuerySpecification

      this.orderBy = orderBy;
    }

    @Override
    protected NativeSQLQuerySpecification generateQuerySpecification(Map namedParams) {
      return new DBObjectQuerySpecification(
          collectionName,
          query,
          projection,
          orderBy,
          getQueryReturns().toArray( new NativeSQLQueryReturn[getQueryReturns().size()] ),
View Full Code Here

Examples of org.hibernate.ogm.datastore.mongodb.query.impl.DBObjectQuerySpecification

    String collectionName = null;
    DBObject orderBy = null;

    // query already given as DBObject (created by JP-QL parser)
    if ( customQuery.getSpec() instanceof DBObjectQuerySpecification ) {
      DBObjectQuerySpecification spec = (DBObjectQuerySpecification) customQuery.getSpec();
      mongodbQuery = spec.getQuery();
      projection = spec.getProjection();
      collectionName = spec.getCollectionName();
      orderBy = spec.getOrderBy();
    }
    // a string-based native query; need to create the DBObject from that
    else {
      mongodbQuery = (BasicDBObject) JSON.parse( customQuery.getSQL() );
      validate( metadatas );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.