java.lang.Object | |
↳ | org.hibernate.hql.ast.util.SessionFactoryHelper |
Helper for performing common and/or complex operations with the
SessionFactoryImplementor
during translation of an HQL query.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new SessionFactoryHelper instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a join sequence rooted at the given collection.
| |||||||||||
Generate an empty join sequence instance.
| |||||||||||
Generate a join sequence representing the given association type.
| |||||||||||
Find the function return type given the function name and the first argument expression node.
| |||||||||||
Given a (potentially unqualified) class name, locate its persister.
| |||||||||||
Given a (potentially unqualified) class name, locate its persister.
| |||||||||||
Locate a registered sql function by name.
| |||||||||||
Given a collection type, determine the entity name of the elements
contained within instance of that collection.
| |||||||||||
Retrieves the column names corresponding to the collection elements for the given
collection role.
| |||||||||||
Locate the collection persister by the collection role.
| |||||||||||
Retrieve the number of columns represented by this type.
| |||||||||||
Essentially the same as #getElementType, but requiring that the
element type be an association type.
| |||||||||||
Get a handle to the encapsulated SessionFactory.
| |||||||||||
Determine the name of the property for the entity encapsulated by the
given type which represents the id or unique-key.
| |||||||||||
Given a (potentially unqualified) class name, locate its imported qualified name.
| |||||||||||
Does the given persister define a physical discriminator column
for the purpose of inheritance discrimination?
| |||||||||||
Locate the persister by class or entity name, requiring that such a persister
exist.
| |||||||||||
Locate the collection persister by the collection role, requiring that
such a persister exist.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Construct a new SessionFactoryHelper instance.
sfi | The SessionFactory impl to be encapsulated. |
---|
Create a join sequence rooted at the given collection.
collPersister | The persister for the collection at which the join should be rooted. |
---|---|
collectionName | The alias to use for qualifying column references. |
Generate an empty join sequence instance.
Generate a join sequence representing the given association type.
implicit | Should implicit joins (theta-style) or explicit joins (ANSI-style) be rendered |
---|---|
associationType | The type representing the thing to be joined into. |
tableAlias | The table alias to use in qualifying the join conditions |
joinType | The type of join to render (inner, outer, etc); see JoinFragment |
columns | The columns making up the condition of the join. |
Find the function return type given the function name and the first argument expression node.
functionName | The function name. |
---|---|
first | The first argument expression. |
Given a (potentially unqualified) class name, locate its persister.
className | The (potentially unqualified) class name. |
---|
Given a (potentially unqualified) class name, locate its persister.
sfi | The session factory implementor. |
---|---|
className | The (potentially unqualified) class name. |
Locate a registered sql function by name.
functionName | The name of the function to locate |
---|
Given a collection type, determine the entity name of the elements contained within instance of that collection.
collectionType | The collection type to check. |
---|
Retrieves the column names corresponding to the collection elements for the given collection role.
role | The collection role |
---|---|
roleAlias | The sql column-qualification alias (i.e., the table alias) |
Locate the collection persister by the collection role.
role | The collection role name. |
---|
Retrieve the number of columns represented by this type.
type | The type. |
---|
Essentially the same as #getElementType, but requiring that the element type be an association type.
collectionType | The collection type to be checked. |
---|
Get a handle to the encapsulated SessionFactory.
Determine the name of the property for the entity encapsulated by the given type which represents the id or unique-key.
entityType | The type representing the entity. |
---|
QueryException | Indicates such a property could not be found. |
---|
Given a (potentially unqualified) class name, locate its imported qualified name.
className | The potentially unqualified class name |
---|
Does the given persister define a physical discriminator column for the purpose of inheritance discrimination?
persister | The persister to be checked. |
---|
Locate the persister by class or entity name, requiring that such a persister exist.
name | The class or entity name |
---|
Indicates the persister could not be found | |
SemanticException |
Locate the collection persister by the collection role, requiring that such a persister exist.
role | The collection role name. |
---|
QueryException | Indicates that the collection persister could not be found. |
---|