Package org.hibernate.mapping
Class IdentifierCollection
- java.lang.Object
-
- org.hibernate.mapping.Collection
-
- org.hibernate.mapping.IdentifierCollection
-
- All Implemented Interfaces:
java.io.Serializable
,Fetchable
,Filterable
,Value
- Direct Known Subclasses:
IdentifierBag
public abstract class IdentifierCollection extends Collection
A collection with a synthetic "identifier" column- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_IDENTIFIER_COLUMN_NAME
-
Fields inherited from class org.hibernate.mapping.Collection
DEFAULT_ELEMENT_COLUMN_NAME, DEFAULT_KEY_COLUMN_NAME
-
-
Constructor Summary
Constructors Constructor Description IdentifierCollection(MetadataBuildingContext buildingContext, PersistentClass owner)
IdentifierCollection(MetadataImplementor metadata, PersistentClass owner)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValue
getIdentifier()
boolean
isIdentified()
boolean
isSame(Collection other)
boolean
isSame(IdentifierCollection other)
void
setIdentifier(KeyValue identifier)
void
validate(Mapping mapping)
-
Methods inherited from class org.hibernate.mapping.Collection
addFilter, addManyToManyFilter, createAllKeys, createForeignKey, getBatchSize, getCacheConcurrencyStrategy, getCacheRegionName, getCollectionPersisterClass, getCollectionTable, getCollectionType, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getComparator, getComparatorClassName, getCustomSQLDelete, getCustomSQLDeleteAll, getCustomSQLDeleteAllCheckStyle, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getDefaultCollectionType, getElement, getFetchMode, getFilters, getKey, getLoaderName, getManyToManyFilters, getManyToManyOrdering, getManyToManyWhere, getMappedByProperty, getMetadata, getOrderBy, getOwner, getOwnerEntityName, getReferencedPropertyName, getRole, getServiceRegistry, getSynchronizedTables, getTable, getType, getTypeName, getTypeParameters, getWhere, hasFormula, hasOrder, hasOrphanDelete, isAlternateUniqueKey, isArray, isCustomDeleteAllCallable, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isExtraLazy, isIndexed, isInverse, isLazy, isMap, isMutable, isNullable, isOneToMany, isOptimisticLocked, isPrimitiveArray, isSame, isSame, isSet, isSimpleValue, isSorted, isSubselectLoadable, isValid, setBatchSize, setCacheConcurrencyStrategy, setCacheRegionName, setCollectionPersisterClass, setCollectionTable, setComparator, setComparatorClassName, setCustomSQLDelete, setCustomSQLDeleteAll, setCustomSQLInsert, setCustomSQLUpdate, setElement, setExtraLazy, setFetchMode, setInverse, setKey, setLazy, setLoaderName, setManyToManyOrdering, setManyToManyWhere, setMappedByProperty, setMutable, setOptimisticLocked, setOrderBy, setOrphanDelete, setOwner, setReferencedPropertyName, setRole, setSorted, setSubselectLoadable, setTypeName, setTypeParameters, setTypeParameters, setTypeUsingReflection, setWhere, toString
-
-
-
-
Field Detail
-
DEFAULT_IDENTIFIER_COLUMN_NAME
public static final java.lang.String DEFAULT_IDENTIFIER_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IdentifierCollection
@Deprecated public IdentifierCollection(MetadataImplementor metadata, PersistentClass owner)
Deprecated.
-
IdentifierCollection
public IdentifierCollection(MetadataBuildingContext buildingContext, PersistentClass owner)
-
-
Method Detail
-
getIdentifier
public KeyValue getIdentifier()
-
setIdentifier
public void setIdentifier(KeyValue identifier)
-
isIdentified
public final boolean isIdentified()
- Overrides:
isIdentified
in classCollection
-
isSame
public boolean isSame(Collection other)
- Overrides:
isSame
in classCollection
-
isSame
public boolean isSame(IdentifierCollection other)
-
validate
public void validate(Mapping mapping) throws MappingException
- Overrides:
validate
in classCollection
- Throws:
MappingException
-
-