FileDocCategorySizeDatePackage
QueryableCollection.javaAPI DocHibernate 3.2.52474Thu May 04 11:23:44 BST 2006org.hibernate.persister.collection

QueryableCollection

public interface QueryableCollection implements CollectionPersister, org.hibernate.persister.entity.Joinable, org.hibernate.persister.entity.PropertyMapping
A collection role that may be queried or loaded by outer join.
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public abstract java.lang.String[]getElementColumnNames(java.lang.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 java.lang.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 org.hibernate.persister.entity.EntityPersistergetElementPersister()
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 org.hibernate.FetchModegetFetchMode()
Should we load this collection role by outerjoining?

public abstract java.lang.String[]getIndexColumnNames()
Get the names of the collection index columns if this is an indexed collection (optional operation)

public abstract java.lang.String[]getIndexColumnNames(java.lang.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 java.lang.String[]getIndexFormulas()
Get the index formulas if this is an indexed collection (optional operation)

public abstract java.lang.StringgetManyToManyOrderByString(java.lang.String alias)
Get the order-by to be applied at the target table of a many to many

param
alias The alias for the many-to-many target table
return
appropriate order-by fragment or empty string.

public abstract java.lang.StringgetSQLOrderByString(java.lang.String alias)
Get the order by SQL

public abstract booleanhasWhere()
Does this collection role have a where clause filter?

public abstract java.lang.StringselectFragment(java.lang.String alias, java.lang.String columnSuffix)
Generate a list of collection index and element columns