public abstract class AbstractEntitySourceImpl extends Object implements EntitySource
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEntitySourceImpl(MappingDocument sourceMappingDocument,
EntityElement entityElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SubclassEntitySource subclassEntitySource) |
void |
add(SubclassEntitySourceImpl subclassEntitySource) |
Iterable<AttributeSource> |
attributeSources()
Obtain this container's attribute sources.
|
protected EntityMode |
determineEntityMode() |
protected EntityElement |
entityElement() |
int |
getBatchSize()
Obtain the batch-size to be applied when initializing proxies of this entity.
|
String |
getClassName()
Obtain the name of the entity
Class |
Iterable<ConstraintSource> |
getConstraints() |
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
|
String |
getCustomTuplizerClassName()
Obtain the name of a custom tuplizer class to be used.
|
String |
getDiscriminatorMatchValue()
Get the actual discriminator value in case of a single table inheritance
|
String |
getEntityName()
Obtain the entity name
|
List<JpaCallbackClass> |
getJpaCallbackClasses() |
String |
getJpaEntityName()
Obtain the JPA name of the entity
|
LocalBindingContext |
getLocalBindingContext()
Obtain the binding context local to this entity source.
|
Origin |
getOrigin()
Obtain the origin of this source.
|
String |
getPath()
Obtain the path used to uniquely identify this container.
|
String |
getProxy()
For
lazy entities, obtain the interface to use in constructing its proxies. |
Iterable<TableSource> |
getSecondaryTables()
Obtain the secondary tables for this entity
|
List<String> |
getSynchronizedTableNames()
Obtain any additional table names on which to synchronize (auto flushing) this entity.
|
void |
injectHierarchy(EntityHierarchyImpl 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?
|
Iterable<MetaAttributeSource> |
metaAttributes()
Obtain the meta-attribute sources associated with this entity.
|
protected MappingDocument |
sourceMappingDocument() |
Iterable<SubclassEntitySource> |
subclassEntitySources() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrimaryTableprotected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, EntityElement entityElement)
protected EntityElement entityElement()
protected MappingDocument sourceMappingDocument()
public Origin getOrigin()
EntitySourcegetOrigin in interface EntitySourcepublic LocalBindingContext getLocalBindingContext()
EntitySourcegetLocalBindingContext in interface AttributeSourceContainergetLocalBindingContext in interface EntitySourcepublic String getEntityName()
EntitySourcegetEntityName in interface EntitySourcepublic String getClassName()
EntitySourceClassgetClassName in interface EntitySourcepublic String getJpaEntityName()
EntitySourcegetJpaEntityName in interface EntitySourcepublic boolean isAbstract()
EntitySourceisAbstract in interface EntitySourcetrue indicates the entity is abstract; false non-abstract.public boolean isLazy()
EntitySourceisLazy in interface EntitySourcetrue indicates the entity is lazy; false non-lazy.public 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 String getCustomTuplizerClassName()
EntitySourcegetCustomTuplizerClassName in interface EntitySourcepublic String getCustomPersisterClassName()
EntitySourcegetCustomPersisterClassName in interface EntitySourcepublic String getCustomLoaderName()
EntitySourcegetCustomLoaderName in interface EntitySourcepublic CustomSQL getCustomSqlInsert()
EntitySourcegetCustomSqlInsert in interface EntitySourcepublic CustomSQL getCustomSqlUpdate()
EntitySourcegetCustomSqlUpdate in interface EntitySourcepublic CustomSQL getCustomSqlDelete()
EntitySourcegetCustomSqlDelete in interface EntitySourcepublic List<String> getSynchronizedTableNames()
EntitySourcegetSynchronizedTableNames in interface EntitySourcepublic Iterable<MetaAttributeSource> metaAttributes()
EntitySourcemetaAttributes in interface EntitySourcepublic String getPath()
AttributeSourceContainergetPath in interface AttributeSourceContainerpublic Iterable<AttributeSource> attributeSources()
AttributeSourceContainerattributeSources in interface AttributeSourceContainerpublic void injectHierarchy(EntityHierarchyImpl entityHierarchy)
public void add(SubclassEntitySource subclassEntitySource)
add in interface SubclassEntityContainerpublic void add(SubclassEntitySourceImpl subclassEntitySource)
public Iterable<SubclassEntitySource> subclassEntitySources()
subclassEntitySources in interface SubclassEntityContainerpublic String getDiscriminatorMatchValue()
EntitySourcegetDiscriminatorMatchValue in interface EntitySourcenull in case there is no
explicit value or a different inheritance schemepublic Iterable<ConstraintSource> getConstraints()
getConstraints in interface EntitySourcepublic Iterable<TableSource> getSecondaryTables()
EntitySourcegetSecondaryTables in interface EntitySourcepublic List<JpaCallbackClass> getJpaCallbackClasses()
getJpaCallbackClasses in interface EntitySourceentity/mapped superclass, or
entity listeners) that define JPA callbacks for this entity/mapped superclass.Copyright © 2018 JBoss by Red Hat. All rights reserved.