public interface

QueryableCollection

implements CollectionPersister Joinable PropertyMapping
org.hibernate.persister.collection.QueryableCollection
Known Indirect Subclasses

Class Overview

A collection role that may be queried or loaded by outer join.

Summary

Public Methods
abstract String[] getElementColumnNames(String alias)
Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association), aliased by the given table alias
abstract String[] getElementColumnNames()
Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association)
abstract EntityPersister getElementPersister()
Get the persister of the element class, if this is a collection of entities (optional operation).
abstract FetchMode getFetchMode()
Should we load this collection role by outerjoining?
abstract String[] getIndexColumnNames(String alias)
Get the names of the collection index columns if this is an indexed collection (optional operation), aliased by the given table alias
abstract String[] getIndexColumnNames()
Get the names of the collection index columns if this is an indexed collection (optional operation)
abstract String[] getIndexFormulas()
Get the index formulas if this is an indexed collection (optional operation)
abstract String getManyToManyOrderByString(String alias)
Get the order-by to be applied at the target table of a many to many
abstract String getSQLOrderByString(String alias)
Get the order by SQL
abstract boolean hasWhere()
Does this collection role have a where clause filter?
abstract String selectFragment(String alias, String columnSuffix)
Generate a list of collection index and element columns
[Expand]
Inherited Methods
From interface org.hibernate.persister.collection.CollectionPersister
From interface org.hibernate.persister.entity.Joinable
From interface org.hibernate.persister.entity.PropertyMapping

Public Methods

public abstract String[] getElementColumnNames (String alias)

Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association), aliased by the given table alias

public abstract String[] getElementColumnNames ()

Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association)

public abstract EntityPersister getElementPersister ()

Get the persister of the element class, if this is a collection of entities (optional operation). Note that for a one-to-many association, the returned persister must be OuterJoinLoadable.

public abstract FetchMode getFetchMode ()

Should we load this collection role by outerjoining?

public abstract String[] getIndexColumnNames (String alias)

Get the names of the collection index columns if this is an indexed collection (optional operation), aliased by the given table alias

public abstract String[] getIndexColumnNames ()

Get the names of the collection index columns if this is an indexed collection (optional operation)

public abstract String[] getIndexFormulas ()

Get the index formulas if this is an indexed collection (optional operation)

public abstract String getManyToManyOrderByString (String alias)

Get the order-by to be applied at the target table of a many to many

Parameters
alias The alias for the many-to-many target table
Returns
  • appropriate order-by fragment or empty string.

public abstract String getSQLOrderByString (String alias)

Get the order by SQL

public abstract boolean hasWhere ()

Does this collection role have a where clause filter?

public abstract String selectFragment (String alias, String columnSuffix)

Generate a list of collection index and element columns