Interface QueryableCollection
- All Superinterfaces:
CollectionPersister,Joinable,PropertyMapping
- All Known Subinterfaces:
SQLLoadableCollection
- All Known Implementing Classes:
AbstractCollectionPersister,BasicCollectionPersister,OneToManyPersister
A collection role that may be queried or loaded by outer join.
-
Method Summary
Modifier and TypeMethodDescriptionString[]Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association)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 aliasGet the persister of the element class, if this is a collection of entities (optional operation).Should we load this collection role by outerjoining?String[]Get the names of the collection index columns if this is an indexed collection (optional operation)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 aliasString[]Get the index formulas if this is an indexed collection (optional operation)getManyToManyOrderByString(String alias) Get the order-by to be applied at the target table of a many to manygetSQLOrderByString(String alias) Get the order by SQLbooleanhasWhere()Does this collection role have a where clause filter?selectFragment(String alias, String columnSuffix) Generate a list of collection index and element columnsMethods inherited from interface org.hibernate.persister.collection.CollectionPersister
deleteRows, elementExists, getCacheAccessStrategy, getCacheEntryStructure, getCollectionMetadata, getCollectionSpaces, getCollectionType, getElementByIndex, getElementClass, getElementColumnAliases, getElementNodeName, getElementType, getFactory, getIdentifierColumnAlias, getIdentifierGenerator, getIdentifierType, getIndexColumnAliases, getIndexNodeName, getIndexType, getKeyColumnAliases, getKeyType, getManyToManyFilterFragment, getNodeName, getOwnerEntityPersister, getRole, getSize, hasCache, hasIndex, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, indexExists, initialize, insertRows, isAffectedByEnabledFilters, isArray, isCascadeDeleteEnabled, isExtraLazy, isInverse, isLazy, isManyToMany, isMutable, isOneToMany, isPrimitiveArray, isVersioned, postInstantiate, readElement, readIdentifier, readIndex, readKey, recreate, remove, updateRowsMethods inherited from interface org.hibernate.persister.entity.Joinable
consumesCollectionAlias, consumesEntityAlias, filterFragment, fromJoinFragment, getKeyColumnNames, getName, getTableName, isCollection, oneToManyFilterFragment, selectFragment, whereJoinFragmentMethods inherited from interface org.hibernate.persister.entity.PropertyMapping
getType, toColumns, toColumns, toType
-
Method Details
-
selectFragment
Generate a list of collection index and element columns -
getIndexColumnNames
String[] getIndexColumnNames()Get the names of the collection index columns if this is an indexed collection (optional operation) -
getIndexFormulas
String[] getIndexFormulas()Get the index formulas if this is an indexed collection (optional operation) -
getIndexColumnNames
Get the names of the collection index columns if this is an indexed collection (optional operation), aliased by the given table alias -
getElementColumnNames
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 -
getElementColumnNames
String[] getElementColumnNames()Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association) -
getSQLOrderByString
Get the order by SQL -
getManyToManyOrderByString
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.
-
hasWhere
boolean hasWhere()Does this collection role have a where clause filter? -
getElementPersister
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. -
getFetchMode
FetchMode getFetchMode()Should we load this collection role by outerjoining?
-