|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.cfg.Mappings
A collection of mappings from classes and collections to relational database tables. (Represents a single <hibernate-mapping> element.)
Method Summary | |
void |
addCache(String name,
CacheConcurrencyStrategy cache)
|
void |
addClass(PersistentClass persistentClass)
|
void |
addCollection(Collection collection)
|
void |
addImport(String className,
String rename)
|
void |
addQuery(String name,
String query)
|
void |
addSQLQuery(String name,
NamedSQLQuery query)
|
Table |
addTable(String schema,
String name)
|
PersistentClass |
getClass(Class clazz)
|
Collection |
getCollection(String role)
|
String |
getDefaultAccess()
|
String |
getDefaultCascade()
|
String |
getDefaultPackage()
|
NamingStrategy |
getNamingStrategy()
|
String |
getQuery(String name)
|
String |
getSchemaName()
|
Table |
getTable(String schema,
String name)
|
boolean |
isAutoImport()
Returns the autoImport. |
void |
setAutoImport(boolean autoImport)
Sets the autoImport. |
void |
setDefaultAccess(String defaultAccess)
sets the default access strategy |
void |
setDefaultCascade(String defaultCascade)
Sets the defaultCascade. |
void |
setDefaultPackage(String defaultPackage)
|
void |
setSchemaName(String schemaName)
Sets the schemaName. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void addClass(PersistentClass persistentClass) throws MappingException
MappingException
public void addCollection(Collection collection) throws MappingException
MappingException
public PersistentClass getClass(Class clazz)
public Collection getCollection(String role)
public void addImport(String className, String rename) throws MappingException
MappingException
public Table addTable(String schema, String name)
public Table getTable(String schema, String name)
public String getSchemaName()
public String getDefaultCascade()
public void setSchemaName(String schemaName)
schemaName
- The schemaName to setpublic void setDefaultCascade(String defaultCascade)
defaultCascade
- The defaultCascade to setpublic void setDefaultAccess(String defaultAccess)
public String getDefaultAccess()
public void addQuery(String name, String query) throws MappingException
MappingException
public void addSQLQuery(String name, NamedSQLQuery query) throws MappingException
MappingException
public String getQuery(String name)
public boolean isAutoImport()
public void setAutoImport(boolean autoImport)
autoImport
- The autoImport to setpublic void addCache(String name, CacheConcurrencyStrategy cache) throws MappingException
MappingException
public String getDefaultPackage()
public void setDefaultPackage(String defaultPackage)
defaultPackage
- The defaultPackage to set.public NamingStrategy getNamingStrategy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |