类 AbstractEntitySourceImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.AbstractEntitySourceImpl
-
- 所有已实现的接口:
Helper.InLineViewNameInferrer,AttributeSourceContainer,EntityNamingSourceContributor,EntitySource,IdentifiableTypeSource,ToolingHintContextContainer
public abstract class AbstractEntitySourceImpl extends AbstractHbmSourceNode implements EntitySource, Helper.InLineViewNameInferrer
- 作者:
- Steve Ebersole, Hardy Ferentschik, Brett Meyer
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidafterInstantiation()List<AttributeSource>attributeSources()Obtain this container's attribute sources.protected List<AttributeSource>buildAttributeSources()protected voidbuildAttributeSources(AttributesHelper.Callback attributeBuildingCallback)protected EntityModedetermineEntityMode()static org.hibernate.boot.model.source.internal.hbm.EntityNamingSourceImplextractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping)AttributePathgetAttributePathBase()AttributeRolegetAttributeRoleBase()intgetBatchSize()Obtain the batch-size to be applied when initializing proxies of this entity.StringgetCustomLoaderName()Obtain the name of a named-query that will be used for loading this entityStringgetCustomPersisterClassName()Obtain the name of a custom persister class to be used.CustomSqlgetCustomSqlDelete()Obtain the custom SQL to be used for deletes for this entityCustomSqlgetCustomSqlInsert()Obtain the custom SQL to be used for inserts for this entityCustomSqlgetCustomSqlUpdate()Obtain the custom SQL to be used for updates for this entityEntityNamingSourcegetEntityNamingSource()FilterSource[]getFilterSources()Obtain the filters for this entity.EntityHierarchySourcegetHierarchy()Get the hierarchy this belongs to.List<JpaCallbackSource>getJpaCallbackClasses()Access to the sources describing JPA lifecycle callbacks.LocalMetadataBuildingContextgetLocalMetadataBuildingContext()Obtain the metadata-building context local to this entity source.List<JaxbHbmNamedNativeQueryType>getNamedNativeQueries()List<JaxbHbmNamedQueryType>getNamedQueries()OrigingetOrigin()Obtain the origin of this source.StringgetProxy()Forlazyentities, obtain the interface to use in constructing its proxies.Map<String,SecondaryTableSource>getSecondaryTableMap()Obtain the secondary tables for this entityCollection<IdentifiableTypeSource>getSubTypes()Access the subtype sources for types extending from this type source,String[]getSynchronizedTableNames()Obtain any additional table names on which to synchronize (auto flushing) this entity.ToolingHintContextgetToolingHintContext()Map<EntityMode,String>getTuplizerClassMap()Obtain the named custom tuplizer classes to be used.StringgetTypeName()Get the name of this type.StringgetXmlNodeName()StringinferInLineViewName()voidinjectHierarchy(EntityHierarchySourceImpl entityHierarchy)BooleanisAbstract()Is the entity abstract?booleanisDynamicInsert()Did the source specify dynamic inserts?booleanisDynamicUpdate()Did the source specify dynamic updates?booleanisLazy()Is this entity lazy (proxyable)?booleanisSelectBeforeUpdate()Did the source specify to perform selects to decide whether to perform (detached) updates?protected JaxbHbmEntityBaseDefinitionjaxbEntityMapping()TruthValuequoteIdentifiersLocalToEntity()-
从类继承的方法 org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.boot.model.source.spi.EntitySource
getDiscriminatorMatchValue, getPrimaryTable
-
从接口继承的方法 org.hibernate.boot.model.source.spi.IdentifiableTypeSource
getSuperType
-
-
-
-
构造器详细资料
-
AbstractEntitySourceImpl
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping)
-
-
方法详细资料
-
extractEntityNamingSource
public static org.hibernate.boot.model.source.internal.hbm.EntityNamingSourceImpl extractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping)
-
getXmlNodeName
public String getXmlNodeName()
- 指定者:
getXmlNodeName在接口中EntitySource
-
getLocalMetadataBuildingContext
public LocalMetadataBuildingContext getLocalMetadataBuildingContext()
从接口复制的说明:IdentifiableTypeSourceObtain the metadata-building context local to this entity source.- 指定者:
getLocalMetadataBuildingContext在接口中AttributeSourceContainer- 指定者:
getLocalMetadataBuildingContext在接口中IdentifiableTypeSource- 返回:
- The local binding context
-
getTypeName
public String getTypeName()
从接口复制的说明:IdentifiableTypeSourceGet the name of this type.- 指定者:
getTypeName在接口中IdentifiableTypeSource- 返回:
- The name of this type.
-
getAttributePathBase
public AttributePath getAttributePathBase()
- 指定者:
getAttributePathBase在接口中AttributeSourceContainer
-
getAttributeRoleBase
public AttributeRole getAttributeRoleBase()
- 指定者:
getAttributeRoleBase在接口中AttributeSourceContainer
-
getSubTypes
public Collection<IdentifiableTypeSource> getSubTypes()
从接口复制的说明:IdentifiableTypeSourceAccess the subtype sources for types extending from this type source,- 指定者:
getSubTypes在接口中IdentifiableTypeSource- 返回:
- Sub-type sources
-
getFilterSources
public FilterSource[] getFilterSources()
从接口复制的说明:EntitySourceObtain the filters for this entity.- 指定者:
getFilterSources在接口中EntitySource- 返回:
- returns an array of the filters for this entity.
-
inferInLineViewName
public String inferInLineViewName()
-
afterInstantiation
protected void afterInstantiation()
-
buildAttributeSources
protected List<AttributeSource> buildAttributeSources()
-
buildAttributeSources
protected void buildAttributeSources(AttributesHelper.Callback attributeBuildingCallback)
-
jaxbEntityMapping
protected JaxbHbmEntityBaseDefinition jaxbEntityMapping()
-
getOrigin
public Origin getOrigin()
从接口复制的说明:IdentifiableTypeSourceObtain the origin of this source.- 指定者:
getOrigin在接口中IdentifiableTypeSource- 返回:
- The origin of this source.
-
getEntityNamingSource
public EntityNamingSource getEntityNamingSource()
-
isAbstract
public Boolean isAbstract()
从接口复制的说明:EntitySourceIs the entity abstract? The implication is whether the entity maps to a database table.- 指定者:
isAbstract在接口中EntitySource- 返回:
trueindicates the entity is abstract;falsenon-abstract;nullindicates that a reflection check should be done when building the persister.
-
isLazy
public boolean isLazy()
从接口复制的说明:EntitySourceIs this entity lazy (proxyable)?- 指定者:
isLazy在接口中EntitySource- 返回:
trueindicates the entity is lazy;falsenon-lazy.
-
getProxy
public String getProxy()
从接口复制的说明:EntitySourceForlazyentities, obtain the interface to use in constructing its proxies.- 指定者:
getProxy在接口中EntitySource- 返回:
- The proxy interface name
-
getBatchSize
public int getBatchSize()
从接口复制的说明:EntitySourceObtain the batch-size to be applied when initializing proxies of this entity.- 指定者:
getBatchSize在接口中EntitySource- 返回:
- returns the the batch-size.
-
isDynamicInsert
public boolean isDynamicInsert()
从接口复制的说明:EntitySourceDid the source specify dynamic inserts?- 指定者:
isDynamicInsert在接口中EntitySource- 返回:
trueindicates dynamic inserts will be used;falseotherwise.
-
isDynamicUpdate
public boolean isDynamicUpdate()
从接口复制的说明:EntitySourceDid the source specify dynamic updates?- 指定者:
isDynamicUpdate在接口中EntitySource- 返回:
trueindicates dynamic updates will be used;falseotherwise.
-
isSelectBeforeUpdate
public boolean isSelectBeforeUpdate()
从接口复制的说明:EntitySourceDid the source specify to perform selects to decide whether to perform (detached) updates?- 指定者:
isSelectBeforeUpdate在接口中EntitySource- 返回:
trueindicates selects will be done;falseotherwise.
-
determineEntityMode
protected EntityMode determineEntityMode()
-
getTuplizerClassMap
public Map<EntityMode,String> getTuplizerClassMap()
从接口复制的说明:EntitySourceObtain the named custom tuplizer classes to be used.- 指定者:
getTuplizerClassMap在接口中EntitySource- 返回:
- The custom tuplizer class names
-
getCustomPersisterClassName
public String getCustomPersisterClassName()
从接口复制的说明:EntitySourceObtain the name of a custom persister class to be used.- 指定者:
getCustomPersisterClassName在接口中EntitySource- 返回:
- The custom persister class name
-
getCustomLoaderName
public String getCustomLoaderName()
从接口复制的说明:EntitySourceObtain the name of a named-query that will be used for loading this entity- 指定者:
getCustomLoaderName在接口中EntitySource- 返回:
- THe custom loader query name
-
getCustomSqlInsert
public CustomSql getCustomSqlInsert()
从接口复制的说明:EntitySourceObtain the custom SQL to be used for inserts for this entity- 指定者:
getCustomSqlInsert在接口中EntitySource- 返回:
- The custom insert SQL
-
getCustomSqlUpdate
public CustomSql getCustomSqlUpdate()
从接口复制的说明:EntitySourceObtain the custom SQL to be used for updates for this entity- 指定者:
getCustomSqlUpdate在接口中EntitySource- 返回:
- The custom update SQL
-
getCustomSqlDelete
public CustomSql getCustomSqlDelete()
从接口复制的说明:EntitySourceObtain the custom SQL to be used for deletes for this entity- 指定者:
getCustomSqlDelete在接口中EntitySource- 返回:
- The custom delete SQL
-
getSynchronizedTableNames
public String[] getSynchronizedTableNames()
从接口复制的说明:EntitySourceObtain any additional table names on which to synchronize (auto flushing) this entity.- 指定者:
getSynchronizedTableNames在接口中EntitySource- 返回:
- Additional synchronized table names or 0 sized String array, never return null.
-
getToolingHintContext
public ToolingHintContext getToolingHintContext()
-
attributeSources
public List<AttributeSource> attributeSources()
从接口复制的说明:AttributeSourceContainerObtain this container's attribute sources.- 指定者:
attributeSources在接口中AttributeSourceContainer- 返回:
- The attribute sources.
-
injectHierarchy
public void injectHierarchy(EntityHierarchySourceImpl entityHierarchy)
-
getHierarchy
public EntityHierarchySource getHierarchy()
从接口复制的说明:IdentifiableTypeSourceGet the hierarchy this belongs to.- 指定者:
getHierarchy在接口中IdentifiableTypeSource- 返回:
- The hierarchy this belongs to.
-
getSecondaryTableMap
public Map<String,SecondaryTableSource> getSecondaryTableMap()
从接口复制的说明:EntitySourceObtain the secondary tables for this entity- 指定者:
getSecondaryTableMap在接口中EntitySource- 返回:
- returns an iterator over the secondary tables for this entity
-
getJpaCallbackClasses
public List<JpaCallbackSource> getJpaCallbackClasses()
从接口复制的说明:IdentifiableTypeSourceAccess to the sources describing JPA lifecycle callbacks.- 指定者:
getJpaCallbackClasses在接口中IdentifiableTypeSource- 返回:
- JPA lifecycle callback sources
-
getNamedQueries
public List<JaxbHbmNamedQueryType> getNamedQueries()
- 指定者:
getNamedQueries在接口中EntitySource
-
getNamedNativeQueries
public List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries()
- 指定者:
getNamedNativeQueries在接口中EntitySource
-
quoteIdentifiersLocalToEntity
public TruthValue quoteIdentifiersLocalToEntity()
- 指定者:
quoteIdentifiersLocalToEntity在接口中EntitySource
-
-