|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cfg.Mappings
A collection of mappings from classes and collections to relational database tables. (Represents a single <hibernate-mapping> element.)
Nested Class Summary | |
static class |
Mappings.ColumnNames
|
static class |
Mappings.TableDescription
|
Field Summary | |
protected boolean |
autoImport
|
protected List |
auxiliaryDatabaseObjects
|
protected String |
catalogName
|
protected Map |
classes
|
protected Map |
collections
|
protected Map |
columnNameBindingPerTable
binding table between the logical column name and the name out of the naming strategy for each table. |
protected String |
defaultAccess
|
protected String |
defaultCascade
|
protected boolean |
defaultLazy
|
protected String |
defaultPackage
|
protected Map |
extendsQueue
|
protected Map |
filterDefinitions
|
protected Map |
imports
|
protected NamingStrategy |
namingStrategy
|
protected List |
propertyReferences
|
protected Map |
queries
|
protected Map |
resultSetMappings
|
protected String |
schemaName
|
protected List |
secondPasses
|
protected Map |
sqlqueries
|
protected Map |
tableNameBinding
binding between logical table name and physical one (ie after the naming strategy has been applied) |
protected Map |
tables
|
protected Map |
typeDefs
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Method Detail |
public void addClass(PersistentClass persistentClass) throws MappingException
MappingException
public void addCollection(Collection collection) throws MappingException
MappingException
public PersistentClass getClass(String className)
public Collection getCollection(String role)
public void addImport(String className, String rename) throws MappingException
MappingException
public Table addTable(String schema, String catalog, String name, String subselect, boolean isAbstract)
public Table addDenormalizedTable(String schema, String catalog, String name, boolean isAbstract, String subselect, Table includedTable) throws MappingException
MappingException
public Table getTable(String schema, String catalog, String name)
public String getSchemaName()
public String getCatalogName()
public String getDefaultCascade()
public void setSchemaName(String schemaName)
schemaName
- The schemaName to setpublic void setCatalogName(String catalogName)
catalogName
- The catalogName to setpublic void setDefaultCascade(String defaultCascade)
defaultCascade
- The defaultCascade to setpublic void setDefaultAccess(String defaultAccess)
defaultAccess
- the default access strategy.public String getDefaultAccess()
public void addQuery(String name, NamedQueryDefinition query) throws MappingException
MappingException
public void addSQLQuery(String name, NamedSQLQueryDefinition query) throws MappingException
MappingException
public void addResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping)
public ResultSetMappingDefinition getResultSetMapping(String name)
public NamedQueryDefinition getQuery(String name)
public void addSecondPass(SecondPass sp)
public void addSecondPass(SecondPass sp, boolean onTopOfTheQueue)
public boolean isAutoImport()
public void setAutoImport(boolean autoImport)
autoImport
- The autoImport to setpublic String getDefaultPackage()
public void setDefaultPackage(String defaultPackage)
defaultPackage
- The defaultPackage to set.public NamingStrategy getNamingStrategy()
public void addTypeDef(String typeName, String typeClass, Properties paramMap)
public TypeDef getTypeDef(String typeName)
public Iterator iterateCollections()
public Iterator iterateTables()
public Map getFilterDefinitions()
public void addFilterDefinition(FilterDefinition definition)
public FilterDefinition getFilterDefinition(String name)
public boolean isDefaultLazy()
public void setDefaultLazy(boolean defaultLazy)
public void addToExtendsQueue(ExtendsQueueEntry entry)
public PersistentClass locatePersistentClassByEntityName(String entityName)
public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
public void addTableBinding(String schema, String catalog, String logicalName, String physicalName, Table denormalizedSuperTable)
public void addColumnBinding(String logicalName, Column finalColumn, Table table)
public String getPhysicalColumnName(String logicalName, Table table)
public String getLogicalColumnName(String physicalName, Table table)
public String getLogicalTableName(Table table)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |