Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » hql » ast » util » [javadoc | source]
org.hibernate.hql.ast.util
public class: SessionFactoryHelper [javadoc | source]
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.
Constructor:
 public SessionFactoryHelper(SessionFactoryImplementor sfi) 
    Construct a new SessionFactoryHelper instance.
    Parameters:
    sfi - The SessionFactory impl to be encapsualted.
Method from org.hibernate.hql.ast.util.SessionFactoryHelper Summary:
createCollectionJoinSequence,   createJoinSequence,   createJoinSequence,   findFunctionReturnType,   findQueryableUsingImports,   findQueryableUsingImports,   findSQLFunction,   generateColumnNames,   getAssociatedEntityName,   getCollectionElementColumns,   getCollectionPersister,   getColumnSpan,   getElementAssociationType,   getFactory,   getIdentifierOrUniqueKeyPropertyName,   getImportedClassName,   hasPhysicalDiscriminatorColumn,   isStrictJPAQLComplianceEnabled,   requireClassPersister,   requireQueryableCollection
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.hql.ast.util.SessionFactoryHelper Detail:
 public JoinSequence createCollectionJoinSequence(QueryableCollection collPersister,
    String collectionName) 
    Create a join sequence rooted at the given collection.
 public JoinSequence createJoinSequence() 
    Generate an empty join sequence instance.
 public JoinSequence createJoinSequence(boolean implicit,
    AssociationType associationType,
    String tableAlias,
    int joinType,
    String[] columns) 
    Generate a join sequence representing the given association type.
 public Type findFunctionReturnType(String functionName,
    AST first) 
    Find the function return type given the function name and the first argument expression node.
 public Queryable findQueryableUsingImports(String className) 
    Given a (potentially unqualified) class name, locate its persister.
 public static Queryable findQueryableUsingImports(SessionFactoryImplementor sfi,
    String className) 
    Given a (potentially unqualified) class name, locate its persister.
 public SQLFunction findSQLFunction(String functionName) 
    Locate a registered sql function by name.
 public String[][] generateColumnNames(Type[] sqlResultTypes) 
 public String getAssociatedEntityName(CollectionType collectionType) 
    Given a collection type, determine the entity name of the elements contained within instance of that collection.
 public String[] getCollectionElementColumns(String role,
    String roleAlias) 
    Retrieves the column names corresponding to the collection elements for the given collection role.
 public QueryableCollection getCollectionPersister(String role) 
    Locate the collection persister by the collection role.
 public int getColumnSpan(Type type) 
    Retreive the number of columns represented by this type.
 public AssociationType getElementAssociationType(CollectionType collectionType) 
    Essentially the same as #getElementType , but requiring that the element type be an association type.
 public SessionFactoryImplementor getFactory() 
    Get a handle to the encapsulated SessionFactory.
 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.
 public String getImportedClassName(String className) 
    Given a (potentially unqualified) class name, locate its imported qualified name.
 public boolean hasPhysicalDiscriminatorColumn(Queryable persister) 
    Does the given persister define a physical discriminator column for the purpose of inheritence discrimination?
 public boolean isStrictJPAQLComplianceEnabled() 
 public EntityPersister requireClassPersister(String name) throws SemanticException 
    Locate the persister by class or entity name, requiring that such a persister exist.
 public QueryableCollection requireQueryableCollection(String role) throws QueryException 
    Locate the collection persister by the collection role, requiring that such a persister exist.