|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedMappings
Allow annotation related mappings
at least for named generators
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.hibernate.cfg.Mappings |
|---|
Mappings.PropertyReference |
| Method Summary | |
|---|---|
void |
addAnnotationConfiguredFetchProfile(FetchProfile fetchProfile)
Add the specified profile to the list of fetch profiles configured via annotations. |
void |
addAnyMetaDef(AnyMetaDef defAnn)
|
AnnotatedClassType |
addClassType(org.hibernate.annotations.common.reflection.XClass clazz)
FIXME should be private but will this break things? Add a class type. |
void |
addDefaultGenerator(IdGenerator generator)
Adds a default id generator. |
void |
addDefaultQuery(java.lang.String name,
NamedQueryDefinition query)
|
void |
addDefaultResultSetMapping(ResultSetMappingDefinition definition)
|
void |
addDefaultSQLQuery(java.lang.String name,
NamedSQLQueryDefinition query)
|
void |
addGenerator(IdGenerator generator)
Add a generator. |
void |
addGeneratorTable(java.lang.String name,
java.util.Properties params)
Add a generator table properties. |
void |
addJoins(PersistentClass persistentClass,
java.util.Map<java.lang.String,Join> joins)
Add join metadata for a persistent entity. |
void |
addMappedBy(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String inversePropertyName)
|
void |
addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property)
|
void |
addPropertyReferencedAssociation(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyRef)
|
void |
addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entity,
PropertyData property)
|
void |
addUniqueConstraintHolders(Table table,
java.util.List<UniqueConstraintHolder> uniqueConstraintHolders)
|
void |
addUniqueConstraints(Table table,
java.util.List uniqueConstraints)
Deprecated. Use addUniqueConstraintHolders(org.hibernate.mapping.Table, java.util.List instead |
boolean |
containsAnnotationConfiguredFetchProfile(FetchProfile fetchProfile)
|
AnyMetaDef |
getAnyMetaDef(java.lang.String name)
|
java.util.Map |
getClasses()
|
AnnotatedClassType |
getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
Get and maintain a cache of class type. |
java.lang.String |
getFromMappedBy(java.lang.String entityName,
java.lang.String propertyName)
|
IdGenerator |
getGenerator(java.lang.String name)
Retrieve the id-generator by name. |
IdGenerator |
getGenerator(java.lang.String name,
java.util.Map<java.lang.String,IdGenerator> localGenerators)
Try to find the generator from the localGenerators and then from the global generator list |
java.util.Properties |
getGeneratorTableProperties(java.lang.String name,
java.util.Map<java.lang.String,java.util.Properties> localGeneratorTables)
Retrieve the properties related to a generator table. |
java.util.Map<java.lang.String,Join> |
getJoins(java.lang.String entityName)
Retrieve join metadata for a particular persistent entity. |
PropertyData |
getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType,
java.lang.String propertyName)
Return the property annotated with @ToOne and @Id if any. |
PropertyData |
getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
java.lang.String propertyName)
Return the property annotated with @MapsId("propertyName") if any. |
java.lang.String |
getPropertyReferencedAssociation(java.lang.String entityName,
java.lang.String propertyName)
|
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
|
java.util.Map<Table,java.util.List<java.lang.String[]>> |
getTableUniqueConstraints()
Deprecated. Use getUniqueConstraintHoldersByTable() instead |
java.util.Map<Table,java.util.List<UniqueConstraintHolder>> |
getUniqueConstraintHoldersByTable()
|
boolean |
isInSecondPass()
|
boolean |
useNewGeneratorMappings()
Should we use the new generator strategy mappings. |
| Method Detail |
|---|
void addDefaultGenerator(IdGenerator generator)
generator - The id generatorIdGenerator getGenerator(java.lang.String name)
name - The generator name.
IdGenerator getGenerator(java.lang.String name,
java.util.Map<java.lang.String,IdGenerator> localGenerators)
name - generator namelocalGenerators - local generators
void addGenerator(IdGenerator generator)
generator - The generator to add.
void addGeneratorTable(java.lang.String name,
java.util.Properties params)
name - The generator nameparams - The generator table properties.
java.util.Properties getGeneratorTableProperties(java.lang.String name,
java.util.Map<java.lang.String,java.util.Properties> localGeneratorTables)
name - generator namelocalGeneratorTables - local generator tables
java.util.Map<java.lang.String,Join> getJoins(java.lang.String entityName)
entityName - The entity name
void addJoins(PersistentClass persistentClass,
java.util.Map<java.lang.String,Join> joins)
persistentClass - The persistent entity metadata.joins - The join metadata to add.
MappingExceptionAnnotatedClassType getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
clazz - The XClass mapping
AnnotatedClassType addClassType(org.hibernate.annotations.common.reflection.XClass clazz)
clazz - The XClass mapping.
java.util.Map<Table,java.util.List<java.lang.String[]>> getTableUniqueConstraints()
getUniqueConstraintHoldersByTable() instead
java.util.Map<Table,java.util.List<UniqueConstraintHolder>> getUniqueConstraintHoldersByTable()
void addUniqueConstraints(Table table,
java.util.List uniqueConstraints)
addUniqueConstraintHolders(org.hibernate.mapping.Table, java.util.List) instead
void addUniqueConstraintHolders(Table table,
java.util.List<UniqueConstraintHolder> uniqueConstraintHolders)
void addMappedBy(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String inversePropertyName)
java.lang.String getFromMappedBy(java.lang.String entityName,
java.lang.String propertyName)
void addPropertyReferencedAssociation(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyRef)
java.lang.String getPropertyReferencedAssociation(java.lang.String entityName,
java.lang.String propertyName)
org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
void addDefaultQuery(java.lang.String name,
NamedQueryDefinition query)
void addDefaultSQLQuery(java.lang.String name,
NamedSQLQueryDefinition query)
void addDefaultResultSetMapping(ResultSetMappingDefinition definition)
java.util.Map getClasses()
void addAnyMetaDef(AnyMetaDef defAnn)
throws AnnotationException
AnnotationExceptionAnyMetaDef getAnyMetaDef(java.lang.String name)
boolean isInSecondPass()
PropertyData getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
java.lang.String propertyName)
void addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property)
boolean useNewGeneratorMappings()
AnnotationConfiguration.USE_NEW_ID_GENERATOR_MAPPINGS setting.
PropertyData getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType,
java.lang.String propertyName)
void addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entity,
PropertyData property)
void addAnnotationConfiguredFetchProfile(FetchProfile fetchProfile)
fetchProfile - the fetch profileboolean containsAnnotationConfiguredFetchProfile(FetchProfile fetchProfile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||