Package | Description |
---|---|
com.mysema.query |
Contains basic Query elements
|
com.mysema.query.collections |
Implementations of Querydsl query interfaces for JavaBean collections
|
com.mysema.query.jdo |
JDOQL support for Querydsl
|
com.mysema.query.jdo.sql | |
com.mysema.query.jpa |
Query implementations for HQL and JPAQL
|
com.mysema.query.jpa.hibernate |
JPQL for Hibernate
|
com.mysema.query.jpa.hibernate.sql | |
com.mysema.query.jpa.impl |
JPQL for JPA
|
com.mysema.query.jpa.sql | |
com.mysema.query.lucene | |
com.mysema.query.mongodb | |
com.mysema.query.sql |
SQL/JDBC support for Querydsl
|
com.mysema.query.sql.dml |
DML operations support
|
com.mysema.query.sql.mssql |
SQL Server support
|
com.mysema.query.sql.mysql |
MySQL support
|
com.mysema.query.sql.oracle |
Oracle support for Querydsl SQL
|
com.mysema.query.sql.postgres | |
com.mysema.query.sql.teradata | |
com.mysema.query.support |
Various support classes
|
com.mysema.query.types |
Contains Querydsl grammar types
|
com.mysema.query.types.query |
Subquery implementations
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultQueryMetadata
DefaultQueryMetadata is the default implementation of the
QueryMetadata interface |
class |
EmptyMetadata
EmptyMetadata provides a immutable empty QueryMetadata instace
|
Modifier and Type | Field and Description |
---|---|
static QueryMetadata |
EmptyMetadata.DEFAULT |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
EmptyMetadata.clone() |
QueryMetadata |
QueryMetadata.clone()
Clone this QueryMetadata instance
|
QueryMetadata |
DefaultQueryMetadata.clone() |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
CollQuery.getMetadata() |
abstract QueryMetadata |
AbstractCollQuery.getMetadata() |
Modifier and Type | Method and Description |
---|---|
long |
QueryEngine.count(QueryMetadata metadata,
Map<Expression<?>,Iterable<?>> iterables)
Evaluate the given query and return the count of matched rows
|
long |
DefaultQueryEngine.count(QueryMetadata metadata,
Map<Expression<?>,Iterable<?>> iterables) |
<T> com.mysema.codegen.Evaluator<T> |
DefaultEvaluatorFactory.create(QueryMetadata metadata,
List<? extends Expression<?>> sources,
Expression<T> projection)
Create an Evaluator for the given query sources and projection
|
<T> com.mysema.codegen.Evaluator<List<T>> |
DefaultEvaluatorFactory.createEvaluator(QueryMetadata metadata,
Expression<? extends T> source,
Predicate filter)
Create an Evaluator for the given source and filter
|
com.mysema.codegen.Evaluator<List<Object[]>> |
DefaultEvaluatorFactory.createEvaluator(QueryMetadata metadata,
List<JoinExpression> joins,
Predicate filter)
Create an Evaluator for the given sources and the given optional filter
|
boolean |
QueryEngine.exists(QueryMetadata metadata,
Map<Expression<?>,Iterable<?>> iterables) |
boolean |
DefaultQueryEngine.exists(QueryMetadata metadata,
Map<Expression<?>,Iterable<?>> iterables) |
<T> List<T> |
QueryEngine.list(QueryMetadata metadata,
Map<Expression<?>,Iterable<?>> iterables,
Expression<T> projection)
Evaluate the given query and return the projection as a list
|
<T> List<T> |
DefaultQueryEngine.list(QueryMetadata metadata,
Map<Expression<?>,Iterable<?>> iterables,
Expression<T> projection) |
Constructor and Description |
---|
AbstractCollQuery(QueryMetadata metadata,
QueryEngine queryEngine) |
CollQuery(QueryMetadata metadata)
Create a new CollQuery instance
|
CollQuery(QueryMetadata metadata,
QueryEngine queryEngine)
Create a new CollQuery instance
|
CollQueryMixin(QueryMetadata metadata) |
CollQueryMixin(T self,
QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
AbstractJDOQuery.getMetadata() |
Modifier and Type | Method and Description |
---|---|
void |
JDOQLSerializer.serialize(QueryMetadata metadata,
boolean forCountRow,
boolean subQuery) |
Constructor and Description |
---|
AbstractJDOQuery(javax.jdo.PersistenceManager persistenceManager,
JDOQLTemplates templates,
QueryMetadata metadata,
boolean detach) |
AbstractJDOSubQuery(QueryMetadata metadata) |
JDOQuery(javax.jdo.PersistenceManager persistenceManager,
JDOQLTemplates templates,
QueryMetadata metadata,
boolean detach)
Create a new JDOQuery instance
|
JDOQueryMixin(QueryMetadata metadata) |
JDOQueryMixin(T self,
QueryMetadata metadata) |
JDOSubQuery(QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
AbstractSQLQuery.getMetadata() |
Constructor and Description |
---|
AbstractSQLQuery(QueryMetadata metadata,
Configuration conf,
javax.jdo.PersistenceManager persistenceManager,
boolean detach) |
JDOSQLQuery(javax.jdo.PersistenceManager persistenceManager,
Configuration configuration,
QueryMetadata metadata,
boolean detach) |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
JPAQueryBase.getMetadata() |
Modifier and Type | Method and Description |
---|---|
void |
NativeSQLSerializer.serialize(QueryMetadata metadata,
boolean forCountRow) |
void |
JPQLSerializer.serialize(QueryMetadata metadata,
boolean forCountRow,
String projection) |
void |
JPQLSerializer.serializeForDelete(QueryMetadata md) |
void |
JPQLSerializer.serializeForUpdate(QueryMetadata md) |
Constructor and Description |
---|
AbstractJPASubQuery(QueryMetadata metadata) |
AbstractSQLQuery(QueryMetadata metadata,
Configuration configuration) |
JPAQueryBase(QueryMetadata md,
JPQLTemplates templates) |
JPAQueryMixin(QueryMetadata metadata) |
JPAQueryMixin(T self,
QueryMetadata metadata) |
JPASubQuery(QueryMetadata metadata) |
Constructor and Description |
---|
AbstractHibernateQuery(SessionHolder session,
JPQLTemplates patterns,
QueryMetadata metadata) |
HibernateQuery(SessionHolder session,
JPQLTemplates templates,
QueryMetadata metadata)
Creates a new Session bound query
|
HibernateQuery(org.hibernate.Session session,
QueryMetadata metadata)
Creates a new Session bound query
|
HibernateSubQuery(QueryMetadata metadata) |
Constructor and Description |
---|
AbstractHibernateSQLQuery(SessionHolder session,
Configuration conf,
QueryMetadata metadata) |
HibernateSQLQuery(SessionHolder session,
Configuration conf,
QueryMetadata metadata) |
HibernateSQLQuery(SessionHolder session,
SQLTemplates sqlTemplates,
QueryMetadata metadata) |
Constructor and Description |
---|
AbstractJPAQuery(javax.persistence.EntityManager em,
JPQLTemplates templates,
QueryMetadata metadata) |
JPAQuery(javax.persistence.EntityManager em,
JPQLTemplates templates,
QueryMetadata metadata)
Creates a new query
|
JPAQuery(javax.persistence.EntityManager em,
QueryMetadata metadata)
Creates a new EntityManager bound query
|
Constructor and Description |
---|
AbstractJPASQLQuery(javax.persistence.EntityManager em,
Configuration configuration,
QueryHandler queryHandler,
QueryMetadata metadata) |
AbstractJPASQLQuery(javax.persistence.EntityManager em,
Configuration configuration,
QueryMetadata metadata) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
Configuration conf,
QueryHandler queryHandler,
QueryMetadata metadata) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
Configuration conf,
QueryMetadata metadata) |
JPASQLQuery(javax.persistence.EntityManager entityManager,
SQLTemplates sqlTemplates,
QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.Query |
LuceneSerializer.between(Operation<?> operation,
QueryMetadata metadata) |
protected String[] |
LuceneSerializer.convert(Path<?> leftHandSide,
Expression<?> rightHandSide,
QueryMetadata metadata)
template method
|
protected org.apache.lucene.search.Query |
LuceneSerializer.endsWith(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
LuceneSerializer.eq(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
LuceneSerializer.ge(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
LuceneSerializer.gt(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
LuceneSerializer.in(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
LuceneSerializer.le(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
LuceneSerializer.like(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
LuceneSerializer.lt(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
LuceneSerializer.ne(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
LuceneSerializer.notIn(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
LuceneSerializer.range(Path<?> leftHandSide,
String field,
Expression<?> min,
Expression<?> max,
boolean minInc,
boolean maxInc,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
LuceneSerializer.startsWith(QueryMetadata metadata,
Operation<?> operation,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
LuceneSerializer.stringContains(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
LuceneSerializer.stringRange(Path<?> leftHandSide,
String field,
Expression<?> min,
Expression<?> max,
boolean minInc,
boolean maxInc,
QueryMetadata metadata) |
org.apache.lucene.search.Query |
LuceneSerializer.toQuery(Expression<?> expr,
QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
protected Predicate |
MongodbQuery.createFilter(QueryMetadata metadata) |
protected Predicate |
MongodbQuery.createJoinFilter(QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
DetachableSQLQuery.getMetadata() |
QueryMetadata |
SQLListenerContextImpl.getMetadata() |
QueryMetadata |
ProjectableSQLQuery.getMetadata() |
QueryMetadata |
SQLListenerContext.getMetadata() |
Modifier and Type | Method and Description |
---|---|
static Set<RelationalPath<?>> |
RelationalPathExtractor.extract(QueryMetadata md) |
void |
SQLListener.notifyDelete(RelationalPath<?> entity,
QueryMetadata md)
Notify about a deletion
|
void |
SQLListeners.notifyDelete(RelationalPath<?> entity,
QueryMetadata md) |
void |
SQLListener.notifyInsert(RelationalPath<?> entity,
QueryMetadata md,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery)
Notify about an insertion
|
void |
SQLListeners.notifyInsert(RelationalPath<?> entity,
QueryMetadata md,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
SQLListener.notifyInserts(RelationalPath<?> entity,
QueryMetadata md,
List<SQLInsertBatch> batches)
Notify about a batch insertion
|
void |
SQLListeners.notifyInserts(RelationalPath<?> entity,
QueryMetadata md,
List<SQLInsertBatch> batches) |
void |
SQLListener.notifyMerge(RelationalPath<?> entity,
QueryMetadata md,
List<Path<?>> keys,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery)
Notify about a merge
|
void |
SQLListeners.notifyMerge(RelationalPath<?> entity,
QueryMetadata md,
List<Path<?>> keys,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
SQLListener.notifyMerges(RelationalPath<?> entity,
QueryMetadata md,
List<SQLMergeBatch> batches)
Notify about a batch merge
|
void |
SQLListeners.notifyMerges(RelationalPath<?> entity,
QueryMetadata md,
List<SQLMergeBatch> batches) |
void |
SQLListener.notifyQuery(QueryMetadata md)
Notify about a query
|
void |
SQLListeners.notifyQuery(QueryMetadata md) |
void |
SQLListener.notifyUpdate(RelationalPath<?> entity,
QueryMetadata md,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates)
Notify about an update operation
|
void |
SQLListeners.notifyUpdate(RelationalPath<?> entity,
QueryMetadata md,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates) |
void |
SQLSerializer.serialize(QueryMetadata metadata,
boolean forCountRow) |
void |
DB2Templates.serialize(QueryMetadata metadata,
boolean forCountRow,
SQLSerializer context) |
void |
SQLTemplates.serialize(QueryMetadata metadata,
boolean forCountRow,
SQLSerializer context)
template method for SELECT serialization
|
void |
SQLServer2012Templates.serialize(QueryMetadata metadata,
boolean forCountRow,
SQLSerializer context) |
void |
SQLServer2005Templates.serialize(QueryMetadata metadata,
boolean forCountRow,
SQLSerializer context) |
void |
SQLServerTemplates.serialize(QueryMetadata metadata,
boolean forCountRow,
SQLSerializer context) |
void |
OracleTemplates.serialize(QueryMetadata metadata,
boolean forCountRow,
SQLSerializer context) |
void |
SQLSerializer.serializeDelete(QueryMetadata metadata,
RelationalPath<?> entity) |
void |
SQLTemplates.serializeDelete(QueryMetadata metadata,
RelationalPath<?> entity,
SQLSerializer context)
template method for DELETE serialization
|
void |
SQLServer2005Templates.serializeDelete(QueryMetadata metadata,
RelationalPath<?> entity,
SQLSerializer context) |
void |
OracleTemplates.serializeDelete(QueryMetadata metadata,
RelationalPath<?> entity,
SQLSerializer context) |
void |
SQLSerializer.serializeInsert(QueryMetadata metadata,
RelationalPath<?> entity,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
SQLTemplates.serializeInsert(QueryMetadata metadata,
RelationalPath<?> entity,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery,
SQLSerializer context)
template method for INSERT serialization
|
void |
SQLSerializer.serializeMerge(QueryMetadata metadata,
RelationalPath<?> entity,
List<Path<?>> keys,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
SQLTemplates.serializeMerge(QueryMetadata metadata,
RelationalPath<?> entity,
List<Path<?>> keys,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery,
SQLSerializer context)
template method for MERGE serialization
|
protected void |
DB2Templates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
SQLTemplates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context)
template method for LIMIT and OFFSET serialization
|
protected void |
SQLServer2012Templates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
FirebirdTemplates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
DerbyTemplates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
SQLServerTemplates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
OracleTemplates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
TeradataTemplates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
CUBRIDTemplates.serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
void |
SQLSerializer.serializeUnion(Expression<?> union,
QueryMetadata metadata,
boolean unionAll) |
void |
SQLSerializer.serializeUpdate(QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates) |
void |
SQLTemplates.serializeUpdate(QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates,
SQLSerializer context)
template method for UPDATE serialization
|
void |
SQLServer2005Templates.serializeUpdate(QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates,
SQLSerializer context) |
void |
OracleTemplates.serializeUpdate(QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates,
SQLSerializer context) |
protected SQLListenerContextImpl |
AbstractSQLQuery.startContext(Connection connection,
QueryMetadata metadata)
Called to create and start a new SQL Listener context
|
Modifier and Type | Method and Description |
---|---|
void |
SQLListener.notifyDeletes(RelationalPath<?> entity,
List<QueryMetadata> batches)
Notify about a batch deletion
|
void |
SQLListeners.notifyDeletes(RelationalPath<?> entity,
List<QueryMetadata> batches) |
Constructor and Description |
---|
AbstractSQLQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata) |
AbstractSQLSubQuery(Configuration configuration,
QueryMetadata metadata) |
AbstractSQLSubQuery(QueryMetadata metadata) |
DetachableSQLQuery(Configuration configuration,
QueryMetadata metadata) |
DetachableSQLQuery(QueryMetadata metadata) |
SQLListenerContextImpl(QueryMetadata metadata) |
SQLListenerContextImpl(QueryMetadata metadata,
Connection connection) |
SQLListenerContextImpl(QueryMetadata metadata,
Connection connection,
RelationalPath<?> entity) |
SQLQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata)
Create a new SQLQuery instance
|
SQLQuery(Connection conn,
SQLTemplates templates,
QueryMetadata metadata)
Create a new SQLQuery instance
|
SQLSubQuery(Configuration configuration,
QueryMetadata metadata) |
SQLSubQuery(QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
SQLUpdateBatch.getMetadata() |
Modifier and Type | Method and Description |
---|---|
protected SQLBindings |
AbstractSQLClause.createBindings(QueryMetadata metadata,
SQLSerializer serializer) |
protected SQLListenerContextImpl |
AbstractSQLClause.startContext(Connection connection,
QueryMetadata metadata,
RelationalPath<?> entity)
Called to create and start a new SQL Listener context
|
Constructor and Description |
---|
SQLUpdateBatch(QueryMetadata metadata,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates) |
Constructor and Description |
---|
SQLServerQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata) |
SQLServerQuery(Connection conn,
SQLTemplates templates,
QueryMetadata metadata) |
SQLServerSubQuery(Configuration configuration,
QueryMetadata metadata) |
SQLServerSubQuery(QueryMetadata metadata) |
Constructor and Description |
---|
MySQLQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata) |
Constructor and Description |
---|
OracleQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata) |
OracleQuery(Connection conn,
SQLTemplates templates,
QueryMetadata metadata) |
Constructor and Description |
---|
PostgresQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata) |
Constructor and Description |
---|
TeradataQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata) |
Modifier and Type | Class and Description |
---|---|
class |
OrderedQueryMetadata
OrderedQueryMetadata performs no metadata validation and ensures that FROM elements are before
JOIN elements
|
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
QueryMixin.getMetadata() |
Modifier and Type | Method and Description |
---|---|
static <T> ExtendedSubQueryExpression<T> |
Expressions.subQuery(Class<T> type,
QueryMetadata metadata)
Create a new SubQuery expression
|
Constructor and Description |
---|
QueryMixin(QueryMetadata metadata) |
QueryMixin(QueryMetadata metadata,
boolean expandAnyPaths) |
QueryMixin(T self,
QueryMetadata metadata) |
QueryMixin(T self,
QueryMetadata metadata,
boolean expandAnyPaths) |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
SubQueryExpressionImpl.getMetadata() |
QueryMetadata |
SubQueryExpression.getMetadata()
Get the query metadata for the subquery
|
Modifier and Type | Method and Description |
---|---|
Void |
ParamsVisitor.visit(Constant<?> expr,
QueryMetadata context) |
Void |
ParamsVisitor.visit(FactoryExpression<?> expr,
QueryMetadata context) |
Void |
ParamsVisitor.visit(Operation<?> expr,
QueryMetadata context) |
Void |
ParamsVisitor.visit(ParamExpression<?> expr,
QueryMetadata context) |
Void |
ParamsVisitor.visit(Path<?> expr,
QueryMetadata context) |
Void |
ParamsVisitor.visit(SubQueryExpression<?> expr,
QueryMetadata context) |
Void |
ParamsVisitor.visit(TemplateExpression<?> expr,
QueryMetadata context) |
Constructor and Description |
---|
SubQueryExpressionImpl(Class<? extends T> type,
QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
QueryMetadata |
DateSubQuery.getMetadata() |
QueryMetadata |
TimeSubQuery.getMetadata() |
QueryMetadata |
ComparableSubQuery.getMetadata() |
QueryMetadata |
SimpleSubQuery.getMetadata() |
QueryMetadata |
StringSubQuery.getMetadata() |
QueryMetadata |
ListSubQuery.getMetadata() |
QueryMetadata |
BooleanSubQuery.getMetadata() |
QueryMetadata |
DateTimeSubQuery.getMetadata() |
QueryMetadata |
NumberSubQuery.getMetadata() |
Constructor and Description |
---|
BooleanSubQuery(QueryMetadata md) |
ComparableSubQuery(Class<T> type,
QueryMetadata md) |
DateSubQuery(Class<T> type,
QueryMetadata md) |
DateTimeSubQuery(Class<T> type,
QueryMetadata md) |
ListSubQuery(Class<T> elementType,
QueryMetadata md) |
NumberSubQuery(Class<T> type,
QueryMetadata md) |
SimpleSubQuery(Class<T> type,
QueryMetadata md) |
StringSubQuery(QueryMetadata md) |
TimeSubQuery(Class<T> type,
QueryMetadata md) |
Copyright © 2007–2015 Mysema Ltd. All rights reserved.