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() |
java.util.List<AttributeSource> |
attributeSources()
Obtain this container's attribute sources.
|
protected java.util.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.
|
java.lang.String |
getCustomLoaderName()
Obtain the name of a named-query that will be used for loading this entity
|
java.lang.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.
|
java.util.List<JpaCallbackSource> |
getJpaCallbackClasses()
Access to the sources describing JPA lifecycle callbacks.
|
LocalMetadataBuildingContext |
getLocalMetadataBuildingContext()
Obtain the metadata-building context local to this entity source.
|
java.util.List<JaxbHbmNamedNativeQueryType> |
getNamedNativeQueries() |
java.util.List<JaxbHbmNamedQueryType> |
getNamedQueries() |
Origin |
getOrigin()
Obtain the origin of this source.
|
java.lang.String |
getProxy()
For
lazy entities, obtain the interface to use in constructing its proxies. |
java.util.Map<java.lang.String,SecondaryTableSource> |
getSecondaryTableMap()
Obtain the secondary tables for this entity
|
java.util.Collection<IdentifiableTypeSource> |
getSubTypes()
Access the subtype sources for types extending from this type source,
|
java.lang.String[] |
getSynchronizedTableNames()
Obtain any additional table names on which to synchronize (auto flushing) this entity.
|
ToolingHintContext |
getToolingHintContext() |
java.util.Map<EntityMode,java.lang.String> |
getTuplizerClassMap()
Obtain the named custom tuplizer classes to be used.
|
java.lang.String |
getTypeName()
Get the name of this type.
|
java.lang.String |
getXmlNodeName() |
java.lang.String |
inferInLineViewName() |
void |
injectHierarchy(EntityHierarchySourceImpl entityHierarchy) |
java.lang.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, sourceMappingDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDiscriminatorMatchValue, getPrimaryTablegetSuperTypeprotected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping)
public static org.hibernate.boot.model.source.internal.hbm.EntityNamingSourceImpl extractEntityNamingSource(MappingDocument sourceMappingDocument, EntityInfo jaxbEntityMapping)
public java.lang.String getXmlNodeName()
getXmlNodeName in interface EntitySourcepublic LocalMetadataBuildingContext getLocalMetadataBuildingContext()
IdentifiableTypeSourcegetLocalMetadataBuildingContext in interface AttributeSourceContainergetLocalMetadataBuildingContext in interface IdentifiableTypeSourcepublic java.lang.String getTypeName()
IdentifiableTypeSourcegetTypeName in interface IdentifiableTypeSourcepublic AttributePath getAttributePathBase()
getAttributePathBase in interface AttributeSourceContainerpublic AttributeRole getAttributeRoleBase()
getAttributeRoleBase in interface AttributeSourceContainerpublic java.util.Collection<IdentifiableTypeSource> getSubTypes()
IdentifiableTypeSourcegetSubTypes in interface IdentifiableTypeSourcepublic FilterSource[] getFilterSources()
EntitySourcegetFilterSources in interface EntitySourcepublic java.lang.String inferInLineViewName()
inferInLineViewName in interface Helper.InLineViewNameInferrerprotected void afterInstantiation()
protected java.util.List<AttributeSource> buildAttributeSources()
protected void buildAttributeSources(AttributesHelper.Callback attributeBuildingCallback)
protected JaxbHbmEntityBaseDefinition jaxbEntityMapping()
public Origin getOrigin()
IdentifiableTypeSourcegetOrigin in interface IdentifiableTypeSourcepublic EntityNamingSource getEntityNamingSource()
getEntityNamingSource in interface EntityNamingSourceContributorpublic java.lang.Boolean isAbstract()
EntitySourceisAbstract in interface EntitySourcetrue indicates the entity is abstract; false non-abstract; null
indicates that a reflection check should be done when building the persister.public boolean isLazy()
EntitySourceisLazy in interface EntitySourcetrue indicates the entity is lazy; false non-lazy.public java.lang.String getProxy()
EntitySourcelazy entities, obtain the interface to use in constructing its proxies.getProxy in interface EntitySourcepublic int getBatchSize()
EntitySourcegetBatchSize in interface EntitySourcepublic boolean isDynamicInsert()
EntitySourceisDynamicInsert in interface EntitySourcetrue indicates dynamic inserts will be used; false otherwise.public boolean isDynamicUpdate()
EntitySourceisDynamicUpdate in interface EntitySourcetrue indicates dynamic updates will be used; false otherwise.public boolean isSelectBeforeUpdate()
EntitySourceisSelectBeforeUpdate in interface EntitySourcetrue indicates selects will be done; false otherwise.protected EntityMode determineEntityMode()
public java.util.Map<EntityMode,java.lang.String> getTuplizerClassMap()
EntitySourcegetTuplizerClassMap in interface EntitySourcepublic java.lang.String getCustomPersisterClassName()
EntitySourcegetCustomPersisterClassName in interface EntitySourcepublic java.lang.String getCustomLoaderName()
EntitySourcegetCustomLoaderName in interface EntitySourcepublic CustomSql getCustomSqlInsert()
EntitySourcegetCustomSqlInsert in interface EntitySourcepublic CustomSql getCustomSqlUpdate()
EntitySourcegetCustomSqlUpdate in interface EntitySourcepublic CustomSql getCustomSqlDelete()
EntitySourcegetCustomSqlDelete in interface EntitySourcepublic java.lang.String[] getSynchronizedTableNames()
EntitySourcegetSynchronizedTableNames in interface EntitySourcepublic ToolingHintContext getToolingHintContext()
getToolingHintContext in interface ToolingHintContextContainerpublic java.util.List<AttributeSource> attributeSources()
AttributeSourceContainerattributeSources in interface AttributeSourceContainerpublic void injectHierarchy(EntityHierarchySourceImpl entityHierarchy)
public EntityHierarchySource getHierarchy()
IdentifiableTypeSourcegetHierarchy in interface IdentifiableTypeSourcepublic java.util.Map<java.lang.String,SecondaryTableSource> getSecondaryTableMap()
EntitySourcegetSecondaryTableMap in interface EntitySourcepublic java.util.List<JpaCallbackSource> getJpaCallbackClasses()
IdentifiableTypeSourcegetJpaCallbackClasses in interface IdentifiableTypeSourcepublic java.util.List<JaxbHbmNamedQueryType> getNamedQueries()
getNamedQueries in interface EntitySourcepublic java.util.List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries()
getNamedNativeQueries in interface EntitySourcepublic TruthValue quoteIdentifiersLocalToEntity()
quoteIdentifiersLocalToEntity in interface EntitySourceCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.