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 Value
public 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
MappingException
public boolean isPrimitiveArray()
public boolean isArray()
public boolean hasFormula()
hasFormula
in interface Value
public 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 Fetchable
getFetchMode
in interface Value
public void setFetchMode(FetchMode fetchMode)
setFetchMode
in interface Fetchable
public void setCollectionPersisterClass(Class persister)
public Class getCollectionPersisterClass()
public void validate(Mapping mapping) throws MappingException
MappingException
public Iterator<Selectable> getColumnIterator()
getColumnIterator
in interface Value
public int getColumnSpan()
getColumnSpan
in interface Value
public Type getType() throws MappingException
getType
in interface Value
MappingException
public CollectionType getCollectionType()
public boolean isNullable()
isNullable
in interface Value
public boolean isAlternateUniqueKey()
isAlternateUniqueKey
in interface Value
public void createForeignKey()
createForeignKey
in interface Value
public boolean isSimpleValue()
isSimpleValue
in interface Value
public boolean isValid(Mapping mapping) throws MappingException
isValid
in interface Value
MappingException
public boolean isSame(Collection other)
public void createAllKeys() throws MappingException
MappingException
public String getCacheConcurrencyStrategy()
public void setCacheConcurrencyStrategy(String cacheConcurrencyStrategy)
public void setTypeUsingReflection(String className, String propertyName)
setTypeUsingReflection
in interface Value
public 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 Filterable
public List getFilters()
getFilters
in interface Filterable
public 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 Value
public boolean[] getColumnUpdateability()
getColumnUpdateability
in interface Value
public 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 © 2019 JBoss by Red Hat. All rights reserved.