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
ConstructorsModifierConstructorDescriptionprotected
AbstractPluralAttributeSourceImpl
(MappingDocument mappingDocument, PluralAttributeInfo pluralAttributeJaxbMapping, AttributeSourceContainer container) -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributeSourceContainer
Obtain the cascade styles to be applied to this association.getName()
Obtain the attribute name.Obtain the name of the property accessor style used to access this attribute.String[]
Obtain any additional table names on which to synchronize (auto flushing) this entity.Obtain information about the Hibernate type (Type
) for this attribute.getWhere()
boolean
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?boolean
boolean
boolean
Attributes are (coarsely speaking) either singular or plural.boolean
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 Details
-
AbstractPluralAttributeSourceImpl
protected AbstractPluralAttributeSourceImpl(MappingDocument mappingDocument, PluralAttributeInfo pluralAttributeJaxbMapping, AttributeSourceContainer container)
-
-
Method Details
-
getAttributePath
- Specified by:
getAttributePath
in interfaceAttributeSource
-
getAttributeRole
- Specified by:
getAttributeRole
in interfaceAttributeSource
-
usesJoinTable
public boolean usesJoinTable()- Specified by:
usesJoinTable
in interfacePluralAttributeSource
-
container
-
getFilterSources
- Specified by:
getFilterSources
in interfacePluralAttributeSource
-
getKeySource
- Specified by:
getKeySource
in interfacePluralAttributeSource
-
getElementSource
- Specified by:
getElementSource
in interfacePluralAttributeSource
-
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
- Specified by:
getMappedBy
in interfacePluralAttributeSource
-
inferInLineViewName
- Specified by:
inferInLineViewName
in interfaceHelper.InLineViewNameInferrer
-
getCollectionIdSource
- Specified by:
getCollectionIdSource
in interfacePluralAttributeSource
-
getCollectionTableSpecificationSource
- Specified by:
getCollectionTableSpecificationSource
in interfacePluralAttributeSource
-
getCollectionTableComment
- Specified by:
getCollectionTableComment
in interfacePluralAttributeSource
-
getCollectionTableCheck
- Specified by:
getCollectionTableCheck
in interfacePluralAttributeSource
-
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
- Specified by:
getCaching
in interfacePluralAttributeSource
-
getWhere
- Specified by:
getWhere
in interfacePluralAttributeSource
-
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
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
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:
-
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
- Specified by:
getCustomPersisterClassName
in interfacePluralAttributeSource
-
getCustomLoaderName
- Specified by:
getCustomLoaderName
in interfacePluralAttributeSource
-
getCustomSqlInsert
- Specified by:
getCustomSqlInsert
in interfacePluralAttributeSource
-
getCustomSqlUpdate
- Specified by:
getCustomSqlUpdate
in interfacePluralAttributeSource
-
getCustomSqlDelete
- Specified by:
getCustomSqlDelete
in interfacePluralAttributeSource
-
getCustomSqlDeleteAll
- Specified by:
getCustomSqlDeleteAll
in interfacePluralAttributeSource
-
getToolingHintContext
- Specified by:
getToolingHintContext
in interfaceToolingHintContextContainer
-
getFetchCharacteristics
- Specified by:
getFetchCharacteristics
in interfaceFetchableAttributeSource
- Specified by:
getFetchCharacteristics
in interfacePluralAttributeSource
-