SessionFactoryImplementor during translation of an HQL query.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final SessionFactoryImplementor | sfi
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | SessionFactoryHelper(SessionFactoryImplementor
The SessionFactory impl to be encapsulated. sfi)
Deprecated
as a consequence of
Construct a new SessionFactoryHelper instance.
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public JoinSequence | Returns: The generated join sequence.The persister for the collection at which the join should be rooted. collPersister, String The alias to use for qualifying column references. collectionName)Create a join sequence rooted at the given collection. |
| public JoinSequence | |
| public JoinSequence | Returns: The generated join sequence.Should implicit joins (theta-style) or explicit joins (ANSI-style) be rendered implicit, AssociationType The type representing the thing to be joined into. associationType, String The table alias to use in qualifying the join conditions tableAlias, JoinType The type of join to render (inner, outer, etc); see joinType, String[] org.The columns making up the condition of the join. columns)Generate a join sequence representing the given association type. |
| public JoinSequence | Returns: The generated join sequence.Should implicit joins (theta-style) or explicit joins (ANSI-style) be rendered implicit, AssociationType The type representing the thing to be joined into. associationType, String The table alias to use in qualifying the join conditions tableAlias, JoinType The type of join to render (inner, outer, etc); see joinType, String[][] org.The columns making up the condition of the join. columns)Generate a join sequence representing the given association type. |
| public EntityPersister | Returns: The defined persister for this entity, or null if none found.The class or entity name name)Locate the persister by class or entity name. |
| public Type | Returns: the function return type given the function name and the first argument expression node.The function name. functionName, AST The first argument expression. first)Find the function return type given the function name and the first argument expression node. |
| public Type | |
| public Queryable | Returns: The defined persister for this class, or null if none found.The (potentially unqualified) class name. className)Given a (potentially unqualified) class name, locate its persister. |
| public static Queryable | Returns: The defined persister for this class, or null if none found.The session factory implementor. sfi, String The (potentially unqualified) class name. className)
Deprecated
as a consequence of
Given a (potentially unqualified) class name, locate its persister.
SessionFactoryImplementor being deprecated.
|
| public SQLFunction | Returns: The sql function, or null if not found.The name of the function to locate functionName)Locate a registered sql function by name. |
| public String[][] | |
| public String | Returns: The entity name of the elements of this collection.The collection type to check. collectionType)Given a collection type, determine the entity name of the elements contained within instance of that collection. |
| public String[] | Returns: the collection element columnsThe collection role role, String The sql column-qualification alias (i.e., the table alias) roleAlias)Retrieves the column names corresponding to the collection elements for the given collection role. |
| public QueryableCollection | Returns: The defined CollectionPersister for this collection role, or null.The collection role name. role)Locate the collection persister by the collection role. |
| public PropertyMapping | Returns: The property mapping.The collection role for which to retrieve the property mapping. role)Retrieve a PropertyMapping describing the given collection role. |
| public int | Returns: The number of columns.The type. type)Retrieve the number of columns represented by this type. |
| public AssociationType | Returns: The AssociationType of the elements of the collection.The collection type to be checked. collectionType)Essentially the same as |
| private Type | Returns: The Type of the elements of the collection.The collection type to be checked. collectionType)Given a collection type, determine the Type representing elements within instances of that collection. |
| public SessionFactoryImplementor | Returns: The encapsulated SessionFactory.
Deprecated
as a consequence of
Get a handle to the encapsulated SessionFactory.
SessionFactoryImplementor being deprecated.
|
| public String | Returns: The corresponding property nameThe type representing the entity. entityType)Determine the name of the property for the entity encapsulated by the given type which represents the id or unique-key. |
| public String | Returns: The qualified class name.The potentially unqualified class name className)Given a (potentially unqualified) class name, locate its imported qualified name. |
| public boolean | Returns: True if the persister does define an actual discriminator column.The persister to be checked. persister)Does the given persister define a physical discriminator column for the purpose of inheritance discrimination? |
| public boolean | |
| public EntityPersister | Returns: The defined persister for this entityThe class or entity name name)Locate the persister by class or entity name, requiring that such a persister exist. |
| public QueryableCollection | Returns: The defined CollectionPersister for this collection role.The collection role name. role)Locate the collection persister by the collection role, requiring that such a persister exist. |
| private SQLFunction | Returns: The sql function.The name of the function to locate functionName)Locate a registered sql function by name, requiring that such a registered function exist. |
| collectionPropertyMappingByRole | back to summary |
|---|---|
| private final Map<String, PropertyMapping> collectionPropertyMappingByRole | |
| sfi | back to summary |
|---|---|
| private final SessionFactoryImplementor sfi
Deprecated as a consequence of | |
| SessionFactoryHelper | back to summary |
|---|---|
| public SessionFactoryHelper(SessionFactoryImplementor sfi)
Deprecated as a consequence of Construct a new SessionFactoryHelper instance.
| |
| createCollectionJoinSequence | back to summary |
|---|---|
| public JoinSequence createCollectionJoinSequence(QueryableCollection collPersister, String collectionName) Create a join sequence rooted at the given collection.
| |
| createJoinSequence | back to summary |
|---|---|
| public JoinSequence createJoinSequence() Generate an empty join sequence instance.
| |
| createJoinSequence | back to summary |
|---|---|
| public JoinSequence createJoinSequence(boolean implicit, AssociationType associationType, String tableAlias, JoinType joinType, String[] columns) Generate a join sequence representing the given association type.
| |
| createJoinSequence | back to summary |
|---|---|
| public JoinSequence createJoinSequence(boolean implicit, AssociationType associationType, String tableAlias, JoinType joinType, String[][] columns) Generate a join sequence representing the given association type.
| |
| findEntityPersisterByName | back to summary |
|---|---|
| public EntityPersister findEntityPersisterByName(String name) throws MappingException Locate the persister by class or entity name.
| |
| findFunctionReturnType | back to summary |
|---|---|
| public Type findFunctionReturnType(String functionName, AST first) Find the function return type given the function name and the first argument expression node. | |
| findFunctionReturnType | back to summary |
|---|---|
| public Type findFunctionReturnType(String functionName, SQLFunction sqlFunction, AST firstArgument) | |
| findQueryableUsingImports | back to summary |
|---|---|
| public Queryable findQueryableUsingImports(String className) Given a (potentially unqualified) class name, locate its persister. | |
| findQueryableUsingImports | back to summary |
|---|---|
| public static Queryable findQueryableUsingImports(SessionFactoryImplementor sfi, String className)
Deprecated as a consequence of Given a (potentially unqualified) class name, locate its persister.
| |
| findSQLFunction | back to summary |
|---|---|
| public SQLFunction findSQLFunction(String functionName) Locate a registered sql function by name.
| |
| generateColumnNames | back to summary |
|---|---|
| public String[][] generateColumnNames(Type[] sqlResultTypes) | |
| getAssociatedEntityName | back to summary |
|---|---|
| public String getAssociatedEntityName(CollectionType collectionType) Given a collection type, determine the entity name of the elements contained within instance of that collection.
| |
| getCollectionElementColumns | back to summary |
|---|---|
| public String[] getCollectionElementColumns(String role, String roleAlias) Retrieves the column names corresponding to the collection elements for the given collection role. | |
| getCollectionPersister | back to summary |
|---|---|
| public QueryableCollection getCollectionPersister(String role) Locate the collection persister by the collection role.
| |
| getCollectionPropertyMapping | back to summary |
|---|---|
| public PropertyMapping getCollectionPropertyMapping(String role) Retrieve a PropertyMapping describing the given collection role.
| |
| getColumnSpan | back to summary |
|---|---|
| public int getColumnSpan(Type type) Retrieve the number of columns represented by this type.
| |
| getElementAssociationType | back to summary |
|---|---|
| public AssociationType getElementAssociationType(CollectionType collectionType) Essentially the same as
| |
| getElementType | back to summary |
|---|---|
| private Type getElementType(CollectionType collectionType) Given a collection type, determine the Type representing elements within instances of that collection.
| |
| getFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getFactory()
Deprecated as a consequence of Get a handle to the encapsulated SessionFactory.
| |
| getIdentifierOrUniqueKeyPropertyName | back to summary |
|---|---|
| public String getIdentifierOrUniqueKeyPropertyName(EntityType entityType) Determine the name of the property for the entity encapsulated by the given type which represents the id or unique-key.
| |
| getImportedClassName | back to summary |
|---|---|
| public String getImportedClassName(String className) Given a (potentially unqualified) class name, locate its imported qualified name. | |
| hasPhysicalDiscriminatorColumn | back to summary |
|---|---|
| public boolean hasPhysicalDiscriminatorColumn(Queryable persister) Does the given persister define a physical discriminator column for the purpose of inheritance discrimination?
| |
| isStrictJPAQLComplianceEnabled | back to summary |
|---|---|
| public boolean isStrictJPAQLComplianceEnabled() | |
| requireClassPersister | back to summary |
|---|---|
| public EntityPersister requireClassPersister(String name) throws SemanticException Locate the persister by class or entity name, requiring that such a persister exist.
| |
| requireQueryableCollection | back to summary |
|---|---|
| public QueryableCollection requireQueryableCollection(String role) throws QueryException Locate the collection persister by the collection role, requiring that such a persister exist.
| |
| requireSQLFunction | back to summary |
|---|---|
| private SQLFunction requireSQLFunction(String functionName) Locate a registered sql function by name, requiring that such a registered function exist.
| |