Class AbstractPluralAttributeSourceImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.AbstractPluralAttributeSourceImpl
-
- All Implemented Interfaces:
Helper.InLineViewNameInferrer,AttributeSource,CascadeStyleSource,FetchableAttributeSource,PluralAttributeSource,ToolingHintContextContainer
- Direct Known Subclasses:
PluralAttributeSourceArrayImpl,PluralAttributeSourceBagImpl,PluralAttributeSourceIdBagImpl,PluralAttributeSourceListImpl,PluralAttributeSourceMapImpl,PluralAttributeSourcePrimitiveArrayImpl,PluralAttributeSourceSetImpl
public abstract class AbstractPluralAttributeSourceImpl extends AbstractHbmSourceNode implements PluralAttributeSource, Helper.InLineViewNameInferrer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPluralAttributeSourceImpl(MappingDocument mappingDocument, PluralAttributeInfo pluralAttributeJaxbMapping, AttributeSourceContainer container)
-
Method Summary
-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.model.source.spi.AttributeSource
getSourceType, getXmlNodeName
-
Methods inherited from interface org.hibernate.boot.model.source.spi.PluralAttributeSource
getNature
-
-
-
-
Constructor Detail
-
AbstractPluralAttributeSourceImpl
protected AbstractPluralAttributeSourceImpl(MappingDocument mappingDocument, PluralAttributeInfo pluralAttributeJaxbMapping, AttributeSourceContainer container)
-
-
Method Detail
-
getAttributePath
public AttributePath getAttributePath()
- Specified by:
getAttributePathin interfaceAttributeSource
-
getAttributeRole
public AttributeRole getAttributeRole()
- Specified by:
getAttributeRolein interfaceAttributeSource
-
usesJoinTable
public boolean usesJoinTable()
- Specified by:
usesJoinTablein interfacePluralAttributeSource
-
container
protected AttributeSourceContainer container()
-
getFilterSources
public FilterSource[] getFilterSources()
- Specified by:
getFilterSourcesin interfacePluralAttributeSource
-
getKeySource
public PluralAttributeKeySource getKeySource()
- Specified by:
getKeySourcein interfacePluralAttributeSource
-
getElementSource
public PluralAttributeElementSource getElementSource()
- Specified by:
getElementSourcein interfacePluralAttributeSource
-
getCascadeStyleName
public String getCascadeStyleName()
Description copied from interface:CascadeStyleSourceObtain the cascade styles to be applied to this association.- Specified by:
getCascadeStyleNamein interfaceCascadeStyleSource- Returns:
- The cascade styles.
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfacePluralAttributeSource
-
getMappedBy
public String getMappedBy()
- Specified by:
getMappedByin interfacePluralAttributeSource
-
inferInLineViewName
public String inferInLineViewName()
- Specified by:
inferInLineViewNamein interfaceHelper.InLineViewNameInferrer
-
getCollectionIdSource
public CollectionIdSource getCollectionIdSource()
- Specified by:
getCollectionIdSourcein interfacePluralAttributeSource
-
getCollectionTableSpecificationSource
public TableSpecificationSource getCollectionTableSpecificationSource()
- Specified by:
getCollectionTableSpecificationSourcein interfacePluralAttributeSource
-
getCollectionTableComment
public String getCollectionTableComment()
- Specified by:
getCollectionTableCommentin interfacePluralAttributeSource
-
getCollectionTableCheck
public String getCollectionTableCheck()
- Specified by:
getCollectionTableCheckin interfacePluralAttributeSource
-
getSynchronizedTableNames
public String[] getSynchronizedTableNames()
Description copied from interface:PluralAttributeSourceObtain any additional table names on which to synchronize (auto flushing) this entity.- Specified by:
getSynchronizedTableNamesin interfacePluralAttributeSource- Returns:
- Additional synchronized table names or 0 sized String array, never return null.
-
getCaching
public Caching getCaching()
- Specified by:
getCachingin interfacePluralAttributeSource
-
getWhere
public String getWhere()
- Specified by:
getWherein interfacePluralAttributeSource
-
getName
public String getName()
Description copied from interface:AttributeSourceObtain the attribute name.- Specified by:
getNamein interfaceAttributeSource- Returns:
- The attribute name.
nullis NOT allowed!
-
isSingular
public boolean isSingular()
Description copied from interface:AttributeSourceAttributes are (coarsely speaking) either singular or plural.- Specified by:
isSingularin interfaceAttributeSource- Returns:
trueindicates the attribute is singular (and therefore castable toSingularAttributeSource);falseindicates it is plural (and therefore castable toPluralAttributeSource).
-
getTypeInformation
public HibernateTypeSource getTypeInformation()
Description copied from interface:AttributeSourceObtain information about the Hibernate type (Type) for this attribute.- Specified by:
getTypeInformationin interfaceAttributeSource- Returns:
- The Hibernate type information
-
getPropertyAccessorName
public String getPropertyAccessorName()
Description copied from interface:AttributeSourceObtain the name of the property accessor style used to access this attribute.- Specified by:
getPropertyAccessorNamein interfaceAttributeSource- Returns:
- The property accessor style for this attribute.
- See Also:
PropertyAccessStrategy
-
isIncludedInOptimisticLocking
public boolean isIncludedInOptimisticLocking()
Description copied from interface:AttributeSourceIf the containing entity is using optimistic locking, should this attribute participate in that locking? Meaning, should changes in the value of this attribute at runtime indicate that the entity is now dirty in terms of optimistic locking?- Specified by:
isIncludedInOptimisticLockingin interfaceAttributeSource- Returns:
trueindicates it should be included;false, it should not.
-
isInverse
public boolean isInverse()
- Specified by:
isInversein interfacePluralAttributeSource
-
getCustomPersisterClassName
public String getCustomPersisterClassName()
- Specified by:
getCustomPersisterClassNamein interfacePluralAttributeSource
-
getCustomLoaderName
public String getCustomLoaderName()
- Specified by:
getCustomLoaderNamein interfacePluralAttributeSource
-
getCustomSqlInsert
public CustomSql getCustomSqlInsert()
- Specified by:
getCustomSqlInsertin interfacePluralAttributeSource
-
getCustomSqlUpdate
public CustomSql getCustomSqlUpdate()
- Specified by:
getCustomSqlUpdatein interfacePluralAttributeSource
-
getCustomSqlDelete
public CustomSql getCustomSqlDelete()
- Specified by:
getCustomSqlDeletein interfacePluralAttributeSource
-
getCustomSqlDeleteAll
public CustomSql getCustomSqlDeleteAll()
- Specified by:
getCustomSqlDeleteAllin interfacePluralAttributeSource
-
getToolingHintContext
public ToolingHintContext getToolingHintContext()
- Specified by:
getToolingHintContextin interfaceToolingHintContextContainer
-
getFetchCharacteristics
public FetchCharacteristicsPluralAttribute getFetchCharacteristics()
- Specified by:
getFetchCharacteristicsin interfaceFetchableAttributeSource- Specified by:
getFetchCharacteristicsin interfacePluralAttributeSource
-
-