org.hibernate.cfg
Class ExtendedMappings

java.lang.Object
  extended by org.hibernate.cfg.Mappings
      extended by org.hibernate.cfg.ExtendedMappings
All Implemented Interfaces:
Serializable

public class ExtendedMappings
extends org.hibernate.cfg.Mappings

Allow annotation related mappings

at least for named generators

Author:
Emmanuel Bernard
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.cfg.Mappings
org.hibernate.cfg.Mappings.ColumnNames, org.hibernate.cfg.Mappings.TableDescription
 
Field Summary
 
Fields inherited from class org.hibernate.cfg.Mappings
columnNameBindingPerTable, tableNameBinding
 
Method Summary
 AnnotatedClassType addClassType(XClass clazz)
           
 void addGenerator(IdGenerator generator)
           
 void addGeneratorTable(String name, Properties params)
           
 void addJoins(org.hibernate.mapping.PersistentClass persistentClass, Map<String,org.hibernate.mapping.Join> joins)
           
 void addMappedBy(String entityName, String propertyName, String inversePropertyName)
           
 void addPropertyReference(String referencedClass, String propertyName)
           
 void addPropertyReferencedAssociation(String entityName, String propertyName, String propertyRef)
           
 void addUniqueConstraints(org.hibernate.mapping.Table table, List uniqueConstraints)
           
 void addUniquePropertyReference(String referencedClass, String propertyName)
           
 AnnotatedClassType getClassType(XClass clazz)
          get and maintain a cache of class type.
 String getFromMappedBy(String entityName, String propertyName)
           
 IdGenerator getGenerator(String 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)
           
 Map<String,org.hibernate.mapping.Join> getJoins(String persistentClass)
           
 String getPropertyReferencedAssociation(String entityName, String propertyName)
           
 Map<org.hibernate.mapping.Table,List<String[]>> getTableUniqueConstraints()
           
 
Methods inherited from class org.hibernate.cfg.Mappings
addAuxiliaryDatabaseObject, addClass, addCollection, addColumnBinding, addDenormalizedTable, addFilterDefinition, addImport, addQuery, addResultSetMapping, addSecondPass, addSecondPass, addSQLQuery, addTable, addTableBinding, addToExtendsQueue, addTypeDef, getCatalogName, getClass, getCollection, getDefaultAccess, getDefaultCascade, getDefaultPackage, getFilterDefinition, getFilterDefinitions, getLogicalColumnName, getLogicalTableName, getNamingStrategy, getPhysicalColumnName, getQuery, getResultSetMapping, getSchemaName, getTable, getTypeDef, isAutoImport, isDefaultLazy, iterateCollections, iterateTables, locatePersistentClassByEntityName, setAutoImport, setCatalogName, setDefaultAccess, setDefaultCascade, setDefaultLazy, setDefaultPackage, setSchemaName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addGenerator

public void addGenerator(IdGenerator generator)
                  throws org.hibernate.MappingException
Throws:
org.hibernate.MappingException

addJoins

public void addJoins(org.hibernate.mapping.PersistentClass persistentClass,
                     Map<String,org.hibernate.mapping.Join> joins)
              throws org.hibernate.MappingException
Throws:
org.hibernate.MappingException

addClassType

public AnnotatedClassType addClassType(XClass clazz)

getClassType

public AnnotatedClassType getClassType(XClass clazz)
get and maintain a cache of class type. A class can be an entity, a embedded objet or nothing.


getGenerator

public IdGenerator getGenerator(String name)

getJoins

public Map<String,org.hibernate.mapping.Join> getJoins(String persistentClass)

getGenerator

public IdGenerator getGenerator(String name,
                                Map<String,IdGenerator> localGenerators)
Try to find the generator from the localGenerators and then from the global generator list

Parameters:
name - generator name
localGenerators - local generators to find to
Returns:
the appropriate idgenerator or null if not found

addGeneratorTable

public void addGeneratorTable(String name,
                              Properties params)

getGeneratorTableProperties

public Properties getGeneratorTableProperties(String name,
                                              Map<String,Properties> localGeneratorTables)

addUniqueConstraints

public void addUniqueConstraints(org.hibernate.mapping.Table table,
                                 List uniqueConstraints)

getTableUniqueConstraints

public Map<org.hibernate.mapping.Table,List<String[]>> getTableUniqueConstraints()

addMappedBy

public void addMappedBy(String entityName,
                        String propertyName,
                        String inversePropertyName)

getFromMappedBy

public String getFromMappedBy(String entityName,
                              String propertyName)

addPropertyReferencedAssociation

public void addPropertyReferencedAssociation(String entityName,
                                             String propertyName,
                                             String propertyRef)

getPropertyReferencedAssociation

public String getPropertyReferencedAssociation(String entityName,
                                               String propertyName)

addUniquePropertyReference

public void addUniquePropertyReference(String referencedClass,
                                       String propertyName)
Overrides:
addUniquePropertyReference in class org.hibernate.cfg.Mappings

addPropertyReference

public void addPropertyReference(String referencedClass,
                                 String propertyName)
Overrides:
addPropertyReference in class org.hibernate.cfg.Mappings