public interface EntitySource extends IdentifiableTypeSource, ToolingHintContextContainer, EntityNamingSourceContributor
Contract describing source of information related to mapping an entity.
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize()
Obtain the batch-size to be applied when initializing proxies of this entity.
|
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 |
getDiscriminatorMatchValue()
Get the actual discriminator value in case of a single table inheritance
|
FilterSource[] |
getFilterSources()
Obtain the filters for this entity.
|
List<JaxbHbmNamedNativeQueryType> |
getNamedNativeQueries() |
List<JaxbHbmNamedQueryType> |
getNamedQueries() |
TableSpecificationSource |
getPrimaryTable()
Obtain the primary table for this entity.
|
String |
getProxy()
For
lazy entities, obtain the interface to use in constructing its proxies. |
Map<String,SecondaryTableSource> |
getSecondaryTableMap()
Obtain the secondary tables for this entity
|
String[] |
getSynchronizedTableNames()
Obtain any additional table names on which to synchronize (auto flushing) this entity.
|
Map<EntityMode,String> |
getTuplizerClassMap()
Obtain the named custom tuplizer classes to be used.
|
String |
getXmlNodeName() |
Boolean |
isAbstract()
Is the entity abstract?
<p/>
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?
|
TruthValue |
quoteIdentifiersLocalToEntity() |
getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getOrigin, getSubTypes, getSuperType, getTypeName
attributeSources, getAttributePathBase, getAttributeRoleBase
getToolingHintContext
getEntityNamingSource
TableSpecificationSource getPrimaryTable()
Obtain the primary table for this entity.
Map<String,SecondaryTableSource> getSecondaryTableMap()
Obtain the secondary tables for this entity
String getXmlNodeName()
Map<EntityMode,String> getTuplizerClassMap()
Obtain the named custom tuplizer classes to be used.
String getCustomPersisterClassName()
Obtain the name of a custom persister class to be used.
boolean isLazy()
Is this entity lazy (proxyable)?
true
indicates the entity is lazy; false
non-lazy.String getProxy()
For lazy
entities, obtain the interface to use in constructing its proxies.
int getBatchSize()
Obtain the batch-size to be applied when initializing proxies of this entity.
Boolean isAbstract()
Is the entity abstract? <p/> The implication is whether the entity maps to a database table.
true
indicates the entity is abstract; false
non-abstract; null
indicates that a reflection check should be done when building the persister.boolean isDynamicInsert()
Did the source specify dynamic inserts?
true
indicates dynamic inserts will be used; false
otherwise.boolean isDynamicUpdate()
Did the source specify dynamic updates?
true
indicates dynamic updates will be used; false
otherwise.boolean isSelectBeforeUpdate()
Did the source specify to perform selects to decide whether to perform (detached) updates?
true
indicates selects will be done; false
otherwise.String getCustomLoaderName()
Obtain the name of a named-query that will be used for loading 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
CustomSql getCustomSqlDelete()
Obtain the custom SQL to be used for deletes for this entity
String[] getSynchronizedTableNames()
Obtain any additional table names on which to synchronize (auto flushing) this entity.
String getDiscriminatorMatchValue()
Get the actual discriminator value in case of a single table inheritance
null
in case there is no
explicit value or a different inheritance schemeFilterSource[] getFilterSources()
Obtain the filters for this entity.
List<JaxbHbmNamedQueryType> getNamedQueries()
List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries()
TruthValue quoteIdentifiersLocalToEntity()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.