public class EntitySourceImpl extends java.lang.Object implements EntitySource
| Constructor and Description |
|---|
EntitySourceImpl(EntityClass entityClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SubclassEntitySource subclassEntitySource) |
java.lang.Iterable<AttributeSource> |
attributeSources()
Obtain this container's attribute sources.
|
int |
getBatchSize()
Obtain the batch-size to be applied when initializing proxies of this entity.
|
java.lang.String |
getClassName()
Obtain the name of the entity
Class |
java.lang.Iterable<ConstraintSource> |
getConstraints() |
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
|
java.lang.String |
getCustomTuplizerClassName()
Obtain the name of a custom tuplizer class to be used.
|
java.lang.String |
getDiscriminatorMatchValue()
Get the actual discriminator value in case of a single table inheritance
|
EntityClass |
getEntityClass() |
java.lang.String |
getEntityName()
Obtain the entity name
|
java.util.List<JpaCallbackClass> |
getJpaCallbackClasses() |
java.lang.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.
|
java.lang.String |
getPath()
Obtain the path used to uniquely identify this container.
|
TableSource |
getPrimaryTable()
Obtain the primary table for this entity.
|
java.lang.String |
getProxy()
For
lazy entities, obtain the interface to use in constructing its proxies. |
java.lang.Iterable<TableSource> |
getSecondaryTables()
Obtain the secondary tables for this entity
|
java.util.List<java.lang.String> |
getSynchronizedTableNames()
Obtain any additional table names on which to synchronize (auto flushing) this entity.
|
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?
|
java.lang.Iterable<MetaAttributeSource> |
metaAttributes()
Obtain the meta-attribute sources associated with this entity.
|
java.lang.Iterable<SubclassEntitySource> |
subclassEntitySources() |
public EntitySourceImpl(EntityClass entityClass)
public EntityClass getEntityClass()
public Origin getOrigin()
EntitySourcegetOrigin in interface EntitySourcepublic LocalBindingContext getLocalBindingContext()
EntitySourcegetLocalBindingContext in interface AttributeSourceContainergetLocalBindingContext in interface EntitySourcepublic java.lang.String getEntityName()
EntitySourcegetEntityName in interface EntitySourcepublic java.lang.String getClassName()
EntitySourceClassgetClassName in interface EntitySourcepublic java.lang.String getJpaEntityName()
EntitySourcegetJpaEntityName in interface EntitySourcepublic TableSource getPrimaryTable()
EntitySourcegetPrimaryTable 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 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.public java.lang.String getCustomTuplizerClassName()
EntitySourcegetCustomTuplizerClassName 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.util.List<java.lang.String> getSynchronizedTableNames()
EntitySourcegetSynchronizedTableNames in interface EntitySourcepublic java.lang.Iterable<MetaAttributeSource> metaAttributes()
EntitySourcemetaAttributes in interface EntitySourcepublic java.lang.String getPath()
AttributeSourceContainergetPath in interface AttributeSourceContainerpublic java.lang.Iterable<AttributeSource> attributeSources()
AttributeSourceContainerattributeSources in interface AttributeSourceContainerpublic void add(SubclassEntitySource subclassEntitySource)
add in interface SubclassEntityContainerpublic java.lang.Iterable<SubclassEntitySource> subclassEntitySources()
subclassEntitySources in interface SubclassEntityContainerpublic java.lang.String getDiscriminatorMatchValue()
EntitySourcegetDiscriminatorMatchValue in interface EntitySourcenull in case there is no
explicit value or a different inheritance schemepublic java.lang.Iterable<ConstraintSource> getConstraints()
getConstraints in interface EntitySourcepublic java.util.List<JpaCallbackClass> getJpaCallbackClasses()
getJpaCallbackClasses in interface EntitySourceentity/mapped superclass, or
entity listeners) that define JPA callbacks for this entity/mapped superclass.public java.lang.Iterable<TableSource> getSecondaryTables()
EntitySourcegetSecondaryTables in interface EntitySourceCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.