|
||||||||||
| 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(String name,
NamedQueryDefinition query)
|
void |
addDefaultResultSetMapping(ResultSetMappingDefinition definition)
|
void |
addDefaultSQLQuery(String name,
NamedSQLQueryDefinition query)
|
void |
addGenerator(IdGenerator generator)
Add a generator. |
void |
addGeneratorTable(String name,
Properties params)
Add a generator table properties. |
void |
addJoins(PersistentClass persistentClass,
Map<String,Join> joins)
Add join metadata for a persistent entity. |
void |
addMappedBy(String entityName,
String propertyName,
String inversePropertyName)
|
void |
addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property)
|
void |
addPropertyReferencedAssociation(String entityName,
String propertyName,
String propertyRef)
|
void |
addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entity,
PropertyData property)
|
void |
addUniqueConstraintHolders(Table table,
List<UniqueConstraintHolder> uniqueConstraintHolders)
|
void |
addUniqueConstraints(Table table,
List uniqueConstraints)
Deprecated. Use addUniqueConstraintHolders(org.hibernate.mapping.Table, java.util.List instead |
boolean |
containsAnnotationConfiguredFetchProfile(FetchProfile fetchProfile)
|
AnyMetaDef |
getAnyMetaDef(String name)
|
Map |
getClasses()
|
AnnotatedClassType |
getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
Get and maintain a cache of class type. |
String |
getFromMappedBy(String entityName,
String propertyName)
|
IdGenerator |
getGenerator(String name)
Retrieve the id-generator by name. |
IdGenerator |
getGenerator(String name,
Map<String,IdGenerator> localGenerators)
Try to find the generator from the localGenerators and then from the global generator list |
Properties |
getGeneratorTableProperties(String name,
Map<String,Properties> localGeneratorTables)
Retrieve the properties related to a generator table. |
Map<String,Join> |
getJoins(String entityName)
Retrieve join metadata for a particular persistent entity. |
PropertyData |
getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType,
String propertyName)
Return the property annotated with @ToOne and @Id if any. |
PropertyData |
getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
String propertyName)
Return the property annotated with @MapsId("propertyName") if any. |
String |
getPropertyReferencedAssociation(String entityName,
String propertyName)
|
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
|
Map<Table,List<String[]>> |
getTableUniqueConstraints()
Deprecated. Use getUniqueConstraintHoldersByTable() instead |
Map<Table,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(String name)
name - The generator name.
IdGenerator getGenerator(String name,
Map<String,IdGenerator> localGenerators)
name - generator namelocalGenerators - local generators
void addGenerator(IdGenerator generator)
generator - The generator to add.
void addGeneratorTable(String name,
Properties params)
name - The generator nameparams - The generator table properties.
Properties getGeneratorTableProperties(String name,
Map<String,Properties> localGeneratorTables)
name - generator namelocalGeneratorTables - local generator tables
Map<String,Join> getJoins(String entityName)
entityName - The entity name
void addJoins(PersistentClass persistentClass,
Map<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.
Map<Table,List<String[]>> getTableUniqueConstraints()
getUniqueConstraintHoldersByTable() instead
Map<Table,List<UniqueConstraintHolder>> getUniqueConstraintHoldersByTable()
void addUniqueConstraints(Table table,
List uniqueConstraints)
addUniqueConstraintHolders(org.hibernate.mapping.Table, java.util.List) instead
void addUniqueConstraintHolders(Table table,
List<UniqueConstraintHolder> uniqueConstraintHolders)
void addMappedBy(String entityName,
String propertyName,
String inversePropertyName)
String getFromMappedBy(String entityName,
String propertyName)
void addPropertyReferencedAssociation(String entityName,
String propertyName,
String propertyRef)
String getPropertyReferencedAssociation(String entityName,
String propertyName)
org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
void addDefaultQuery(String name,
NamedQueryDefinition query)
void addDefaultSQLQuery(String name,
NamedSQLQueryDefinition query)
void addDefaultResultSetMapping(ResultSetMappingDefinition definition)
Map getClasses()
void addAnyMetaDef(AnyMetaDef defAnn)
throws AnnotationException
AnnotationExceptionAnyMetaDef getAnyMetaDef(String name)
boolean isInSecondPass()
PropertyData getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
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,
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 | |||||||||