Class AbstractEntitySourceImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
org.hibernate.boot.model.source.internal.hbm.AbstractEntitySourceImpl
- All Implemented Interfaces:
Helper.InLineViewNameInferrer,AttributeSourceContainer,EntityNamingSourceContributor,EntitySource,IdentifiableTypeSource,ToolingHintContextContainer
- Direct Known Subclasses:
RootEntitySourceImpl,SubclassEntitySourceImpl
public abstract class AbstractEntitySourceImpl
extends AbstractHbmSourceNode
implements EntitySource, Helper.InLineViewNameInferrer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidObtain this container's attribute sources.protected List<AttributeSource>protected voidbuildAttributeSources(AttributesHelper.Callback attributeBuildingCallback) static org.hibernate.boot.model.source.internal.hbm.EntityNamingSourceImplextractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping) intObtain the batch-size to be applied when initializing proxies of this entity.Obtain the name of a named-query that will be used for loading this entityObtain the name of a custom persister class to be used.Obtain the custom SQL to be used for deletes for this entityObtain the custom SQL to be used for inserts for this entityObtain the custom SQL to be used for updates for this entityObtain the filters for this entity.Get the hierarchy this belongs to.Access to the sources describing JPA lifecycle callbacks.Obtain the metadata-building context local to this entity source.Obtain the origin of this source.getProxy()For lazy entities, obtain the interface to use in constructing its proxies.Obtain the secondary tables for this entityAccess the subtype sources for types extending from this type source,String[]Obtain any additional table names on which to synchronize (auto flushing) this entity.Get the name of this type.voidinjectHierarchy(EntityHierarchySourceImpl entityHierarchy) Is the entity abstract?booleanDid the source specify dynamic inserts?booleanDid the source specify dynamic updates?booleanisLazy()Is this entity lazy (proxyable)?booleanDid the source specify to perform selects to decide whether to perform (detached) updates?protected JaxbHbmEntityBaseDefinitionMethods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.model.source.spi.EntitySource
getDiscriminatorMatchValue, getPrimaryTableMethods inherited from interface org.hibernate.boot.model.source.spi.IdentifiableTypeSource
getSuperType
-
Constructor Details
-
AbstractEntitySourceImpl
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping)
-
-
Method Details
-
extractEntityNamingSource
public static org.hibernate.boot.model.source.internal.hbm.EntityNamingSourceImpl extractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping) -
getXmlNodeName
- Specified by:
getXmlNodeNamein interfaceEntitySource
-
getLocalMetadataBuildingContext
Description copied from interface:IdentifiableTypeSourceObtain the metadata-building context local to this entity source.- Specified by:
getLocalMetadataBuildingContextin interfaceAttributeSourceContainer- Specified by:
getLocalMetadataBuildingContextin interfaceIdentifiableTypeSource- Returns:
- The local binding context
-
getTypeName
Description copied from interface:IdentifiableTypeSourceGet the name of this type.- Specified by:
getTypeNamein interfaceIdentifiableTypeSource- Returns:
- The name of this type.
-
getAttributePathBase
- Specified by:
getAttributePathBasein interfaceAttributeSourceContainer
-
getAttributeRoleBase
- Specified by:
getAttributeRoleBasein interfaceAttributeSourceContainer
-
getSubTypes
Description copied from interface:IdentifiableTypeSourceAccess the subtype sources for types extending from this type source,- Specified by:
getSubTypesin interfaceIdentifiableTypeSource- Returns:
- Subtype sources
-
getFilterSources
Description copied from interface:EntitySourceObtain the filters for this entity.- Specified by:
getFilterSourcesin interfaceEntitySource- Returns:
- returns an array of the filters for this entity.
-
inferInLineViewName
- Specified by:
inferInLineViewNamein interfaceHelper.InLineViewNameInferrer
-
afterInstantiation
protected void afterInstantiation() -
buildAttributeSources
-
buildAttributeSources
-
jaxbEntityMapping
-
getOrigin
Description copied from interface:IdentifiableTypeSourceObtain the origin of this source.- Specified by:
getOriginin interfaceIdentifiableTypeSource- Returns:
- The origin of this source.
-
getEntityNamingSource
- Specified by:
getEntityNamingSourcein interfaceEntityNamingSourceContributor
-
isAbstract
Description copied from interface:EntitySourceIs the entity abstract?The implication is whether the entity maps to a database table.
- Specified by:
isAbstractin interfaceEntitySource- Returns:
trueindicates the entity is abstract;falsenon-abstract;nullindicates that a reflection check should be done when building the persister.
-
isLazy
public boolean isLazy()Description copied from interface:EntitySourceIs this entity lazy (proxyable)?- Specified by:
isLazyin interfaceEntitySource- Returns:
trueindicates the entity is lazy;falsenon-lazy.
-
getProxy
Description copied from interface:EntitySourceFor lazy entities, obtain the interface to use in constructing its proxies.- Specified by:
getProxyin interfaceEntitySource- Returns:
- The proxy interface name
-
getBatchSize
public int getBatchSize()Description copied from interface:EntitySourceObtain the batch-size to be applied when initializing proxies of this entity.- Specified by:
getBatchSizein interfaceEntitySource- Returns:
- returns the batch-size.
-
isDynamicInsert
public boolean isDynamicInsert()Description copied from interface:EntitySourceDid the source specify dynamic inserts?- Specified by:
isDynamicInsertin interfaceEntitySource- Returns:
trueindicates dynamic inserts will be used;falseotherwise.
-
isDynamicUpdate
public boolean isDynamicUpdate()Description copied from interface:EntitySourceDid the source specify dynamic updates?- Specified by:
isDynamicUpdatein interfaceEntitySource- Returns:
trueindicates dynamic updates will be used;falseotherwise.
-
isSelectBeforeUpdate
public boolean isSelectBeforeUpdate()Description copied from interface:EntitySourceDid the source specify to perform selects to decide whether to perform (detached) updates?- Specified by:
isSelectBeforeUpdatein interfaceEntitySource- Returns:
trueindicates selects will be done;falseotherwise.
-
getCustomPersisterClassName
Description copied from interface:EntitySourceObtain the name of a custom persister class to be used.- Specified by:
getCustomPersisterClassNamein interfaceEntitySource- Returns:
- The custom persister class name
-
getCustomLoaderName
Description copied from interface:EntitySourceObtain the name of a named-query that will be used for loading this entity- Specified by:
getCustomLoaderNamein interfaceEntitySource- Returns:
- THe custom loader query name
-
getCustomSqlInsert
Description copied from interface:EntitySourceObtain the custom SQL to be used for inserts for this entity- Specified by:
getCustomSqlInsertin interfaceEntitySource- Returns:
- The custom insert SQL
-
getCustomSqlUpdate
Description copied from interface:EntitySourceObtain the custom SQL to be used for updates for this entity- Specified by:
getCustomSqlUpdatein interfaceEntitySource- Returns:
- The custom update SQL
-
getCustomSqlDelete
Description copied from interface:EntitySourceObtain the custom SQL to be used for deletes for this entity- Specified by:
getCustomSqlDeletein interfaceEntitySource- Returns:
- The custom delete SQL
-
getSynchronizedTableNames
Description copied from interface:EntitySourceObtain any additional table names on which to synchronize (auto flushing) this entity.- Specified by:
getSynchronizedTableNamesin interfaceEntitySource- Returns:
- Additional synchronized table names or 0 sized String array, never return null.
-
getToolingHintContext
- Specified by:
getToolingHintContextin interfaceToolingHintContextContainer
-
attributeSources
Description copied from interface:AttributeSourceContainerObtain this container's attribute sources.- Specified by:
attributeSourcesin interfaceAttributeSourceContainer- Returns:
- The attribute sources.
-
injectHierarchy
-
getHierarchy
Description copied from interface:IdentifiableTypeSourceGet the hierarchy this belongs to.- Specified by:
getHierarchyin interfaceIdentifiableTypeSource- Returns:
- The hierarchy this belongs to.
-
getSecondaryTableMap
Description copied from interface:EntitySourceObtain the secondary tables for this entity- Specified by:
getSecondaryTableMapin interfaceEntitySource- Returns:
- returns an iterator over the secondary tables for this entity
-
getJpaCallbackClasses
Description copied from interface:IdentifiableTypeSourceAccess to the sources describing JPA lifecycle callbacks.- Specified by:
getJpaCallbackClassesin interfaceIdentifiableTypeSource- Returns:
- JPA lifecycle callback sources
-
getNamedQueries
- Specified by:
getNamedQueriesin interfaceEntitySource
-
getNamedNativeQueries
- Specified by:
getNamedNativeQueriesin interfaceEntitySource
-