Package org.hibernate.mapping
Class Collection
java.lang.Object
org.hibernate.mapping.Collection
- All Implemented Interfaces:
Serializable,Fetchable,Filterable,Value
- Direct Known Subclasses:
Bag,IdentifierCollection,IndexedCollection,Set
Mapping for a collection. Subclasses specialize to particular collection styles.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddManyToManyFilter(String name, String condition) voidvoidintboolean[]intboolean[]abstract CollectionTypegetKey()getOwner()getRole()getTable()getType()getWhere()booleanbooleanhasOrder()booleanbooleanbooleanisArray()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisLazy()booleanisMap()booleanbooleanbooleanbooleanbooleanbooleanisSet()booleanbooleanisSorted()booleanbooleanvoidsetBatchSize(int i) voidsetCacheConcurrencyStrategy(String cacheConcurrencyStrategy) voidsetCacheRegionName(String cacheRegionName) voidsetCollectionPersisterClass(Class persister) voidsetCollectionTable(Table table) voidsetComparator(Comparator comparator) voidsetComparatorClassName(String comparatorClassName) voidsetCustomSQLDelete(String customSQLDelete, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) voidsetCustomSQLDeleteAll(String customSQLDeleteAll, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) voidsetCustomSQLInsert(String customSQLInsert, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) voidsetCustomSQLUpdate(String customSQLUpdate, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) voidsetElement(Value element) voidsetElementNodeName(String elementNodeName) voidsetEmbedded(boolean embedded) voidsetExtraLazy(boolean extraLazy) voidsetFetchMode(FetchMode fetchMode) voidsetInverse(boolean inverse) voidvoidsetLazy(boolean lazy) voidsetLoaderName(String name) voidsetManyToManyOrdering(String orderFragment) voidsetManyToManyWhere(String manyToManyWhere) voidsetMutable(boolean mutable) voidsetNodeName(String nodeName) voidsetOptimisticLocked(boolean optimisticLocked) voidsetOrderBy(String orderBy) voidsetOrphanDelete(boolean orphanDelete) voidsetOwner(PersistentClass owner) Deprecated.Inject the owner into constructor.voidsetReferencedPropertyName(String propertyRef) voidvoidsetSorted(boolean sorted) voidsetSubselectLoadable(boolean subqueryLoadable) voidsetTypeName(String typeName) voidsetTypeParameters(Properties parameterMap) voidsetTypeUsingReflection(String className, String propertyName) voidtoString()void
-
Field Details
-
DEFAULT_ELEMENT_COLUMN_NAME
- See Also:
-
DEFAULT_KEY_COLUMN_NAME
- See Also:
-
-
Constructor Details
-
Collection
-
-
Method Details
-
getMappings
-
isSet
public boolean isSet() -
getKey
-
getElement
-
isIndexed
public boolean isIndexed() -
getCollectionTable
-
setCollectionTable
-
isSorted
public boolean isSorted() -
getComparator
-
isLazy
public boolean isLazy() -
setLazy
public void setLazy(boolean lazy) -
getRole
-
getDefaultCollectionType
- Throws:
MappingException
-
isPrimitiveArray
public boolean isPrimitiveArray() -
isArray
public boolean isArray() -
hasFormula
public boolean hasFormula()- Specified by:
hasFormulain interfaceValue
-
isOneToMany
public boolean isOneToMany() -
isInverse
public boolean isInverse() -
getOwnerEntityName
-
getOrderBy
-
setComparator
-
setElement
-
setKey
-
setOrderBy
-
setRole
-
setSorted
public void setSorted(boolean sorted) -
setInverse
public void setInverse(boolean inverse) -
getOwner
-
setOwner
Deprecated.Inject the owner into constructor.- Parameters:
owner- The owner
-
getWhere
-
setWhere
-
getManyToManyWhere
-
setManyToManyWhere
-
getManyToManyOrdering
-
setManyToManyOrdering
-
isIdentified
public boolean isIdentified() -
hasOrphanDelete
public boolean hasOrphanDelete() -
setOrphanDelete
public void setOrphanDelete(boolean orphanDelete) -
getBatchSize
public int getBatchSize() -
setBatchSize
public void setBatchSize(int i) -
getFetchMode
- Specified by:
getFetchModein interfaceFetchable- Specified by:
getFetchModein interfaceValue
-
setFetchMode
- Specified by:
setFetchModein interfaceFetchable
-
setCollectionPersisterClass
-
getCollectionPersisterClass
-
validate
- Throws:
MappingException
-
getColumnIterator
- Specified by:
getColumnIteratorin interfaceValue
-
getColumnSpan
public int getColumnSpan()- Specified by:
getColumnSpanin interfaceValue
-
getType
- Specified by:
getTypein interfaceValue- Throws:
MappingException
-
getCollectionType
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceValue
-
isAlternateUniqueKey
public boolean isAlternateUniqueKey()- Specified by:
isAlternateUniqueKeyin interfaceValue
-
getTable
-
createForeignKey
public void createForeignKey()- Specified by:
createForeignKeyin interfaceValue
-
isSimpleValue
public boolean isSimpleValue()- Specified by:
isSimpleValuein interfaceValue
-
isValid
- Specified by:
isValidin interfaceValue- Throws:
MappingException
-
createAllKeys
- Throws:
MappingException
-
getCacheConcurrencyStrategy
-
setCacheConcurrencyStrategy
-
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue
-
getCacheRegionName
-
setCacheRegionName
-
setCustomSQLInsert
public void setCustomSQLInsert(String customSQLInsert, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) -
getCustomSQLInsert
-
isCustomInsertCallable
public boolean isCustomInsertCallable() -
getCustomSQLInsertCheckStyle
-
setCustomSQLUpdate
public void setCustomSQLUpdate(String customSQLUpdate, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) -
getCustomSQLUpdate
-
isCustomUpdateCallable
public boolean isCustomUpdateCallable() -
getCustomSQLUpdateCheckStyle
-
setCustomSQLDelete
public void setCustomSQLDelete(String customSQLDelete, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) -
getCustomSQLDelete
-
isCustomDeleteCallable
public boolean isCustomDeleteCallable() -
getCustomSQLDeleteCheckStyle
-
setCustomSQLDeleteAll
public void setCustomSQLDeleteAll(String customSQLDeleteAll, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) -
getCustomSQLDeleteAll
-
isCustomDeleteAllCallable
public boolean isCustomDeleteAllCallable() -
getCustomSQLDeleteAllCheckStyle
-
addFilter
- Specified by:
addFilterin interfaceFilterable
-
getFilterMap
- Specified by:
getFilterMapin interfaceFilterable
-
addManyToManyFilter
-
getManyToManyFilterMap
-
toString
-
getSynchronizedTables
-
getLoaderName
-
setLoaderName
-
getReferencedPropertyName
-
setReferencedPropertyName
-
isOptimisticLocked
public boolean isOptimisticLocked() -
setOptimisticLocked
public void setOptimisticLocked(boolean optimisticLocked) -
isMap
public boolean isMap() -
getTypeName
-
setTypeName
-
getTypeParameters
-
setTypeParameters
-
getColumnInsertability
public boolean[] getColumnInsertability()- Specified by:
getColumnInsertabilityin interfaceValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()- Specified by:
getColumnUpdateabilityin interfaceValue
-
getNodeName
-
setNodeName
-
getElementNodeName
-
setElementNodeName
-
isEmbedded
public boolean isEmbedded() -
setEmbedded
public void setEmbedded(boolean embedded) -
isSubselectLoadable
public boolean isSubselectLoadable() -
setSubselectLoadable
public void setSubselectLoadable(boolean subqueryLoadable) -
isMutable
public boolean isMutable() -
setMutable
public void setMutable(boolean mutable) -
isExtraLazy
public boolean isExtraLazy() -
setExtraLazy
public void setExtraLazy(boolean extraLazy) -
hasOrder
public boolean hasOrder() -
setComparatorClassName
-
getComparatorClassName
-