|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.metamodel.source.hbm.AbstractEntitySourceImpl
public abstract class AbstractEntitySourceImpl
| Constructor Summary | |
|---|---|
protected |
AbstractEntitySourceImpl(MappingDocument sourceMappingDocument,
EntityElement entityElement)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.metamodel.source.binder.EntitySource |
|---|
getPrimaryTable |
| Constructor Detail |
|---|
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument,
EntityElement entityElement)
| Method Detail |
|---|
protected EntityElement entityElement()
protected MappingDocument sourceMappingDocument()
public Origin getOrigin()
EntitySource
getOrigin in interface EntitySourcepublic LocalBindingContext getLocalBindingContext()
EntitySource
getLocalBindingContext in interface AttributeSourceContainergetLocalBindingContext in interface EntitySourcepublic String getEntityName()
EntitySource
getEntityName in interface EntitySourcepublic String getClassName()
EntitySourceClass
getClassName in interface EntitySourcepublic String getJpaEntityName()
EntitySource
getJpaEntityName in interface EntitySourcepublic boolean isAbstract()
EntitySource
isAbstract in interface EntitySourcetrue indicates the entity is abstract; false non-abstract.public boolean isLazy()
EntitySource
isLazy 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()
EntitySource
getBatchSize in interface EntitySourcepublic boolean isDynamicInsert()
EntitySource
isDynamicInsert in interface EntitySourcetrue indicates dynamic inserts will be used; false otherwise.public boolean isDynamicUpdate()
EntitySource
isDynamicUpdate in interface EntitySourcetrue indicates dynamic updates will be used; false otherwise.public boolean isSelectBeforeUpdate()
EntitySource
isSelectBeforeUpdate in interface EntitySourcetrue indicates selects will be done; false otherwise.protected EntityMode determineEntityMode()
public String getCustomTuplizerClassName()
EntitySource
getCustomTuplizerClassName in interface EntitySourcepublic String getCustomPersisterClassName()
EntitySource
getCustomPersisterClassName in interface EntitySourcepublic String getCustomLoaderName()
EntitySource
getCustomLoaderName in interface EntitySourcepublic CustomSQL getCustomSqlInsert()
EntitySource
getCustomSqlInsert in interface EntitySourcepublic CustomSQL getCustomSqlUpdate()
EntitySource
getCustomSqlUpdate in interface EntitySourcepublic CustomSQL getCustomSqlDelete()
EntitySource
getCustomSqlDelete in interface EntitySourcepublic List<String> getSynchronizedTableNames()
EntitySource
getSynchronizedTableNames in interface EntitySourcepublic Iterable<MetaAttributeSource> metaAttributes()
EntitySource
metaAttributes in interface EntitySourcepublic String getPath()
AttributeSourceContainer
getPath in interface AttributeSourceContainerpublic Iterable<AttributeSource> attributeSources()
AttributeSourceContainer
attributeSources 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()
EntitySource
getDiscriminatorMatchValue 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()
EntitySource
getSecondaryTables in interface EntitySourcepublic List<JpaCallbackClass> getJpaCallbackClasses()
getJpaCallbackClasses in interface EntitySourceentity/mapped superclass, or
entity listeners) that define JPA callbacks for this entity/mapped superclass.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||