public interface EntitySource extends SubclassEntityContainer, AttributeSourceContainer
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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. 
 | 
add, subclassEntitySourcesattributeSources, getPathOrigin getOrigin()
LocalBindingContext getLocalBindingContext()
getLocalBindingContext in interface AttributeSourceContainerString getEntityName()
String getClassName()
ClassString getJpaEntityName()
TableSource getPrimaryTable()
Iterable<TableSource> getSecondaryTables()
String getCustomTuplizerClassName()
String getCustomPersisterClassName()
boolean isLazy()
true indicates the entity is lazy; false non-lazy.String getProxy()
lazy entities, obtain the interface to use in constructing its proxies.int getBatchSize()
boolean isAbstract()
true indicates the entity is abstract; false non-abstract.boolean isDynamicInsert()
true indicates dynamic inserts will be used; false otherwise.boolean isDynamicUpdate()
true indicates dynamic updates will be used; false otherwise.boolean isSelectBeforeUpdate()
true indicates selects will be done; false otherwise.String getCustomLoaderName()
CustomSQL getCustomSqlInsert()
CustomSQL getCustomSqlUpdate()
CustomSQL getCustomSqlDelete()
List<String> getSynchronizedTableNames()
Iterable<MetaAttributeSource> metaAttributes()
String getDiscriminatorMatchValue()
null in case there is no
         explicit value or a different inheritance schemeIterable<ConstraintSource> getConstraints()
List<JpaCallbackClass> getJpaCallbackClasses()
entity/mapped superclass, or
         entity listeners) that define JPA callbacks for this entity/mapped superclass.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.