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 protected
AbstractPluralAttributeSourceImpl(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:
getAttributePath
in interfaceAttributeSource
-
getAttributeRole
public AttributeRole getAttributeRole()
- Specified by:
getAttributeRole
in interfaceAttributeSource
-
usesJoinTable
public boolean usesJoinTable()
- Specified by:
usesJoinTable
in interfacePluralAttributeSource
-
container
protected AttributeSourceContainer container()
-
getFilterSources
public FilterSource[] getFilterSources()
- Specified by:
getFilterSources
in interfacePluralAttributeSource
-
getKeySource
public PluralAttributeKeySource getKeySource()
- Specified by:
getKeySource
in interfacePluralAttributeSource
-
getElementSource
public PluralAttributeElementSource getElementSource()
- Specified by:
getElementSource
in interfacePluralAttributeSource
-
getCascadeStyleName
public String getCascadeStyleName()
Description copied from interface:CascadeStyleSource
Obtain the cascade styles to be applied to this association.- Specified by:
getCascadeStyleName
in interfaceCascadeStyleSource
- Returns:
- The cascade styles.
-
isMutable
public boolean isMutable()
- Specified by:
isMutable
in interfacePluralAttributeSource
-
getMappedBy
public String getMappedBy()
- Specified by:
getMappedBy
in interfacePluralAttributeSource
-
inferInLineViewName
public String inferInLineViewName()
- Specified by:
inferInLineViewName
in interfaceHelper.InLineViewNameInferrer
-
getCollectionIdSource
public CollectionIdSource getCollectionIdSource()
- Specified by:
getCollectionIdSource
in interfacePluralAttributeSource
-
getCollectionTableSpecificationSource
public TableSpecificationSource getCollectionTableSpecificationSource()
- Specified by:
getCollectionTableSpecificationSource
in interfacePluralAttributeSource
-
getCollectionTableComment
public String getCollectionTableComment()
- Specified by:
getCollectionTableComment
in interfacePluralAttributeSource
-
getCollectionTableCheck
public String getCollectionTableCheck()
- Specified by:
getCollectionTableCheck
in interfacePluralAttributeSource
-
getSynchronizedTableNames
public String[] getSynchronizedTableNames()
Description copied from interface:PluralAttributeSource
Obtain any additional table names on which to synchronize (auto flushing) this entity.- Specified by:
getSynchronizedTableNames
in interfacePluralAttributeSource
- Returns:
- Additional synchronized table names or 0 sized String array, never return null.
-
getCaching
public Caching getCaching()
- Specified by:
getCaching
in interfacePluralAttributeSource
-
getWhere
public String getWhere()
- Specified by:
getWhere
in interfacePluralAttributeSource
-
getName
public String getName()
Description copied from interface:AttributeSource
Obtain the attribute name.- Specified by:
getName
in interfaceAttributeSource
- Returns:
- The attribute name.
null
is NOT allowed!
-
isSingular
public boolean isSingular()
Description copied from interface:AttributeSource
Attributes are (coarsely speaking) either singular or plural.- Specified by:
isSingular
in interfaceAttributeSource
- Returns:
true
indicates the attribute is singular (and therefore castable toSingularAttributeSource
);false
indicates it is plural (and therefore castable toPluralAttributeSource
).
-
getTypeInformation
public HibernateTypeSource getTypeInformation()
Description copied from interface:AttributeSource
Obtain information about the Hibernate type (Type
) for this attribute.- Specified by:
getTypeInformation
in interfaceAttributeSource
- Returns:
- The Hibernate type information
-
getPropertyAccessorName
public String getPropertyAccessorName()
Description copied from interface:AttributeSource
Obtain the name of the property accessor style used to access this attribute.- Specified by:
getPropertyAccessorName
in interfaceAttributeSource
- Returns:
- The property accessor style for this attribute.
- See Also:
PropertyAccessStrategy
-
isIncludedInOptimisticLocking
public boolean isIncludedInOptimisticLocking()
Description copied from interface:AttributeSource
If 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:
isIncludedInOptimisticLocking
in interfaceAttributeSource
- Returns:
true
indicates it should be included;false
, it should not.
-
isInverse
public boolean isInverse()
- Specified by:
isInverse
in interfacePluralAttributeSource
-
getCustomPersisterClassName
public String getCustomPersisterClassName()
- Specified by:
getCustomPersisterClassName
in interfacePluralAttributeSource
-
getCustomLoaderName
public String getCustomLoaderName()
- Specified by:
getCustomLoaderName
in interfacePluralAttributeSource
-
getCustomSqlInsert
public CustomSql getCustomSqlInsert()
- Specified by:
getCustomSqlInsert
in interfacePluralAttributeSource
-
getCustomSqlUpdate
public CustomSql getCustomSqlUpdate()
- Specified by:
getCustomSqlUpdate
in interfacePluralAttributeSource
-
getCustomSqlDelete
public CustomSql getCustomSqlDelete()
- Specified by:
getCustomSqlDelete
in interfacePluralAttributeSource
-
getCustomSqlDeleteAll
public CustomSql getCustomSqlDeleteAll()
- Specified by:
getCustomSqlDeleteAll
in interfacePluralAttributeSource
-
getToolingHintContext
public ToolingHintContext getToolingHintContext()
- Specified by:
getToolingHintContext
in interfaceToolingHintContextContainer
-
getFetchCharacteristics
public FetchCharacteristicsPluralAttribute getFetchCharacteristics()
- Specified by:
getFetchCharacteristics
in interfaceFetchableAttributeSource
- Specified by:
getFetchCharacteristics
in interfacePluralAttributeSource
-
-