接口 QueryableCollection
-
- 所有已知子接口:
SQLLoadableCollection
public interface QueryableCollection extends PropertyMapping, Joinable, CollectionPersister
A collection role that may be queried or loaded by outer join.- 作者:
- Gavin King
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String[]getElementColumnNames()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 aliasEntityPersistergetElementPersister()Get the persister of the element class, if this is a collection of entities (optional operation).FetchModegetFetchMode()Should we load this collection role by outerjoining?String[]getIndexColumnNames()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[]getIndexFormulas()Get the index formulas if this is an indexed collection (optional operation)StringgetManyToManyOrderByString(String alias)Get the order-by to be applied at the target table of a many to manyStringgetSQLOrderByString(String alias)Get the order by SQLbooleanhasWhere()Does this collection role have a where clause filter?StringselectFragment(String alias, String columnSuffix)Generate a list of collection index and element columns-
从接口继承的方法 org.hibernate.persister.walking.spi.CollectionDefinition
getCollectionPersister, getElementDefinition, getIndexDefinition
-
从接口继承的方法 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
-
从接口继承的方法 org.hibernate.persister.entity.Joinable
consumesCollectionAlias, consumesEntityAlias, filterFragment, filterFragment, fromJoinFragment, fromJoinFragment, fromJoinFragment, getKeyColumnNames, getName, getTableName, isCollection, oneToManyFilterFragment, oneToManyFilterFragment, selectFragment, whereJoinFragment, whereJoinFragment
-
从接口继承的方法 org.hibernate.persister.entity.PropertyMapping
getType, toColumns, toColumns, toType
-
-
-
-
方法详细资料
-
selectFragment
String selectFragment(String alias, String columnSuffix)
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
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
-
getElementColumnNames
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
-
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)
-
getManyToManyOrderByString
String getManyToManyOrderByString(String alias)
Get the order-by to be applied at the target table of a many to many- 参数:
alias- The alias for the many-to-many target table- 返回:
- 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?
-
-