public abstract class Collection extends java.lang.Object implements Fetchable, Value, Filterable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_ELEMENT_COLUMN_NAME |
static java.lang.String |
DEFAULT_KEY_COLUMN_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
Collection(MetadataImplementor metadata,
PersistentClass owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(java.lang.String name,
java.lang.String condition,
boolean autoAliasInjection,
java.util.Map<java.lang.String,java.lang.String> aliasTableMap,
java.util.Map<java.lang.String,java.lang.String> aliasEntityMap) |
void |
addManyToManyFilter(java.lang.String name,
java.lang.String condition,
boolean autoAliasInjection,
java.util.Map<java.lang.String,java.lang.String> aliasTableMap,
java.util.Map<java.lang.String,java.lang.String> aliasEntityMap) |
void |
createAllKeys() |
void |
createForeignKey() |
int |
getBatchSize() |
java.lang.String |
getCacheConcurrencyStrategy() |
java.lang.String |
getCacheRegionName() |
java.lang.Class |
getCollectionPersisterClass() |
Table |
getCollectionTable() |
CollectionType |
getCollectionType() |
boolean[] |
getColumnInsertability() |
java.util.Iterator<Selectable> |
getColumnIterator() |
int |
getColumnSpan() |
boolean[] |
getColumnUpdateability() |
java.util.Comparator |
getComparator() |
java.lang.String |
getComparatorClassName() |
java.lang.String |
getCustomSQLDelete() |
java.lang.String |
getCustomSQLDeleteAll() |
ExecuteUpdateResultCheckStyle |
getCustomSQLDeleteAllCheckStyle() |
ExecuteUpdateResultCheckStyle |
getCustomSQLDeleteCheckStyle() |
java.lang.String |
getCustomSQLInsert() |
ExecuteUpdateResultCheckStyle |
getCustomSQLInsertCheckStyle() |
java.lang.String |
getCustomSQLUpdate() |
ExecuteUpdateResultCheckStyle |
getCustomSQLUpdateCheckStyle() |
abstract CollectionType |
getDefaultCollectionType() |
Value |
getElement() |
FetchMode |
getFetchMode() |
java.util.List |
getFilters() |
KeyValue |
getKey() |
java.lang.String |
getLoaderName() |
java.util.List |
getManyToManyFilters() |
java.lang.String |
getManyToManyOrdering() |
java.lang.String |
getManyToManyWhere() |
java.lang.String |
getMappedByProperty() |
MetadataImplementor |
getMetadata() |
java.lang.String |
getOrderBy() |
PersistentClass |
getOwner() |
java.lang.String |
getOwnerEntityName() |
java.lang.String |
getReferencedPropertyName() |
java.lang.String |
getRole() |
ServiceRegistry |
getServiceRegistry() |
java.util.Set<java.lang.String> |
getSynchronizedTables() |
Table |
getTable() |
Type |
getType() |
java.lang.String |
getTypeName() |
java.util.Properties |
getTypeParameters() |
java.lang.String |
getWhere() |
boolean |
hasFormula() |
boolean |
hasOrder() |
boolean |
hasOrphanDelete() |
boolean |
isAlternateUniqueKey() |
boolean |
isArray() |
boolean |
isCustomDeleteAllCallable() |
boolean |
isCustomDeleteCallable() |
boolean |
isCustomInsertCallable() |
boolean |
isCustomUpdateCallable() |
boolean |
isExtraLazy() |
boolean |
isIdentified() |
boolean |
isIndexed() |
boolean |
isInverse() |
boolean |
isLazy() |
boolean |
isMap() |
boolean |
isMutable() |
boolean |
isNullable() |
boolean |
isOneToMany() |
boolean |
isOptimisticLocked() |
boolean |
isPrimitiveArray() |
boolean |
isSame(Collection other) |
boolean |
isSame(Value other) |
protected static boolean |
isSame(Value v1,
Value v2) |
boolean |
isSet() |
boolean |
isSimpleValue() |
boolean |
isSorted() |
boolean |
isSubselectLoadable() |
boolean |
isValid(Mapping mapping) |
void |
setBatchSize(int i) |
void |
setCacheConcurrencyStrategy(java.lang.String cacheConcurrencyStrategy) |
void |
setCacheRegionName(java.lang.String cacheRegionName) |
void |
setCollectionPersisterClass(java.lang.Class persister) |
void |
setCollectionTable(Table table) |
void |
setComparator(java.util.Comparator comparator) |
void |
setComparatorClassName(java.lang.String comparatorClassName) |
void |
setCustomSQLDelete(java.lang.String customSQLDelete,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle) |
void |
setCustomSQLDeleteAll(java.lang.String customSQLDeleteAll,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle) |
void |
setCustomSQLInsert(java.lang.String customSQLInsert,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle) |
void |
setCustomSQLUpdate(java.lang.String customSQLUpdate,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle) |
void |
setElement(Value element) |
void |
setExtraLazy(boolean extraLazy) |
void |
setFetchMode(FetchMode fetchMode) |
void |
setInverse(boolean inverse) |
void |
setKey(KeyValue key) |
void |
setLazy(boolean lazy) |
void |
setLoaderName(java.lang.String name) |
void |
setManyToManyOrdering(java.lang.String orderFragment) |
void |
setManyToManyWhere(java.lang.String manyToManyWhere) |
void |
setMappedByProperty(java.lang.String mappedByProperty) |
void |
setMutable(boolean mutable) |
void |
setOptimisticLocked(boolean optimisticLocked) |
void |
setOrderBy(java.lang.String orderBy) |
void |
setOrphanDelete(boolean orphanDelete) |
void |
setOwner(PersistentClass owner)
Deprecated.
Inject the owner into constructor.
|
void |
setReferencedPropertyName(java.lang.String propertyRef) |
void |
setRole(java.lang.String role) |
void |
setSorted(boolean sorted) |
void |
setSubselectLoadable(boolean subqueryLoadable) |
void |
setTypeName(java.lang.String typeName) |
void |
setTypeParameters(java.util.Map parameterMap) |
void |
setTypeParameters(java.util.Properties parameterMap) |
void |
setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName) |
void |
setWhere(java.lang.String where) |
java.lang.String |
toString() |
void |
validate(Mapping mapping) |
public static final java.lang.String DEFAULT_ELEMENT_COLUMN_NAME
public static final java.lang.String DEFAULT_KEY_COLUMN_NAME
protected Collection(MetadataImplementor metadata, PersistentClass owner)
public MetadataImplementor getMetadata()
public ServiceRegistry getServiceRegistry()
getServiceRegistry in interface Valuepublic boolean isSet()
public KeyValue getKey()
public Value getElement()
public boolean isIndexed()
public Table getCollectionTable()
public void setCollectionTable(Table table)
public boolean isSorted()
public java.util.Comparator getComparator()
public java.lang.String getRole()
public abstract CollectionType getDefaultCollectionType() throws MappingException
MappingExceptionpublic boolean isPrimitiveArray()
public boolean isArray()
public boolean hasFormula()
hasFormula in interface Valuepublic boolean isOneToMany()
public boolean isInverse()
public java.lang.String getOwnerEntityName()
public java.lang.String getOrderBy()
public void setComparator(java.util.Comparator comparator)
public void setElement(Value element)
public void setKey(KeyValue key)
public void setOrderBy(java.lang.String orderBy)
public void setRole(java.lang.String role)
public void setSorted(boolean sorted)
public void setInverse(boolean inverse)
public PersistentClass getOwner()
@Deprecated public void setOwner(PersistentClass owner)
owner - The ownerpublic java.lang.String getWhere()
public void setWhere(java.lang.String where)
public java.lang.String getManyToManyWhere()
public void setManyToManyWhere(java.lang.String manyToManyWhere)
public java.lang.String getManyToManyOrdering()
public void setManyToManyOrdering(java.lang.String orderFragment)
public boolean isIdentified()
public boolean hasOrphanDelete()
public void setOrphanDelete(boolean orphanDelete)
public int getBatchSize()
public void setBatchSize(int i)
public FetchMode getFetchMode()
getFetchMode in interface FetchablegetFetchMode in interface Valuepublic void setFetchMode(FetchMode fetchMode)
setFetchMode in interface Fetchablepublic void setCollectionPersisterClass(java.lang.Class persister)
public java.lang.Class getCollectionPersisterClass()
public void validate(Mapping mapping) throws MappingException
MappingExceptionpublic java.util.Iterator<Selectable> getColumnIterator()
getColumnIterator in interface Valuepublic int getColumnSpan()
getColumnSpan in interface Valuepublic Type getType() throws MappingException
getType in interface ValueMappingExceptionpublic CollectionType getCollectionType()
public boolean isNullable()
isNullable in interface Valuepublic boolean isAlternateUniqueKey()
isAlternateUniqueKey in interface Valuepublic void createForeignKey()
createForeignKey in interface Valuepublic boolean isSimpleValue()
isSimpleValue in interface Valuepublic boolean isValid(Mapping mapping) throws MappingException
isValid in interface ValueMappingExceptionpublic boolean isSame(Collection other)
public void createAllKeys()
throws MappingException
MappingExceptionpublic java.lang.String getCacheConcurrencyStrategy()
public void setCacheConcurrencyStrategy(java.lang.String cacheConcurrencyStrategy)
public void setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName)
setTypeUsingReflection in interface Valuepublic java.lang.String getCacheRegionName()
public void setCacheRegionName(java.lang.String cacheRegionName)
public void setCustomSQLInsert(java.lang.String customSQLInsert,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle)
public java.lang.String getCustomSQLInsert()
public boolean isCustomInsertCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLInsertCheckStyle()
public void setCustomSQLUpdate(java.lang.String customSQLUpdate,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle)
public java.lang.String getCustomSQLUpdate()
public boolean isCustomUpdateCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLUpdateCheckStyle()
public void setCustomSQLDelete(java.lang.String customSQLDelete,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle)
public java.lang.String getCustomSQLDelete()
public boolean isCustomDeleteCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLDeleteCheckStyle()
public void setCustomSQLDeleteAll(java.lang.String customSQLDeleteAll,
boolean callable,
ExecuteUpdateResultCheckStyle checkStyle)
public java.lang.String getCustomSQLDeleteAll()
public boolean isCustomDeleteAllCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLDeleteAllCheckStyle()
public void addFilter(java.lang.String name,
java.lang.String condition,
boolean autoAliasInjection,
java.util.Map<java.lang.String,java.lang.String> aliasTableMap,
java.util.Map<java.lang.String,java.lang.String> aliasEntityMap)
addFilter in interface Filterablepublic java.util.List getFilters()
getFilters in interface Filterablepublic void addManyToManyFilter(java.lang.String name,
java.lang.String condition,
boolean autoAliasInjection,
java.util.Map<java.lang.String,java.lang.String> aliasTableMap,
java.util.Map<java.lang.String,java.lang.String> aliasEntityMap)
public java.util.List getManyToManyFilters()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<java.lang.String> getSynchronizedTables()
public java.lang.String getLoaderName()
public void setLoaderName(java.lang.String name)
public java.lang.String getReferencedPropertyName()
public void setReferencedPropertyName(java.lang.String propertyRef)
public boolean isOptimisticLocked()
public void setOptimisticLocked(boolean optimisticLocked)
public boolean isMap()
public java.lang.String getTypeName()
public void setTypeName(java.lang.String typeName)
public java.util.Properties getTypeParameters()
public void setTypeParameters(java.util.Properties parameterMap)
public void setTypeParameters(java.util.Map parameterMap)
public boolean[] getColumnInsertability()
getColumnInsertability in interface Valuepublic boolean[] getColumnUpdateability()
getColumnUpdateability in interface Valuepublic boolean isSubselectLoadable()
public void setSubselectLoadable(boolean subqueryLoadable)
public boolean isMutable()
public void setMutable(boolean mutable)
public boolean isExtraLazy()
public void setExtraLazy(boolean extraLazy)
public boolean hasOrder()
public void setComparatorClassName(java.lang.String comparatorClassName)
public java.lang.String getComparatorClassName()
public java.lang.String getMappedByProperty()
public void setMappedByProperty(java.lang.String mappedByProperty)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.