public abstract class

BasicLoader

extends Loader
java.lang.Object
   ↳ org.hibernate.loader.Loader
     ↳ org.hibernate.loader.BasicLoader
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Fields
protected static final String[] NO_SUFFIX
Public Constructors
BasicLoader(SessionFactoryImplementor factory)
Public Methods
static String[] generateSuffixes(int seed, int length)
static String[] generateSuffixes(int length)
Utility method that generates 0_, 1_ suffixes.
Protected Methods
final CollectionAliases[] getCollectionAliases()
abstract String[] getCollectionSuffixes()
final EntityAliases[] getEntityAliases()
Get the result set descriptor
abstract String[] getSuffixes()
void postInstantiate()
Calculate and cache select-clause suffixes.
[Expand]
Inherited Methods
From class org.hibernate.loader.Loader
From class java.lang.Object

Fields

protected static final String[] NO_SUFFIX

Public Constructors

public BasicLoader (SessionFactoryImplementor factory)

Public Methods

public static String[] generateSuffixes (int seed, int length)

public static String[] generateSuffixes (int length)

Utility method that generates 0_, 1_ suffixes. Subclasses don't necessarily need to use this algorithm, but it is intended that they will in most cases.

Parameters
length The number of suffixes to generate
Returns
  • The array of generated suffixes (with length=length).

Protected Methods

protected final CollectionAliases[] getCollectionAliases ()

protected abstract String[] getCollectionSuffixes ()

protected final EntityAliases[] getEntityAliases ()

Get the result set descriptor

protected abstract String[] getSuffixes ()

protected void postInstantiate ()

Calculate and cache select-clause suffixes. Must be called by subclasses after instantiation.