Top Description Fields Constructors Methods
org.hibernate.hql.ast.tree

public Class FromElementFactory

extends Object
implements SqlTokenTypes
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.antlr.SqlTokenTypes
Imports
org.hibernate.engine.JoinSequence, org.hibernate.hql.antlr.SqlTokenTypes, org.hibernate.hql.ast.util.ASTUtil, .AliasGenerator, .PathHelper, .SessionFactoryHelper, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.EntityPersister, .Joinable, .Queryable, org.hibernate.sql.JoinFragment, org.hibernate.type.AssociationType, .CollectionType, .EntityType, .Type, .ComponentType, org.hibernate.util.StringHelper, antlr.ASTFactory, .SemanticException, antlr.collections.AST, org.slf4j.Logger, .LoggerFactory

Encapsulates the creation of FromElements and JoinSequences.
Author
josh

Field Summary

Modifier and TypeField and Description
private String
private boolean
private CollectionType
private String[]
private FromClause
private boolean
private boolean
private static final Logger
private FromElement
origin

Deprecated as a consequence of FromElement being deprecated.
private String
private QueryableCollection

Constructor Summary

AccessConstructor and Description
public
FromElementFactory(FromClause fromClause, FromElement origin, String path)

Deprecated as a consequence of FromElement being deprecated.
Creates entity from elements.
public
FromElementFactory(FromClause fromClause, FromElement origin, String path, String classAlias, String[] columns, boolean implied)

Deprecated as a consequence of FromElement being deprecated.
Creates collection from elements.

Method Summary

Modifier and TypeMethod and Description
pack-priv FromElement
addFromElement()

Deprecated as a consequence of FromElement being deprecated.
private FromElement
createAndAddFromElement(String className, String classAlias, EntityPersister entityPersister, EntityType type, String tableAlias)

Deprecated as a consequence of FromElement being deprecated.
pack-priv FromElement
createCollection(QueryableCollection queryableCollection, String role, int joinType, boolean fetchFlag, boolean indexed)

Deprecated as a consequence of FromElement being deprecated.
pack-priv FromElement
createCollectionElementsJoin(QueryableCollection queryableCollection, String collectionName)

Deprecated as a consequence of FromElement being deprecated.
private FromElement
createCollectionJoin(JoinSequence collectionJoinSequence, String tableAlias)

Deprecated as a consequence of FromElement being deprecated.
public FromElement
createComponentJoin(ComponentType type)

Deprecated as a consequence of FromElement being deprecated.
pack-priv FromElement
createElementJoin(QueryableCollection queryableCollection)

Deprecated as a consequence of FromElement being deprecated.
private FromElement
createEntityAssociation(String role, String roleAlias, int joinType)

Deprecated as a consequence of FromElement being deprecated.
pack-priv FromElement
createEntityJoin(String entityClass, String tableAlias, JoinSequence joinSequence, boolean fetchFlag, boolean inFrom, EntityType type)

Deprecated as a consequence of FromElement being deprecated.
private FromElement
createFromElement(EntityPersister entityPersister)

Deprecated as a consequence of FromElement being deprecated.
private AST
private FromElement
createFromElementInSubselect(String path, String pathAlias, FromElement parentFromElement, String classAlias)

Deprecated as a consequence of FromElement being deprecated.
private FromElement
createJoin(String entityClass, String tableAlias, JoinSequence joinSequence, EntityType type, boolean manyToMany)

Deprecated as a consequence of FromElement being deprecated.
private JoinSequence
createJoinSequence(String roleAlias, int joinType)

private FromElement
createManyToMany(String role, String associatedEntityName, String roleAlias, Queryable entityPersister, EntityType type, int joinType)

Deprecated as a consequence of FromElement being deprecated.
private FromElement
evaluateFromElementPath(String path, String classAlias)

Deprecated as a consequence of FromElement being deprecated.
private String[]
private void
initializeAndAddFromElement(FromElement element, String className, String classAlias, EntityPersister entityPersister, EntityType type, String tableAlias)

Deprecated as a consequence of FromElement being deprecated.
private FromElement
initializeJoin(String path, FromElement destination, JoinSequence joinSequence, String[] columns, FromElement origin, boolean manyToMany)

Deprecated as a consequence of FromElement being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classAliasback to summary
private String classAlias
collectionback to summary
private boolean collection
collectionTypeback to summary
private CollectionType collectionType
columnsback to summary
private String[] columns
fromClauseback to summary
private FromClause fromClause
impliedback to summary
private boolean implied
inElementsFunctionback to summary
private boolean inElementsFunction
logback to summary
private static final Logger log
originback to summary
private FromElement origin

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

pathback to summary
private String path
queryableCollectionback to summary
private QueryableCollection queryableCollection

Constructor Detail

FromElementFactoryback to summary
public FromElementFactory(FromClause fromClause, FromElement origin, String path)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

Creates entity from elements.

FromElementFactoryback to summary
public FromElementFactory(FromClause fromClause, FromElement origin, String path, String classAlias, String[] columns, boolean implied)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

Creates collection from elements.

Method Detail

addFromElementback to summary
pack-priv FromElement addFromElement() throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createAndAddFromElementback to summary
private FromElement createAndAddFromElement(String className, String classAlias, EntityPersister entityPersister, EntityType type, String tableAlias)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createCollectionback to summary
pack-priv FromElement createCollection(QueryableCollection queryableCollection, String role, int joinType, boolean fetchFlag, boolean indexed) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createCollectionElementsJoinback to summary
pack-priv FromElement createCollectionElementsJoin(QueryableCollection queryableCollection, String collectionName) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createCollectionJoinback to summary
private FromElement createCollectionJoin(JoinSequence collectionJoinSequence, String tableAlias) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createComponentJoinback to summary
public FromElement createComponentJoin(ComponentType type)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createElementJoinback to summary
pack-priv FromElement createElementJoin(QueryableCollection queryableCollection) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createEntityAssociationback to summary
private FromElement createEntityAssociation(String role, String roleAlias, int joinType) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createEntityJoinback to summary
pack-priv FromElement createEntityJoin(String entityClass, String tableAlias, JoinSequence joinSequence, boolean fetchFlag, boolean inFrom, EntityType type) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createFromElementback to summary
private FromElement createFromElement(EntityPersister entityPersister)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createFromElementback to summary
private AST createFromElement(String text)
createFromElementInSubselectback to summary
private FromElement createFromElementInSubselect(String path, String pathAlias, FromElement parentFromElement, String classAlias) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createJoinback to summary
private FromElement createJoin(String entityClass, String tableAlias, JoinSequence joinSequence, EntityType type, boolean manyToMany) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

createJoinSequenceback to summary
private JoinSequence createJoinSequence(String roleAlias, int joinType)
createManyToManyback to summary
private FromElement createManyToMany(String role, String associatedEntityName, String roleAlias, Queryable entityPersister, EntityType type, int joinType) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

evaluateFromElementPathback to summary
private FromElement evaluateFromElementPath(String path, String classAlias) throws SemanticException

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

getColumnsback to summary
private String[] getColumns()
initializeAndAddFromElementback to summary
private void initializeAndAddFromElement(FromElement element, String className, String classAlias, EntityPersister entityPersister, EntityType type, String tableAlias)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

initializeJoinback to summary
private FromElement initializeJoin(String path, FromElement destination, JoinSequence joinSequence, String[] columns, FromElement origin, boolean manyToMany)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.