Interface QueryableCollection
-
- All Superinterfaces:
CollectionDefinition
,CollectionPersister
,Joinable
,PropertyMapping
- All Known Subinterfaces:
SQLLoadableCollection
- All Known Implementing Classes:
AbstractCollectionPersister
,BasicCollectionPersister
,OneToManyPersister
public interface QueryableCollection extends PropertyMapping, Joinable, CollectionPersister
A collection role that may be queried or loaded by outer join.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)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 aliasEntityPersister
getElementPersister()
Get the persister of the element class, if this is a collection of entities (optional operation).FetchMode
getFetchMode()
Should we load this collection role by outerjoining?java.lang.String[]
getIndexColumnNames()
Get the names of the collection index columns if this is an indexed collection (optional operation)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 aliasjava.lang.String[]
getIndexFormulas()
Get the index formulas if this is an indexed collection (optional operation)java.lang.String
getManyToManyOrderByString(java.lang.String alias)
Get the order-by to be applied at the target table of a many to manyjava.lang.String
getSQLOrderByString(java.lang.String alias)
Get the order by SQLboolean
hasWhere()
Does this collection role have a where clause filter?java.lang.String
selectFragment(java.lang.String alias, java.lang.String columnSuffix)
Generate a list of collection index and element columns-
Methods inherited from interface org.hibernate.persister.walking.spi.CollectionDefinition
getCollectionPersister, getElementDefinition, getIndexDefinition
-
Methods inherited from interface org.hibernate.persister.collection.CollectionPersister
deleteRows, elementExists, getBatchSize, getCacheAccessStrategy, getCacheEntryStructure, getCollectionMetadata, getCollectionSpaces, getCollectionType, getElementByIndex, getElementClass, getElementColumnAliases, getElementType, getFactory, getIdentifierColumnAlias, getIdentifierGenerator, getIdentifierType, getIndexColumnAliases, getIndexType, getKeyColumnAliases, getKeyType, getManyToManyFilterFragment, getMappedByProperty, getNavigableRole, getOwnerEntityPersister, getRole, getSize, hasCache, hasIndex, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, indexExists, initialize, insertRows, isAffectedByEnabledFilters, isArray, isCascadeDeleteEnabled, isExtraLazy, isInverse, isLazy, isManyToMany, isMutable, isOneToMany, isPrimitiveArray, isVersioned, postInstantiate, processQueuedOps, readElement, readIdentifier, readIndex, readKey, recreate, remove, updateRows
-
Methods inherited from interface org.hibernate.persister.entity.Joinable
consumesCollectionAlias, consumesEntityAlias, filterFragment, filterFragment, fromJoinFragment, fromJoinFragment, getKeyColumnNames, getName, getTableName, isCollection, oneToManyFilterFragment, oneToManyFilterFragment, selectFragment, whereJoinFragment, whereJoinFragment
-
Methods inherited from interface org.hibernate.persister.entity.PropertyMapping
getType, toColumns, toColumns, toType
-
-
-
-
Method Detail
-
selectFragment
java.lang.String selectFragment(java.lang.String alias, java.lang.String columnSuffix)
Generate a list of collection index and element columns
-
getIndexColumnNames
java.lang.String[] getIndexColumnNames()
Get the names of the collection index columns if this is an indexed collection (optional operation)
-
getIndexFormulas
java.lang.String[] getIndexFormulas()
Get the index formulas if this is an indexed collection (optional operation)
-
getIndexColumnNames
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
-
getElementColumnNames
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
-
getElementColumnNames
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)
-
getSQLOrderByString
java.lang.String getSQLOrderByString(java.lang.String alias)
Get the order by SQL
-
getManyToManyOrderByString
java.lang.String getManyToManyOrderByString(java.lang.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.
-
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?
-
-