public JDOSQLQuery( @Nullable PersistenceManager persistenceManager, Configuration configuration, QueryMetadata metadata, boolean detach) { super(metadata, configuration, persistenceManager, detach); }
public AbstractSQLQuery(@Nullable Connection conn, Configuration configuration) { this(conn, configuration, new DefaultQueryMetadata().noValidate()); }
public DetachableSQLQuery() { this(new DefaultQueryMetadata().noValidate()); }
public AbstractJDOSubQuery() { this(new DefaultQueryMetadata().noValidate()); }
public JDOSQLQuery(@Nullable PersistenceManager persistenceManager, SQLTemplates templates) { this(persistenceManager, new Configuration(templates), new DefaultQueryMetadata().noValidate(), false); }
@SuppressWarnings("unchecked") public AbstractLuceneQuery(LuceneSerializer serializer, IndexSearcher searcher, Function<Document, T> transformer) { queryMixin = new QueryMixin<Q>((Q) this, new DefaultQueryMetadata().noValidate()); this.serializer = serializer; this.searcher = searcher; this.transformer = transformer; }
/** * Create a new MongodbQuery instance * * @param collection * @param transformer * @param serializer */ public MongodbQuery(DBCollection collection, Function<DBObject, K> transformer, MongodbSerializer serializer) { this.queryMixin = new QueryMixin<MongodbQuery<K>>(this, new DefaultQueryMetadata().noValidate(), false); this.transformer = transformer; this.collection = collection; this.serializer = serializer; }
public RDFQueryImpl(RDFConnection connection) { super(new QueryMixin<RDFQueryImpl>(new DefaultQueryMetadata().noValidate())); queryMixin.setSelf(this); this.connection = connection; }
public BeanSubQuery() { queryMixin = new QueryMixin<BeanSubQuery>(this, new DefaultQueryMetadata().noValidate()); setDetachable(new DetachableMixin(queryMixin)); }
@Override protected JPAQuery testQuery() { return new JPAQuery(entityManager, new DefaultQueryMetadata().noValidate()); }
@Override protected HibernateQuery testQuery() { return new HibernateQuery(new DefaultSessionHolder(session), getTemplates(), new DefaultQueryMetadata().noValidate()); }
public Expression<?> visit(SubQueryExpression<?> expr, Filters filters) { QueryMetadata md = expr.getMetadata(); Filters f = new Filters(); // from for (JoinExpression join : md.getJoins()) { f.add(handleRootPath((Path<?>) join.getTarget(), f)); } // where if (md.getWhere() != null) { f.add(transform(md.getWhere(), f)); } // select if (!md.getProjection().isEmpty()) { QueryMetadata rv = new DefaultQueryMetadata().noValidate(); for (Expression<?> e : md.getProjection()) { rv.addProjection(transform(e, f)); } rv.addWhere(f.asBlock()); return new SubQueryExpressionImpl<Object>(Object.class, rv); } else { return f.asBlock(); } }