Extension point for loaders which use a SQL result set with "unexpected" column aliases.
getCollectionOwners
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. in the case of a
collection initializer) or no collection.
- getCollectionOwners in interface Loader
getEntityPersisters
protected Loadable[] getEntityPersisters()
An array of persisters of entity classes contained in each row of results;
implemented by all subclasses
- getEntityPersisters in interface Loader
getLockModes
protected LockMode[] getLockModes(Map lockModesMap)
What lock mode does this load entities with?
- getLockModes in interface Loader
getOwners
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"). The
indexes contained here are relative to the result of
Loader.getEntityPersisters()
.
- getOwners in interface Loader
- The owner indicators (see discussion above).
getQueryIdentifier
protected String getQueryIdentifier()
Identifies the query for statistics reporting, if null,
no statistics will be reported
- getQueryIdentifier in interface Loader
getQuerySpaces
public Set getQuerySpaces()
getResultColumnOrRow
protected Object getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session)
throws SQLException,
HibernateException
Get the actual object that is returned in the user-visible result list.
This empty implementation merely returns its first argument. This is
overridden by some subclasses.
- getResultColumnOrRow in interface Loader
getSQLString
protected String getSQLString()
The SQL query string to be called; implemented by all subclasses
- getSQLString in interface Loader
- The sql command this loader should use to get its
ResultSet
.