|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.loader.Loader org.hibernate.loader.BasicLoader org.hibernate.loader.OuterJoinLoader
public abstract class OuterJoinLoader
Implements logic for walking a tree of associated classes. Generates an SQL select string containing all properties of those classes. Tables are joined using an ANSI-style left outer join.
Field Summary | |
---|---|
protected String[] |
aliases
|
protected int[] |
collectionOwners
|
protected CollectionPersister[] |
collectionPersisters
|
protected String[] |
collectionSuffixes
|
protected LockMode[] |
lockModeArray
|
protected EntityType[] |
ownerAssociationTypes
|
protected int[] |
owners
|
protected Loadable[] |
persisters
|
protected String |
sql
|
protected String[] |
suffixes
|
Fields inherited from class org.hibernate.loader.BasicLoader |
---|
NO_SUFFIX |
Constructor Summary | |
---|---|
OuterJoinLoader(SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers)
|
Method Summary | |
---|---|
protected String[] |
getAliases()
Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading |
protected int[] |
getCollectionOwners()
Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie. |
protected CollectionPersister[] |
getCollectionPersisters()
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value |
protected String[] |
getCollectionSuffixes()
|
protected Dialect |
getDialect()
|
protected Loadable[] |
getEntityPersisters()
An array of persisters of entity classes contained in each row of results; implemented by all subclasses |
LoadQueryInfluencers |
getLoadQueryInfluencers()
|
protected LockMode[] |
getLockModes(LockOptions lockOptions)
What lock options does this load entities with? |
protected LockOptions |
getLockOptions()
|
protected EntityType[] |
getOwnerAssociationTypes()
An array of the owner types corresponding to the Loader.getOwners()
returns. |
protected int[] |
getOwners()
An array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner"). |
protected String |
getSQLString()
The SQL query string to be called; implemented by all subclasses |
protected String[] |
getSuffixes()
|
protected void |
initFromWalker(JoinWalker walker)
|
Methods inherited from class org.hibernate.loader.BasicLoader |
---|
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Loadable[] persisters
protected CollectionPersister[] collectionPersisters
protected int[] collectionOwners
protected String[] aliases
protected LockMode[] lockModeArray
protected int[] owners
protected EntityType[] ownerAssociationTypes
protected String sql
protected String[] suffixes
protected String[] collectionSuffixes
Constructor Detail |
---|
public OuterJoinLoader(SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
Method Detail |
---|
protected final Dialect getDialect()
protected String[] getSuffixes()
getSuffixes
in class BasicLoader
protected String[] getCollectionSuffixes()
getCollectionSuffixes
in class BasicLoader
protected final String getSQLString()
Loader
getSQLString
in class Loader
ResultSet
.protected final Loadable[] getEntityPersisters()
Loader
getEntityPersisters
in class Loader
protected int[] getOwners()
Loader
Loader.getEntityPersisters()
.
getOwners
in class Loader
protected EntityType[] getOwnerAssociationTypes()
Loader
Loader.getOwners()
returns. Indices indicating no owner would be null here.
getOwnerAssociationTypes
in class Loader
protected LockMode[] getLockModes(LockOptions lockOptions)
Loader
getLockModes
in class Loader
lockOptions
- a collection of lock options specified dynamically via the Query interfaceprotected LockOptions getLockOptions()
public LoadQueryInfluencers getLoadQueryInfluencers()
protected final String[] getAliases()
Loader
getAliases
in class Loader
protected final CollectionPersister[] getCollectionPersisters()
Loader
getCollectionPersisters
in class Loader
protected final int[] getCollectionOwners()
Loader
getCollectionOwners
in class Loader
protected void initFromWalker(JoinWalker walker)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |