Top Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

public abstract Class AbstractEntitySourceImpl

extends AbstractHbmSourceNode
implements EntitySource, InLineViewNameInferrer
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.internal.hbm.Helper.InLineViewNameInferrer, org.hibernate.boot.model.source.spi.EntitySource, org.hibernate.boot.model.source.spi.EntityNamingSourceContributor, org.hibernate.boot.model.source.spi.ToolingHintContextContainer, org.hibernate.boot.model.source.spi.IdentifiableTypeSource, org.hibernate.boot.model.source.spi.AttributeSourceContainer
Known Direct Subclasses
org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl, org.hibernate.boot.model.source.internal.hbm.RootEntitySourceImpl
Imports
java.util.ArrayList, .Collection, .Collections, .HashMap, .List, .Map, org.hibernate.EntityMode, org.hibernate.boot.jaxb.Origin, org.hibernate.boot.jaxb.hbm.spi.EntityInfo, .JaxbHbmEntityBaseDefinition, .JaxbHbmFetchProfileType, .JaxbHbmFilterType, .JaxbHbmNamedNativeQueryType, .JaxbHbmNamedQueryType, .JaxbHbmRootEntityType, .JaxbHbmSecondaryTableType, .JaxbHbmTuplizerType, .SecondaryTableContainer, org.hibernate.boot.model.CustomSql, .TruthValue, org.hibernate.boot.model.source.spi.AttributePath, .AttributeRole, .AttributeSource, .AttributeSourceContainer, .EntityHierarchySource, .EntityNamingSource, .EntitySource, .FilterSource, .IdentifiableTypeSource, .JpaCallbackSource, .LocalMetadataBuildingContext, .NaturalIdMutability, .SecondaryTableSource, .SubclassEntitySource, .ToolingHintContext, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.CollectionHelper

Authors
Steve Ebersole, Hardy Ferentschik, Brett Meyer

Field Summary

Modifier and TypeField and Description
private final AttributePath
private final AttributeRole
private List<AttributeSource>
private EntityHierarchySourceImpl
private final EntityNamingSource
private final FilterSource[]
private int
private final JaxbHbmEntityBaseDefinition
private static final FilterSource[]
private Map<String, SecondaryTableSource>
private List<IdentifiableTypeSource>
private final ToolingHintContext
private final Map<EntityMode, String>

Constructor Summary

AccessConstructor and Description
protected
AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
add(SubclassEntitySource subclassEntitySource)

pack-priv void
add(SubclassEntitySourceImpl subclassEntitySource)

protected void
public List<AttributeSource>
protected List<AttributeSource>
protected void
buildAttributeSources(AttributesHelper.Callback attributeBuildingCallback)

private FilterSource[]
private Map<String, SecondaryTableSource>
protected EntityMode
public static EntityNamingSourceImpl
extractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping)

private static Map<EntityMode, String>
public AttributePath
public AttributeRole
public int
getBatchSize()

Implements org.hibernate.boot.model.source.spi.EntitySource.getBatchSize.

Obtain the batch-size to be applied when initializing proxies of this entity.
public String
getCustomLoaderName()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomLoaderName.

Obtain the name of a named-query that will be used for loading this entity
public String
getCustomPersisterClassName()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomPersisterClassName.

Obtain the name of a custom persister class to be used.
public CustomSql
getCustomSqlDelete()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlDelete.

Obtain the custom SQL to be used for deletes for this entity
public CustomSql
getCustomSqlInsert()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlInsert.

Obtain the custom SQL to be used for inserts for this entity
public CustomSql
getCustomSqlUpdate()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlUpdate.

Obtain the custom SQL to be used for updates for this entity
public EntityNamingSource
public FilterSource[]
public EntityHierarchySource
public List<JpaCallbackSource>
getJpaCallbackClasses()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getJpaCallbackClasses.

Access to the sources describing JPA lifecycle callbacks.
public LocalMetadataBuildingContext
getLocalMetadataBuildingContext()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getLocalMetadataBuildingContext.

Obtain the metadata-building context local to this entity source.
public List<JaxbHbmNamedNativeQueryType>
public List<JaxbHbmNamedQueryType>
public Origin
public String
getProxy()

Implements org.hibernate.boot.model.source.spi.EntitySource.getProxy.

For lazy entities, obtain the interface to use in constructing its proxies.
public Map<String, SecondaryTableSource>
public Collection<IdentifiableTypeSource>
getSubTypes()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getSubTypes.

Access the subtype sources for types extending from this type source,
public String[]
getSynchronizedTableNames()

Implements org.hibernate.boot.model.source.spi.EntitySource.getSynchronizedTableNames.

Obtain any additional table names on which to synchronize (auto flushing) this entity.
public ToolingHintContext
public Map<EntityMode, String>
getTuplizerClassMap()

Implements org.hibernate.boot.model.source.spi.EntitySource.getTuplizerClassMap.

Obtain the named custom tuplizer classes to be used.
public String
public String
public String
public void
public Boolean
public boolean
isDynamicInsert()

Implements org.hibernate.boot.model.source.spi.EntitySource.isDynamicInsert.

Did the source specify dynamic inserts?
public boolean
isDynamicUpdate()

Implements org.hibernate.boot.model.source.spi.EntitySource.isDynamicUpdate.

Did the source specify dynamic updates?
public boolean
isLazy()

Implements org.hibernate.boot.model.source.spi.EntitySource.isLazy.

Is this entity lazy (proxyable)?
public boolean
isSelectBeforeUpdate()

Implements org.hibernate.boot.model.source.spi.EntitySource.isSelectBeforeUpdate.

Did the source specify to perform selects to decide whether to perform (detached) updates?
protected JaxbHbmEntityBaseDefinition
public TruthValue
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode:
mappingRootmetadataBuildingContextoriginsourceMappingDocument

Field Detail

attributePathBaseback to summary
private final AttributePath attributePathBase
attributeRoleBaseback to summary
private final AttributeRole attributeRoleBase
attributeSourcesback to summary
private List<AttributeSource> attributeSources
entityHierarchyback to summary
private EntityHierarchySourceImpl entityHierarchy
entityNamingSourceback to summary
private final EntityNamingSource entityNamingSource
filterSourcesback to summary
private final FilterSource[] filterSources
inLineViewCountback to summary
private int inLineViewCount
jaxbEntityMappingback to summary
private final JaxbHbmEntityBaseDefinition jaxbEntityMapping
NO_FILTER_SOURCESback to summary
private static final FilterSource[] NO_FILTER_SOURCES
secondaryTableMapback to summary
private Map<String, SecondaryTableSource> secondaryTableMap
subclassEntitySourcesback to summary
private List<IdentifiableTypeSource> subclassEntitySources
toolingHintContextback to summary
private final ToolingHintContext toolingHintContext
tuplizerClassMapback to summary
private final Map<EntityMode, String> tuplizerClassMap

Constructor Detail

AbstractEntitySourceImplback to summary
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping)

Method Detail

addback to summary
pack-priv void add(SubclassEntitySource subclassEntitySource)
addback to summary
pack-priv void add(SubclassEntitySourceImpl subclassEntitySource)
afterInstantiationback to summary
protected void afterInstantiation()
attributeSourcesback to summary
public List<AttributeSource> attributeSources()

Implements org.hibernate.boot.model.source.spi.AttributeSourceContainer.attributeSources.

Doc from org.hibernate.boot.model.source.spi.AttributeSourceContainer.attributeSources.

Obtain this container's attribute sources.

Returns:List<AttributeSource>

The attribute sources.

Annotations
@Override
buildAttributeSourcesback to summary
protected List<AttributeSource> buildAttributeSources()
buildAttributeSourcesback to summary
protected void buildAttributeSources(AttributesHelper.Callback attributeBuildingCallback)
buildFilterSourcesback to summary
private FilterSource[] buildFilterSources()
buildSecondaryTableMapback to summary
private Map<String, SecondaryTableSource> buildSecondaryTableMap()
determineEntityModeback to summary
protected EntityMode determineEntityMode()
extractEntityNamingSourceback to summary
public static EntityNamingSourceImpl extractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping)
extractTuplizersback to summary
private static Map<EntityMode, String> extractTuplizers(JaxbHbmEntityBaseDefinition entityElement)
getAttributePathBaseback to summary
public AttributePath getAttributePathBase()

Implements org.hibernate.boot.model.source.spi.AttributeSourceContainer.getAttributePathBase.

Annotations
@Override
getAttributeRoleBaseback to summary
public AttributeRole getAttributeRoleBase()

Implements org.hibernate.boot.model.source.spi.AttributeSourceContainer.getAttributeRoleBase.

Annotations
@Override
getBatchSizeback to summary
public int getBatchSize()

Implements org.hibernate.boot.model.source.spi.EntitySource.getBatchSize.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getBatchSize.

Obtain the batch-size to be applied when initializing proxies of this entity.

Returns:int

returns the the batch-size.

Annotations
@Override
getCustomLoaderNameback to summary
public String getCustomLoaderName()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomLoaderName.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getCustomLoaderName.

Obtain the name of a named-query that will be used for loading this entity

Returns:String

THe custom loader query name

Annotations
@Override
getCustomPersisterClassNameback to summary
public String getCustomPersisterClassName()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomPersisterClassName.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getCustomPersisterClassName.

Obtain the name of a custom persister class to be used.

Returns:String

The custom persister class name

Annotations
@Override
getCustomSqlDeleteback to summary
public CustomSql getCustomSqlDelete()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlDelete.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlDelete.

Obtain the custom SQL to be used for deletes for this entity

Returns:CustomSql

The custom delete SQL

Annotations
@Override
getCustomSqlInsertback to summary
public CustomSql getCustomSqlInsert()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlInsert.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlInsert.

Obtain the custom SQL to be used for inserts for this entity

Returns:CustomSql

The custom insert SQL

Annotations
@Override
getCustomSqlUpdateback to summary
public CustomSql getCustomSqlUpdate()

Implements org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlUpdate.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getCustomSqlUpdate.

Obtain the custom SQL to be used for updates for this entity

Returns:CustomSql

The custom update SQL

Annotations
@Override
getEntityNamingSourceback to summary
public EntityNamingSource getEntityNamingSource()

Implements org.hibernate.boot.model.source.spi.EntityNamingSourceContributor.getEntityNamingSource.

Annotations
@Override
getFilterSourcesback to summary
public FilterSource[] getFilterSources()

Implements org.hibernate.boot.model.source.spi.EntitySource.getFilterSources.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getFilterSources.

Obtain the filters for this entity.

Returns:FilterSource[]

returns an array of the filters for this entity.

Annotations
@Override
getHierarchyback to summary
public EntityHierarchySource getHierarchy()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getHierarchy.

Doc from org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getHierarchy.

Get the hierarchy this belongs to.

Returns:EntityHierarchySource

The hierarchy this belongs to.

Annotations
@Override
getJpaCallbackClassesback to summary
public List<JpaCallbackSource> getJpaCallbackClasses()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getJpaCallbackClasses.

Doc from org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getJpaCallbackClasses.

Access to the sources describing JPA lifecycle callbacks.

Returns:List<JpaCallbackSource>

JPA lifecycle callback sources

Annotations
@Override
getLocalMetadataBuildingContextback to summary
public LocalMetadataBuildingContext getLocalMetadataBuildingContext()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getLocalMetadataBuildingContext.

Doc from org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getLocalMetadataBuildingContext.

Obtain the metadata-building context local to this entity source.

Returns:LocalMetadataBuildingContext

The local binding context

Annotations
@Override
getNamedNativeQueriesback to summary
public List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries()

Implements org.hibernate.boot.model.source.spi.EntitySource.getNamedNativeQueries.

Annotations
@Override
getNamedQueriesback to summary
public List<JaxbHbmNamedQueryType> getNamedQueries()

Implements org.hibernate.boot.model.source.spi.EntitySource.getNamedQueries.

Annotations
@Override
getOriginback to summary
public Origin getOrigin()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getOrigin.

Doc from org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getOrigin.

Obtain the origin of this source.

Returns:Origin

The origin of this source.

Annotations
@Override
getProxyback to summary
public String getProxy()

Implements org.hibernate.boot.model.source.spi.EntitySource.getProxy.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getProxy.

For lazy entities, obtain the interface to use in constructing its proxies.

Returns:String

The proxy interface name

Annotations
@Override
getSecondaryTableMapback to summary
public Map<String, SecondaryTableSource> getSecondaryTableMap()

Implements org.hibernate.boot.model.source.spi.EntitySource.getSecondaryTableMap.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getSecondaryTableMap.

Obtain the secondary tables for this entity

Returns:Map<String, SecondaryTableSource>

returns an iterator over the secondary tables for this entity

Annotations
@Override
getSubTypesback to summary
public Collection<IdentifiableTypeSource> getSubTypes()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getSubTypes.

Doc from org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getSubTypes.

Access the subtype sources for types extending from this type source,

Returns:Collection<IdentifiableTypeSource>

Sub-type sources

Annotations
@Override
getSynchronizedTableNamesback to summary
public String[] getSynchronizedTableNames()

Implements org.hibernate.boot.model.source.spi.EntitySource.getSynchronizedTableNames.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getSynchronizedTableNames.

Obtain any additional table names on which to synchronize (auto flushing) this entity.

Returns:String[]

Additional synchronized table names or 0 sized String array, never return null.

Annotations
@Override
getToolingHintContextback to summary
public ToolingHintContext getToolingHintContext()

Implements org.hibernate.boot.model.source.spi.ToolingHintContextContainer.getToolingHintContext.

Annotations
@Override
getTuplizerClassMapback to summary
public Map<EntityMode, String> getTuplizerClassMap()

Implements org.hibernate.boot.model.source.spi.EntitySource.getTuplizerClassMap.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getTuplizerClassMap.

Obtain the named custom tuplizer classes to be used.

Returns:Map<EntityMode, String>

The custom tuplizer class names

Annotations
@Override
getTypeNameback to summary
public String getTypeName()

Implements org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getTypeName.

Doc from org.hibernate.boot.model.source.spi.IdentifiableTypeSource.getTypeName.

Get the name of this type.

Returns:String

The name of this type.

Annotations
@Override
getXmlNodeNameback to summary
public String getXmlNodeName()

Implements org.hibernate.boot.model.source.spi.EntitySource.getXmlNodeName.

Annotations
@Override
inferInLineViewNameback to summary
public String inferInLineViewName()

Implements org.hibernate.boot.model.source.internal.hbm.Helper.InLineViewNameInferrer.inferInLineViewName.

Annotations
@Override
injectHierarchyback to summary
public void injectHierarchy(EntityHierarchySourceImpl entityHierarchy)
isAbstractback to summary
public Boolean isAbstract()

Implements org.hibernate.boot.model.source.spi.EntitySource.isAbstract.

Doc from org.hibernate.boot.model.source.spi.EntitySource.isAbstract.

Is the entity abstract?

The implication is whether the entity maps to a database table.

Returns:Boolean

true indicates the entity is abstract; false non-abstract; null indicates that a reflection check should be done when building the persister.

Annotations
@Override
isDynamicInsertback to summary
public boolean isDynamicInsert()

Implements org.hibernate.boot.model.source.spi.EntitySource.isDynamicInsert.

Doc from org.hibernate.boot.model.source.spi.EntitySource.isDynamicInsert.

Did the source specify dynamic inserts?

Returns:boolean

true indicates dynamic inserts will be used; false otherwise.

Annotations
@Override
isDynamicUpdateback to summary
public boolean isDynamicUpdate()

Implements org.hibernate.boot.model.source.spi.EntitySource.isDynamicUpdate.

Doc from org.hibernate.boot.model.source.spi.EntitySource.isDynamicUpdate.

Did the source specify dynamic updates?

Returns:boolean

true indicates dynamic updates will be used; false otherwise.

Annotations
@Override
isLazyback to summary
public boolean isLazy()

Implements org.hibernate.boot.model.source.spi.EntitySource.isLazy.

Doc from org.hibernate.boot.model.source.spi.EntitySource.isLazy.

Is this entity lazy (proxyable)?

Returns:boolean

true indicates the entity is lazy; false non-lazy.

Annotations
@Override
isSelectBeforeUpdateback to summary
public boolean isSelectBeforeUpdate()

Implements org.hibernate.boot.model.source.spi.EntitySource.isSelectBeforeUpdate.

Doc from org.hibernate.boot.model.source.spi.EntitySource.isSelectBeforeUpdate.

Did the source specify to perform selects to decide whether to perform (detached) updates?

Returns:boolean

true indicates selects will be done; false otherwise.

Annotations
@Override
jaxbEntityMappingback to summary
protected JaxbHbmEntityBaseDefinition jaxbEntityMapping()
quoteIdentifiersLocalToEntityback to summary
public TruthValue quoteIdentifiersLocalToEntity()

Implements org.hibernate.boot.model.source.spi.EntitySource.quoteIdentifiersLocalToEntity.

Annotations
@Override