public abstract class AbstractEntitySourceImpl extends AbstractHbmSourceNode implements EntitySource, Helper.InLineViewNameInferrer
Modifier | Constructor and Description |
---|---|
protected |
AbstractEntitySourceImpl(MappingDocument sourceMappingDocument,
JaxbHbmEntityBaseDefinition jaxbEntityMapping) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterInstantiation() |
List<AttributeSource> |
attributeSources()
Obtain this container's attribute sources.
|
protected List<AttributeSource> |
buildAttributeSources() |
protected void |
buildAttributeSources(AttributesHelper.Callback attributeBuildingCallback) |
protected EntityMode |
determineEntityMode() |
static org.hibernate.boot.model.source.internal.hbm.EntityNamingSourceImpl |
extractEntityNamingSource(MappingDocument sourceMappingDocument,
EntityInfo jaxbEntityMapping) |
AttributePath |
getAttributePathBase() |
AttributeRole |
getAttributeRoleBase() |
int |
getBatchSize()
Obtain the batch-size to be applied when initializing proxies of this entity.
|
String |
getCustomLoaderName()
Obtain the name of a named-query that will be used for loading this entity
|
String |
getCustomPersisterClassName()
Obtain the name of a custom persister class to be used.
|
CustomSql |
getCustomSqlDelete()
Obtain the custom SQL to be used for deletes for this entity
|
CustomSql |
getCustomSqlInsert()
Obtain the custom SQL to be used for inserts for this entity
|
CustomSql |
getCustomSqlUpdate()
Obtain the custom SQL to be used for updates for this entity
|
EntityNamingSource |
getEntityNamingSource() |
FilterSource[] |
getFilterSources()
Obtain the filters for this entity.
|
EntityHierarchySource |
getHierarchy()
Get the hierarchy this belongs to.
|
List<JpaCallbackSource> |
getJpaCallbackClasses()
Access to the sources describing JPA lifecycle callbacks.
|
LocalMetadataBuildingContext |
getLocalMetadataBuildingContext()
Obtain the metadata-building context local to this entity source.
|
List<JaxbHbmNamedNativeQueryType> |
getNamedNativeQueries() |
List<JaxbHbmNamedQueryType> |
getNamedQueries() |
Origin |
getOrigin()
Obtain the origin of this source.
|
String |
getProxy()
For
lazy entities, obtain the interface to use in constructing its proxies. |
Map<String,SecondaryTableSource> |
getSecondaryTableMap()
Obtain the secondary tables for this entity
|
Collection<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.
|
ToolingHintContext |
getToolingHintContext() |
Map<EntityMode,String> |
getTuplizerClassMap()
Obtain the named custom tuplizer classes to be used.
|
String |
getTypeName()
Get the name of this type.
|
String |
getXmlNodeName() |
String |
inferInLineViewName() |
void |
injectHierarchy(EntityHierarchySourceImpl entityHierarchy) |
Boolean |
isAbstract()
Is the entity abstract?
The implication is whether the entity maps to a database table.
|
boolean |
isDynamicInsert()
Did the source specify dynamic inserts?
|
boolean |
isDynamicUpdate()
Did the source specify dynamic updates?
|
boolean |
isLazy()
Is this entity lazy (proxyable)?
|
boolean |
isSelectBeforeUpdate()
Did the source specify to perform selects to decide whether to perform (detached) updates?
|
protected JaxbHbmEntityBaseDefinition |
jaxbEntityMapping() |
TruthValue |
quoteIdentifiersLocalToEntity() |
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDiscriminatorMatchValue, getPrimaryTable
getSuperType
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping)
public static org.hibernate.boot.model.source.internal.hbm.EntityNamingSourceImpl extractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping)
public String getXmlNodeName()
getXmlNodeName
in interface EntitySource
public LocalMetadataBuildingContext getLocalMetadataBuildingContext()
IdentifiableTypeSource
getLocalMetadataBuildingContext
in interface AttributeSourceContainer
getLocalMetadataBuildingContext
in interface IdentifiableTypeSource
public String getTypeName()
IdentifiableTypeSource
getTypeName
in interface IdentifiableTypeSource
public AttributePath getAttributePathBase()
getAttributePathBase
in interface AttributeSourceContainer
public AttributeRole getAttributeRoleBase()
getAttributeRoleBase
in interface AttributeSourceContainer
public Collection<IdentifiableTypeSource> getSubTypes()
IdentifiableTypeSource
getSubTypes
in interface IdentifiableTypeSource
public FilterSource[] getFilterSources()
EntitySource
getFilterSources
in interface EntitySource
public String inferInLineViewName()
inferInLineViewName
in interface Helper.InLineViewNameInferrer
protected void afterInstantiation()
protected List<AttributeSource> buildAttributeSources()
protected void buildAttributeSources(AttributesHelper.Callback attributeBuildingCallback)
protected JaxbHbmEntityBaseDefinition jaxbEntityMapping()
public Origin getOrigin()
IdentifiableTypeSource
getOrigin
in interface IdentifiableTypeSource
public EntityNamingSource getEntityNamingSource()
getEntityNamingSource
in interface EntityNamingSourceContributor
public Boolean isAbstract()
EntitySource
isAbstract
in interface EntitySource
true
indicates the entity is abstract; false
non-abstract; null
indicates that a reflection check should be done when building the persister.public boolean isLazy()
EntitySource
isLazy
in interface EntitySource
true
indicates the entity is lazy; false
non-lazy.public String getProxy()
EntitySource
lazy
entities, obtain the interface to use in constructing its proxies.getProxy
in interface EntitySource
public int getBatchSize()
EntitySource
getBatchSize
in interface EntitySource
public boolean isDynamicInsert()
EntitySource
isDynamicInsert
in interface EntitySource
true
indicates dynamic inserts will be used; false
otherwise.public boolean isDynamicUpdate()
EntitySource
isDynamicUpdate
in interface EntitySource
true
indicates dynamic updates will be used; false
otherwise.public boolean isSelectBeforeUpdate()
EntitySource
isSelectBeforeUpdate
in interface EntitySource
true
indicates selects will be done; false
otherwise.protected EntityMode determineEntityMode()
public Map<EntityMode,String> getTuplizerClassMap()
EntitySource
getTuplizerClassMap
in interface EntitySource
public String getCustomPersisterClassName()
EntitySource
getCustomPersisterClassName
in interface EntitySource
public String getCustomLoaderName()
EntitySource
getCustomLoaderName
in interface EntitySource
public CustomSql getCustomSqlInsert()
EntitySource
getCustomSqlInsert
in interface EntitySource
public CustomSql getCustomSqlUpdate()
EntitySource
getCustomSqlUpdate
in interface EntitySource
public CustomSql getCustomSqlDelete()
EntitySource
getCustomSqlDelete
in interface EntitySource
public String[] getSynchronizedTableNames()
EntitySource
getSynchronizedTableNames
in interface EntitySource
public ToolingHintContext getToolingHintContext()
getToolingHintContext
in interface ToolingHintContextContainer
public List<AttributeSource> attributeSources()
AttributeSourceContainer
attributeSources
in interface AttributeSourceContainer
public void injectHierarchy(EntityHierarchySourceImpl entityHierarchy)
public EntityHierarchySource getHierarchy()
IdentifiableTypeSource
getHierarchy
in interface IdentifiableTypeSource
public Map<String,SecondaryTableSource> getSecondaryTableMap()
EntitySource
getSecondaryTableMap
in interface EntitySource
public List<JpaCallbackSource> getJpaCallbackClasses()
IdentifiableTypeSource
getJpaCallbackClasses
in interface IdentifiableTypeSource
public List<JaxbHbmNamedQueryType> getNamedQueries()
getNamedQueries
in interface EntitySource
public List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries()
getNamedNativeQueries
in interface EntitySource
public TruthValue quoteIdentifiersLocalToEntity()
quoteIdentifiersLocalToEntity
in interface EntitySource
Copyright © 2019 JBoss by Red Hat. All rights reserved.