T - the type of the querypublic abstract class BaseQueryImpl<T> extends Object implements BaseQuery<T>
| Constructor and Description |
|---|
BaseQueryImpl(MetamodelImpl metamodel) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
abstract boolean |
isQuery()
Returns if the query is a select query.
|
int |
setNextSqlParam(AbstractParameterExpressionImpl<?> parameter)
Adds the parameter to the SQL parameters queue.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateJpql, generateSql, isInternal, subquerypublic BaseQueryImpl(MetamodelImpl metamodel)
metamodel - the metamodelpublic String generateTableAlias(boolean entity)
generateTableAlias in interface BaseQuery<T>entity - true if the table is an entity table, false for element collectionspublic Integer getAlias(AbstractParameterExpressionImpl<?> parameter)
public String getAlias(AbstractSelection<?> selection)
public String getFieldAlias(String tableAlias, AbstractColumn column)
getFieldAlias in interface BaseQuery<T>tableAlias - the alias of the tablecolumn - the columnpublic JdbcAdaptor getJdbcAdaptor()
getJdbcAdaptor in interface BaseQuery<T>public String getJpql()
public MetamodelImpl getMetamodel()
getMetamodel in interface BaseQuery<T>public AbstractParameterExpressionImpl<?> getParameter(int position)
getParameter in interface BaseQuery<T>position - the positionpublic Set<javax.persistence.criteria.ParameterExpression<?>> getParameters()
Modifications to the set do not affect the query.
getParameters in interface BaseQuery<T>public String getSql()
public List<AbstractParameterExpressionImpl<?>> getSqlParameters()
getSqlParameters in interface BaseQuery<T>public abstract boolean isQuery()
public int setNextSqlParam(AbstractParameterExpressionImpl<?> parameter)
setNextSqlParam in interface BaseQuery<T>parameter - the parameter to addCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.