Z - the source typeX - the target typepublic class EntityPath<Z,X> extends ParentPath<Z,X> implements Joinable
Path.| Constructor and Description |
|---|
EntityPath(ParentPath<?,Z> parent,
String pathName,
EntityTypeImpl<X> entity) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateJpqlRestriction(BaseQueryImpl<?> query)
Returns the JPQL where fragment.
|
String |
generateJpqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the JPQL select fragment.
|
String |
generateSqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the SQL select fragment.
|
EntityTypeImpl<?> |
getEntity()
Returns the entity of the joinable.
|
FetchParentImpl<?,X> |
getFetchRoot()
Returns the fetch root of the path.
|
protected <C,Y> Mapping<? super X,C,Y> |
getMapping(String name)
Returns the child mapping for the name.
|
EntityTypeImpl<X> |
getModel() |
String[] |
getSqlRestrictionFragments(BaseQueryImpl<?> query)
Returns the SQL restriction fragments.
|
String |
getTableAlias(BaseQueryImpl<?> query,
AbstractTable table)
Returns the alias for the table.
|
X |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
AbstractTypeExpression<X> |
type() |
get, get, get, get, getExpressioncannotDereference, getParentPath, getRootPathas, getConverter, in, in, in, in, isNotNull, isNull, setConverteralias, getAlias, getCompoundSelectionItems, isCompoundSelection, isEntityListgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParentPathas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetAlias, getJavaTypepublic EntityPath(ParentPath<?,Z> parent, String pathName, EntityTypeImpl<X> entity)
parent - the parent pathpathName - the path nameentity - the entitypublic String generateJpqlRestriction(BaseQueryImpl<?> query)
generateJpqlRestriction in class AbstractExpression<X>query - the querypublic String generateJpqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateJpqlSelect in class AbstractSelection<X>query - the criteria queryselected - if the selection is selectedpublic String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateSqlSelect in class AbstractSelection<X>query - the queryselected - if the selection is selectedpublic EntityTypeImpl<?> getEntity()
public FetchParentImpl<?,X> getFetchRoot()
getFetchRoot in class ParentPath<Z,X>protected <C,Y> Mapping<? super X,C,Y> getMapping(String name)
getMapping in class ParentPath<Z,X>C - the collection type of the child mappingY - the type of the child mappingname - the name of the child mappingpublic EntityTypeImpl<X> getModel()
public String[] getSqlRestrictionFragments(BaseQueryImpl<?> query)
getSqlRestrictionFragments in class AbstractSelection<X>query - the querypublic String getTableAlias(BaseQueryImpl<?> query, AbstractTable table)
if table does not have an alias, it is generated.
getTableAlias in interface Joinablequery - the querytable - the tablepublic X handle(QueryImpl<?> query, SessionImpl session, ResultSet row) throws SQLException
handle in class AbstractSelection<X>query - the querysession - the sessionrow - the rowSQLException - thrown in case of an underlying SQL Errorpublic AbstractTypeExpression<X> type()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.