org.hibernate.cfg.annotations
Class EntityBinder
java.lang.Object
org.hibernate.cfg.annotations.EntityBinder
public class EntityBinder
- extends Object
Stateful holder and processor for binding Entity information
- Author:
- Emmanuel Bernard
Constructor Summary |
EntityBinder()
Use as a fake one for Collection of elements |
EntityBinder(javax.persistence.Entity ejb3Ann,
Entity hibAnn,
org.hibernate.annotations.common.reflection.XClass annotatedClass,
org.hibernate.mapping.PersistentClass persistentClass,
ExtendedMappings mappings)
|
Method Summary |
void |
addFilter(String name,
String condition)
|
org.hibernate.mapping.Join |
addJoin(javax.persistence.JoinTable joinTable,
PropertyHolder holder,
boolean noDelayInPkColumnCreation)
|
void |
bindDiscriminatorValue()
|
void |
bindEntity()
|
void |
bindTable(String schema,
String catalog,
String tableName,
List uniqueConstraints,
String constraints,
org.hibernate.mapping.Table denormalizedSuperclassTable)
|
void |
finalSecondaryTableBinding(PropertyHolder propertyHolder)
|
void |
firstLevelSecondaryTablesBinding(javax.persistence.SecondaryTable secTable,
javax.persistence.SecondaryTables secTables)
|
static String |
getCacheConcurrencyStrategy(CacheConcurrencyStrategy strategy)
|
String |
getPropertyAccessor()
|
String |
getPropertyAccessor(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
|
Map<String,org.hibernate.mapping.Join> |
getSecondaryTables()
|
boolean |
isIgnoreIdAnnotations()
|
boolean |
isPropertyAnnotated()
|
boolean |
isPropertyAnnotated(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
|
void |
processComplementaryTableDefinitions(Table table)
|
void |
processComplementaryTableDefinitions(Tables tables)
|
void |
setBatchSize(BatchSize sizeAnn)
|
void |
setCache(Cache cacheAnn)
|
void |
setDiscriminatorValue(String discriminatorValue)
|
void |
setIgnoreIdAnnotations(boolean ignoreIdAnnotations)
|
void |
setInheritanceState(InheritanceState inheritanceState)
|
void |
setPropertyAccessor(String propertyAccessor)
|
void |
setPropertyAnnotated(boolean propertyAnnotated)
|
void |
setProxy(Proxy proxy)
|
void |
setWhere(Where whereAnn)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityBinder
public EntityBinder()
- Use as a fake one for Collection of elements
EntityBinder
public EntityBinder(javax.persistence.Entity ejb3Ann,
Entity hibAnn,
org.hibernate.annotations.common.reflection.XClass annotatedClass,
org.hibernate.mapping.PersistentClass persistentClass,
ExtendedMappings mappings)
isPropertyAnnotated
public boolean isPropertyAnnotated()
setDiscriminatorValue
public void setDiscriminatorValue(String discriminatorValue)
bindEntity
public void bindEntity()
bindDiscriminatorValue
public void bindDiscriminatorValue()
setBatchSize
public void setBatchSize(BatchSize sizeAnn)
setProxy
public void setProxy(Proxy proxy)
setWhere
public void setWhere(Where whereAnn)
bindTable
public void bindTable(String schema,
String catalog,
String tableName,
List uniqueConstraints,
String constraints,
org.hibernate.mapping.Table denormalizedSuperclassTable)
finalSecondaryTableBinding
public void finalSecondaryTableBinding(PropertyHolder propertyHolder)
firstLevelSecondaryTablesBinding
public void firstLevelSecondaryTablesBinding(javax.persistence.SecondaryTable secTable,
javax.persistence.SecondaryTables secTables)
addJoin
public org.hibernate.mapping.Join addJoin(javax.persistence.JoinTable joinTable,
PropertyHolder holder,
boolean noDelayInPkColumnCreation)
getSecondaryTables
public Map<String,org.hibernate.mapping.Join> getSecondaryTables()
setCache
public void setCache(Cache cacheAnn)
getCacheConcurrencyStrategy
public static String getCacheConcurrencyStrategy(CacheConcurrencyStrategy strategy)
addFilter
public void addFilter(String name,
String condition)
setInheritanceState
public void setInheritanceState(InheritanceState inheritanceState)
isIgnoreIdAnnotations
public boolean isIgnoreIdAnnotations()
setIgnoreIdAnnotations
public void setIgnoreIdAnnotations(boolean ignoreIdAnnotations)
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(Table table)
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(Tables tables)
setPropertyAnnotated
public void setPropertyAnnotated(boolean propertyAnnotated)
getPropertyAccessor
public String getPropertyAccessor()
setPropertyAccessor
public void setPropertyAccessor(String propertyAccessor)
isPropertyAnnotated
public boolean isPropertyAnnotated(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
getPropertyAccessor
public String getPropertyAccessor(org.hibernate.annotations.common.reflection.XAnnotatedElement element)