T - type of the querypublic interface BaseQuery<T>
| Modifier and Type | Method and Description |
|---|---|
String |
generateJpql()
Generates the JPQL for the query.
|
String |
generateSql()
Returns the generated SQL.
|
String |
generateTableAlias(boolean entity)
Returns the generated entity alias.
|
Integer |
getAlias(AbstractParameterExpressionImpl<?> parameter)
Returns the generated alias for the parameter.
|
String |
getAlias(AbstractSelection<?> selection)
Returns the generated alias for the selection.
|
String |
getFieldAlias(String tableAlias,
AbstractColumn column) |
JdbcAdaptor |
getJdbcAdaptor()
Returns the JDBC Adaptor.
|
String |
getJpql()
Returns the JPQL for the query.
|
MetamodelImpl |
getMetamodel()
Returns the metamodel.
|
AbstractParameterExpressionImpl<?> |
getParameter(int position)
Returns the parameter at position.
|
Set<javax.persistence.criteria.ParameterExpression<?>> |
getParameters()
Returns the parameters of the query.
|
String |
getSql()
Returns the SQL for the query.
|
List<AbstractParameterExpressionImpl<?>> |
getSqlParameters()
Returns the SQL parameters of the query.
|
boolean |
isInternal()
Returns if the query is internal.
|
int |
setNextSqlParam(AbstractParameterExpressionImpl<?> parameter)
Adds the parameter to the SQL parameters queue.
|
<U> SubqueryImpl<U> |
subquery(Class<U> type)
Create a subquery of the query.
|
String generateJpql()
String generateSql()
String generateTableAlias(boolean entity)
entity - true if the table is an entity table, false for element collectionsInteger getAlias(AbstractParameterExpressionImpl<?> parameter)
parameter - the parameterString getAlias(AbstractSelection<?> selection)
selection - the selectionString getFieldAlias(String tableAlias, AbstractColumn column)
tableAlias - the alias of the tablecolumn - the columnJdbcAdaptor getJdbcAdaptor()
String getJpql()
MetamodelImpl getMetamodel()
AbstractParameterExpressionImpl<?> getParameter(int position)
position - the positionSet<javax.persistence.criteria.ParameterExpression<?>> getParameters()
Modifications to the set do not affect the query.
String getSql()
List<AbstractParameterExpressionImpl<?>> getSqlParameters()
boolean isInternal()
int setNextSqlParam(AbstractParameterExpressionImpl<?> parameter)
parameter - the parameter to add<U> SubqueryImpl<U> subquery(Class<U> type)
U - The type of the represented objecttype - the subquery result typeCopyright © 2012-2013 Batoo. All Rights Reserved.