public class EntitySourceImpl extends Object implements EntitySource
Constructor and Description |
---|
EntitySourceImpl(EntityClass entityClass) |
Modifier and Type | Method and Description |
---|---|
void |
add(SubclassEntitySource subclassEntitySource) |
Iterable<AttributeSource> |
attributeSources()
Obtain this container's attribute sources.
|
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
|
EntityClass |
getEntityClass() |
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.
|
TableSource |
getPrimaryTable()
Obtain the primary table for this entity.
|
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.
|
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.
|
Iterable<SubclassEntitySource> |
subclassEntitySources() |
public EntitySourceImpl(EntityClass entityClass)
public EntityClass getEntityClass()
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 TableSource getPrimaryTable()
EntitySource
getPrimaryTable
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.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 add(SubclassEntitySource subclassEntitySource)
add
in interface SubclassEntityContainer
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 List<JpaCallbackClass> getJpaCallbackClasses()
getJpaCallbackClasses
in interface EntitySource
entity
/mapped superclass
, or
entity listeners
) that define JPA callbacks for this entity/mapped superclass.public Iterable<TableSource> getSecondaryTables()
EntitySource
getSecondaryTables
in interface EntitySource
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.