|
||||||||||
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
public abstract class BasicLoader
Uses the default mapping from property to result set column alias defined by the entities' persisters. Used when Hibernate is generating result set column aliases.
Field Summary | |
---|---|
protected static String[] |
NO_SUFFIX
|
Constructor Summary | |
---|---|
BasicLoader(SessionFactoryImplementor factory)
|
Method Summary | |
---|---|
static String[] |
generateSuffixes(int length)
Utility method that generates 0_, 1_ suffixes. |
static String[] |
generateSuffixes(int seed,
int length)
Utility method that generates alias suffixes. |
protected CollectionAliases[] |
getCollectionAliases()
|
protected abstract String[] |
getCollectionSuffixes()
|
protected EntityAliases[] |
getEntityAliases()
Get the result set descriptor |
protected abstract String[] |
getSuffixes()
|
protected void |
postInstantiate()
Calculate and cache select-clause suffixes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String[] NO_SUFFIX
Constructor Detail |
---|
public BasicLoader(SessionFactoryImplementor factory)
Method Detail |
---|
protected final EntityAliases[] getEntityAliases()
Loader
getEntityAliases
in class Loader
protected final CollectionAliases[] getCollectionAliases()
getCollectionAliases
in class Loader
protected abstract String[] getSuffixes()
protected abstract String[] getCollectionSuffixes()
protected void postInstantiate()
Loader
postInstantiate
in class Loader
public static String[] generateSuffixes(int length)
generateSuffixes(0,length
length
- The number of suffixes to generate
public static String[] generateSuffixes(int seed, int length)
seed
- The number from which to begin the suffix sequencing. For example,
a seed of 0 would return 0_ as the first suffix; a seed of 5 would return 5_ as
the first suffix.length
- The number of suffixes to generate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |