A collection of mappings from classes and collections to
relational database tables. (Represents a single
<hibernate-mapping> element.)
autoImport
protected boolean autoImport
auxiliaryDatabaseObjects
protected final List auxiliaryDatabaseObjects
catalogName
protected String catalogName
classes
protected final Map classes
collections
protected final Map collections
columnNameBindingPerTable
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
defaultAccess
protected String defaultAccess
defaultCascade
protected String defaultCascade
defaultLazy
protected boolean defaultLazy
defaultPackage
protected String defaultPackage
extendsQueue
protected final Map extendsQueue
filterDefinitions
protected final Map filterDefinitions
imports
protected final Map imports
propertyReferences
protected final List propertyReferences
queries
protected final Map queries
resultSetMappings
protected final Map resultSetMappings
schemaName
protected String schemaName
secondPasses
protected final List secondPasses
sqlqueries
protected final Map sqlqueries
tableNameBinding
protected final Map tableNameBinding
binding between logical table name and physical one (ie after the naming strategy has been applied)
tables
protected final Map tables
typeDefs
protected final Map typeDefs
addColumnBinding
public void addColumnBinding(String logicalName,
Column finalColumn,
Table table)
addDenormalizedTable
public Table addDenormalizedTable(String schema,
String catalog,
String name,
boolean isAbstract,
String subselect,
Table includedTable)
throws MappingException
addImport
public void addImport(String className,
String rename)
throws MappingException
addSecondPass
public void addSecondPass(SecondPass sp)
addSecondPass
public void addSecondPass(SecondPass sp,
boolean onTopOfTheQueue)
addTable
public Table addTable(String schema,
String catalog,
String name,
String subselect,
boolean isAbstract)
addTableBinding
public void addTableBinding(String schema,
String catalog,
String logicalName,
String physicalName,
Table denormalizedSuperTable)
addTypeDef
public void addTypeDef(String typeName,
String typeClass,
Properties paramMap)
getCatalogName
public String getCatalogName()
getCollection
public Collection getCollection(String role)
getDefaultAccess
public String getDefaultAccess()
getDefaultCascade
public String getDefaultCascade()
getDefaultPackage
public String getDefaultPackage()
- Returns the defaultPackage.
getFilterDefinitions
public Map getFilterDefinitions()
getLogicalColumnName
public String getLogicalColumnName(String physicalName,
Table table)
getLogicalTableName
public String getLogicalTableName(Table table)
getPhysicalColumnName
public String getPhysicalColumnName(String logicalName,
Table table)
getSchemaName
public String getSchemaName()
getTable
public Table getTable(String schema,
String catalog,
String name)
getTypeDef
public TypeDef getTypeDef(String typeName)
isAutoImport
public boolean isAutoImport()
Returns the autoImport.
isDefaultLazy
public boolean isDefaultLazy()
iterateCollections
public Iterator iterateCollections()
iterateTables
public Iterator iterateTables()
locatePersistentClassByEntityName
public PersistentClass locatePersistentClassByEntityName(String entityName)
setAutoImport
public void setAutoImport(boolean autoImport)
Sets the autoImport.
autoImport
- The autoImport to set
setCatalogName
public void setCatalogName(String catalogName)
Sets the catalogName.
catalogName
- The catalogName to set
setDefaultAccess
public void setDefaultAccess(String defaultAccess)
sets the default access strategy
defaultAccess
- the default access strategy.
setDefaultCascade
public void setDefaultCascade(String defaultCascade)
Sets the defaultCascade.
defaultCascade
- The defaultCascade to set
setDefaultLazy
public void setDefaultLazy(boolean defaultLazy)
setDefaultPackage
public void setDefaultPackage(String defaultPackage)
defaultPackage
- The defaultPackage to set.
setSchemaName
public void setSchemaName(String schemaName)
Sets the schemaName.
schemaName
- The schemaName to set