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, wait
getPrimaryTable
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, EntityElement entityElement)
protected EntityElement entityElement()
protected MappingDocument sourceMappingDocument()
public Origin getOrigin()
EntitySource
getOrigin
in interface EntitySource
public LocalBindingContext getLocalBindingContext()
EntitySource
getLocalBindingContext
in interface AttributeSourceContainer
getLocalBindingContext
in interface EntitySource
public String getEntityName()
EntitySource
getEntityName
in interface EntitySource
public String getClassName()
EntitySource
Class
getClassName
in interface EntitySource
public String getJpaEntityName()
EntitySource
getJpaEntityName
in interface EntitySource
public boolean isAbstract()
EntitySource
isAbstract
in interface EntitySource
true
indicates the entity is abstract; false
non-abstract.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 String getCustomTuplizerClassName()
EntitySource
getCustomTuplizerClassName
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 List<String> getSynchronizedTableNames()
EntitySource
getSynchronizedTableNames
in interface EntitySource
public Iterable<MetaAttributeSource> metaAttributes()
EntitySource
metaAttributes
in interface EntitySource
public String getPath()
AttributeSourceContainer
getPath
in interface AttributeSourceContainer
public Iterable<AttributeSource> attributeSources()
AttributeSourceContainer
attributeSources
in interface AttributeSourceContainer
public void injectHierarchy(EntityHierarchyImpl entityHierarchy)
public void add(SubclassEntitySource subclassEntitySource)
add
in interface SubclassEntityContainer
public void add(SubclassEntitySourceImpl subclassEntitySource)
public Iterable<SubclassEntitySource> subclassEntitySources()
subclassEntitySources
in interface SubclassEntityContainer
public String getDiscriminatorMatchValue()
EntitySource
getDiscriminatorMatchValue
in interface EntitySource
null
in case there is no
explicit value or a different inheritance schemepublic Iterable<ConstraintSource> getConstraints()
getConstraints
in interface EntitySource
public Iterable<TableSource> getSecondaryTables()
EntitySource
getSecondaryTables
in interface EntitySource
public List<JpaCallbackClass> getJpaCallbackClasses()
getJpaCallbackClasses
in interface EntitySource
entity
/mapped superclass
, or
entity listeners
) that define JPA callbacks for this entity/mapped superclass.Copyright © 2018 JBoss by Red Hat. All rights reserved.