public abstract class Collection extends Object implements Fetchable, Value, Filterable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ELEMENT_COLUMN_NAME |
static String |
DEFAULT_KEY_COLUMN_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
Collection(MetadataBuildingContext buildingContext,
PersistentClass owner) |
protected |
Collection(MetadataImplementor metadata,
PersistentClass owner)
Deprecated.
Use
Collection(MetadataBuildingContext, PersistentClass) instead. |
public static final String DEFAULT_ELEMENT_COLUMN_NAME
public static final String DEFAULT_KEY_COLUMN_NAME
protected Collection(MetadataBuildingContext buildingContext, PersistentClass owner)
@Deprecated protected Collection(MetadataImplementor metadata, PersistentClass owner)
Collection(MetadataBuildingContext, PersistentClass) instead.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 Comparator getComparator()
public 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 String getOwnerEntityName()
public String getOrderBy()
public void setComparator(Comparator comparator)
public void setElement(Value element)
public void setKey(KeyValue key)
public void setOrderBy(String orderBy)
public void setRole(String role)
public void setSorted(boolean sorted)
public void setInverse(boolean inverse)
public PersistentClass getOwner()
@Deprecated public void setOwner(PersistentClass owner)
owner - The ownerpublic String getWhere()
public void setWhere(String where)
public String getManyToManyWhere()
public void setManyToManyWhere(String manyToManyWhere)
public String getManyToManyOrdering()
public void setManyToManyOrdering(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(Class persister)
public Class getCollectionPersisterClass()
public void validate(Mapping mapping) throws MappingException
MappingExceptionpublic 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 String getCacheConcurrencyStrategy()
public void setCacheConcurrencyStrategy(String cacheConcurrencyStrategy)
public void setTypeUsingReflection(String className, String propertyName)
setTypeUsingReflection in interface Valuepublic String getCacheRegionName()
public void setCacheRegionName(String cacheRegionName)
public void setCustomSQLInsert(String customSQLInsert, boolean callable, ExecuteUpdateResultCheckStyle checkStyle)
public String getCustomSQLInsert()
public boolean isCustomInsertCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLInsertCheckStyle()
public void setCustomSQLUpdate(String customSQLUpdate, boolean callable, ExecuteUpdateResultCheckStyle checkStyle)
public String getCustomSQLUpdate()
public boolean isCustomUpdateCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLUpdateCheckStyle()
public void setCustomSQLDelete(String customSQLDelete, boolean callable, ExecuteUpdateResultCheckStyle checkStyle)
public String getCustomSQLDelete()
public boolean isCustomDeleteCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLDeleteCheckStyle()
public void setCustomSQLDeleteAll(String customSQLDeleteAll, boolean callable, ExecuteUpdateResultCheckStyle checkStyle)
public String getCustomSQLDeleteAll()
public boolean isCustomDeleteAllCallable()
public ExecuteUpdateResultCheckStyle getCustomSQLDeleteAllCheckStyle()
public void addFilter(String name, String condition, boolean autoAliasInjection, Map<String,String> aliasTableMap, Map<String,String> aliasEntityMap)
addFilter in interface Filterablepublic List getFilters()
getFilters in interface Filterablepublic void addManyToManyFilter(String name, String condition, boolean autoAliasInjection, Map<String,String> aliasTableMap, Map<String,String> aliasEntityMap)
public List getManyToManyFilters()
public String getLoaderName()
public void setLoaderName(String name)
public String getReferencedPropertyName()
public void setReferencedPropertyName(String propertyRef)
public boolean isOptimisticLocked()
public void setOptimisticLocked(boolean optimisticLocked)
public boolean isMap()
public String getTypeName()
public void setTypeName(String typeName)
public Properties getTypeParameters()
public void setTypeParameters(Properties parameterMap)
public void setTypeParameters(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(String comparatorClassName)
public String getComparatorClassName()
public String getMappedByProperty()
public void setMappedByProperty(String mappedByProperty)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.