public interface EntitySource extends IdentifiableTypeSource, ToolingHintContextContainer, EntityNamingSourceContributor
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize()
Obtain the batch-size to be applied when initializing proxies of this entity.
|
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 |
getDiscriminatorMatchValue()
Get the actual discriminator value in case of a single table inheritance
|
FilterSource[] |
getFilterSources()
Obtain the filters for this entity.
|
java.util.List<JaxbHbmNamedNativeQueryType> |
getNamedNativeQueries() |
java.util.List<JaxbHbmNamedQueryType> |
getNamedQueries() |
TableSpecificationSource |
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.util.Map<java.lang.String,SecondaryTableSource> |
getSecondaryTableMap()
Obtain the secondary tables for this entity
|
java.lang.String[] |
getSynchronizedTableNames()
Obtain any additional table names on which to synchronize (auto flushing) this entity.
|
java.util.Map<EntityMode,java.lang.String> |
getTuplizerClassMap()
Obtain the named custom tuplizer classes to be used.
|
java.lang.String |
getXmlNodeName() |
java.lang.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?
|
TruthValue |
quoteIdentifiersLocalToEntity() |
getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getOrigin, getSubTypes, getSuperType, getTypeName
attributeSources, getAttributePathBase, getAttributeRoleBase
getToolingHintContext
getEntityNamingSource
TableSpecificationSource getPrimaryTable()
java.util.Map<java.lang.String,SecondaryTableSource> getSecondaryTableMap()
java.lang.String getXmlNodeName()
java.util.Map<EntityMode,java.lang.String> getTuplizerClassMap()
java.lang.String getCustomPersisterClassName()
boolean isLazy()
true
indicates the entity is lazy; false
non-lazy.java.lang.String getProxy()
lazy
entities, obtain the interface to use in constructing its proxies.int getBatchSize()
java.lang.Boolean isAbstract()
true
indicates the entity is abstract; false
non-abstract; null
indicates that a reflection check should be done when building the persister.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.java.lang.String getCustomLoaderName()
CustomSql getCustomSqlInsert()
CustomSql getCustomSqlUpdate()
CustomSql getCustomSqlDelete()
java.lang.String[] getSynchronizedTableNames()
java.lang.String getDiscriminatorMatchValue()
null
in case there is no
explicit value or a different inheritance schemeFilterSource[] getFilterSources()
java.util.List<JaxbHbmNamedQueryType> getNamedQueries()
java.util.List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries()
TruthValue quoteIdentifiersLocalToEntity()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.