站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

OuterJoinLoadable (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.persister
Interface OuterJoinLoadable

All Superinterfaces:
ClassPersister, Joinable, Loadable
All Known Implementing Classes:
AbstractEntityPersister

public interface OuterJoinLoadable
extends Loadable, Joinable

A ClassPersister that may be loaded by outer join using the OuterJoinLoader hierarchy and may be an element of a one-to-many association.

Author:
Gavin King
See Also:
OuterJoinLoader

Field Summary
 
Fields inherited from interface net.sf.hibernate.persister.ClassPersister
ENTITY_ID
 
Method Summary
 int countSubclassProperties()
          How many properties are there, for this class and all subclasses.
 int enableJoinedFetch(int i)
          May this property be fetched using an SQL outerjoin.
 String fromTableFragment(String alias)
          Get the main from table fragment, given a query alias.
 String getDiscriminatorColumnName()
          Get the name of the column used as a discriminator
 String[] getIdentifierColumnNames()
          Get the names of columns used to persist the identifier
 String[] getSubclassPropertyColumnNames(int i)
          Return the column names used to persist the numbered property of the class or a subclass.
 String getSubclassPropertyName(int i)
          Get the name of the numbered property of the class or a subclass.
 String getSubclassPropertyTableName(int i)
          Return the table name used to persist the numbered property of the class or a subclass.
 Type getSubclassPropertyType(int i)
          Get the type of the numbered property of the class or a subclass.
 boolean isDefinedOnSubclass(int i)
          Is this property defined on a subclass of the mapped class.
 String selectFragment(String alias, String suffix)
          Generate a list of collection index and element columns
 String[] toColumns(String name, int i)
          Given the number of a property of a subclass, and a table alias, return the aliased column names.
 
Methods inherited from interface net.sf.hibernate.persister.Loadable
getDiscriminatorAlias, getDiscriminatorType, getIdentifierAliases, getPropertyAliases, getSubclassForDiscriminatorValue, hasSubclasses
 
Methods inherited from interface net.sf.hibernate.persister.ClassPersister
createProxy, delete, findDirty, findModified, getCache, getClassMetadata, getClassName, getConcreteProxyClass, getCurrentPersistentState, getCurrentVersion, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierSpace, getIdentifierType, getMappedClass, getPropertyCascadeStyles, getPropertyInsertability, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getVersion, getVersionProperty, getVersionType, hasCache, hasCascades, hasCollections, hasIdentifierProperty, hasIdentifierPropertyOrEmbeddedCompositeIdentifier, hasProxy, implementsLifecycle, implementsValidatable, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isMutable, isUnsaved, isVersioned, load, lock, postInstantiate, setIdentifier, setPropertyValue, setPropertyValues, update
 
Methods inherited from interface net.sf.hibernate.persister.Joinable
consumesAlias, fromJoinFragment, getJoinKeyColumnNames, getName, getTableName, isCollection, isManyToMany, selectFragment, whereJoinFragment
 

Method Detail

getIdentifierColumnNames

public String[] getIdentifierColumnNames()
Get the names of columns used to persist the identifier


getDiscriminatorColumnName

public String getDiscriminatorColumnName()
Get the name of the column used as a discriminator


countSubclassProperties

public int countSubclassProperties()
How many properties are there, for this class and all subclasses.


enableJoinedFetch

public int enableJoinedFetch(int i)
May this property be fetched using an SQL outerjoin.


isDefinedOnSubclass

public boolean isDefinedOnSubclass(int i)
Is this property defined on a subclass of the mapped class.


getSubclassPropertyType

public Type getSubclassPropertyType(int i)
Get the type of the numbered property of the class or a subclass.


getSubclassPropertyName

public String getSubclassPropertyName(int i)
Get the name of the numbered property of the class or a subclass.


getSubclassPropertyColumnNames

public String[] getSubclassPropertyColumnNames(int i)
Return the column names used to persist the numbered property of the class or a subclass.


getSubclassPropertyTableName

public String getSubclassPropertyTableName(int i)
Return the table name used to persist the numbered property of the class or a subclass.


toColumns

public String[] toColumns(String name,
                          int i)
Given the number of a property of a subclass, and a table alias, return the aliased column names.


fromTableFragment

public String fromTableFragment(String alias)
Get the main from table fragment, given a query alias.


selectFragment

public String selectFragment(String alias,
                             String suffix)
Generate a list of collection index and element columns