Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » cfg » [javadoc | source]
org.hibernate.cfg
public class: Mappings [javadoc | source]
java.lang.Object
   org.hibernate.cfg.Mappings

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ExtendedMappings

A collection of mappings from classes and collections to relational database tables. (Represents a single <hibernate-mapping> element.)
Nested Class Summary:
static final class  Mappings.PropertyReference   
public static class  Mappings.ColumnNames   
public static class  Mappings.TableDescription   
Field Summary
protected final  Map classes     
protected final  Map collections     
protected final  Map tables     
protected final  Map queries     
protected final  Map sqlqueries     
protected final  Map resultSetMappings     
protected final  Map typeDefs     
protected final  List secondPasses     
protected final  Map imports     
protected  String schemaName     
protected  String catalogName     
protected  String defaultCascade     
protected  String defaultPackage     
protected  String defaultAccess     
protected  boolean autoImport     
protected  boolean defaultLazy     
protected final  List propertyReferences     
protected final  NamingStrategy namingStrategy     
protected final  Map filterDefinitions     
protected final  List auxiliaryDatabaseObjects     
protected final  Map extendsQueue     
protected final  Map columnNameBindingPerTable    binding table between the logical column name and the name out of the naming strategy for each table. According that when the column name is not set, the property name is considered as such This means that while theorically possible through the naming strategy contract, it is forbidden to have 2 real columns having the same logical name  
protected final  Map tableNameBinding    binding between logical table name and physical one (ie after the naming strategy has been applied)  
Constructor:
 Mappings(Map classes,
    Map collections,
    Map tables,
    Map queries,
    Map sqlqueries,
    Map sqlResultSetMappings,
    Map imports,
    List secondPasses,
    List propertyReferences,
    NamingStrategy namingStrategy,
    Map typeDefs,
    Map filterDefinitions,
    Map extendsQueue,
    List auxiliaryDatabaseObjects,
    Map tableNamebinding,
    Map columnNameBindingPerTable) 
Method from org.hibernate.cfg.Mappings Summary:
addAuxiliaryDatabaseObject,   addClass,   addCollection,   addColumnBinding,   addDenormalizedTable,   addFilterDefinition,   addImport,   addPropertyReference,   addQuery,   addResultSetMapping,   addSQLQuery,   addSecondPass,   addSecondPass,   addTable,   addTableBinding,   addToExtendsQueue,   addTypeDef,   addUniquePropertyReference,   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 from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.cfg.Mappings Detail:
 public  void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject) 
 public  void addClass(PersistentClass persistentClass) throws MappingException 
 public  void addCollection(Collection collection) throws MappingException 
 public  void addColumnBinding(String logicalName,
    Column finalColumn,
    Table table) 
 public Table addDenormalizedTable(String schema,
    String catalog,
    String name,
    boolean isAbstract,
    String subselect,
    Table includedTable) throws MappingException 
 public  void addFilterDefinition(FilterDefinition definition) 
 public  void addImport(String className,
    String rename) throws MappingException 
  void addPropertyReference(String referencedClass,
    String propertyName) 
 public  void addQuery(String name,
    NamedQueryDefinition query) throws MappingException 
 public  void addResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping) 
 public  void addSQLQuery(String name,
    NamedSQLQueryDefinition query) throws MappingException 
 public  void addSecondPass(SecondPass sp) 
 public  void addSecondPass(SecondPass sp,
    boolean onTopOfTheQueue) 
 public Table addTable(String schema,
    String catalog,
    String name,
    String subselect,
    boolean isAbstract) 
 public  void addTableBinding(String schema,
    String catalog,
    String logicalName,
    String physicalName,
    Table denormalizedSuperTable) 
 public  void addToExtendsQueue(ExtendsQueueEntry entry) 
 public  void addTypeDef(String typeName,
    String typeClass,
    Properties paramMap) 
  void addUniquePropertyReference(String referencedClass,
    String propertyName) 
 public String getCatalogName() 
 public PersistentClass getClass(String className) 
 public Collection getCollection(String role) 
 public String getDefaultAccess() 
 public String getDefaultCascade() 
 public String getDefaultPackage() 
 public FilterDefinition getFilterDefinition(String name) 
 public Map getFilterDefinitions() 
 public String getLogicalColumnName(String physicalName,
    Table table) 
 public String getLogicalTableName(Table table) 
 public NamingStrategy getNamingStrategy() 
 public String getPhysicalColumnName(String logicalName,
    Table table) 
 public NamedQueryDefinition getQuery(String name) 
 public ResultSetMappingDefinition getResultSetMapping(String name) 
 public String getSchemaName() 
 public Table getTable(String schema,
    String catalog,
    String name) 
 public TypeDef getTypeDef(String typeName) 
 public boolean isAutoImport() 
    Returns the autoImport.
 public boolean isDefaultLazy() 
 public Iterator iterateCollections() 
 public Iterator iterateTables() 
 public PersistentClass locatePersistentClassByEntityName(String entityName) 
 public  void setAutoImport(boolean autoImport) 
    Sets the autoImport.
 public  void setCatalogName(String catalogName) 
    Sets the catalogName.
 public  void setDefaultAccess(String defaultAccess) 
    sets the default access strategy
 public  void setDefaultCascade(String defaultCascade) 
    Sets the defaultCascade.
 public  void setDefaultLazy(boolean defaultLazy) 
 public  void setDefaultPackage(String defaultPackage) 
 public  void setSchemaName(String schemaName) 
    Sets the schemaName.