public class Database
extends java.lang.Object
implements java.io.Serializable
| 构造器和说明 |
|---|
Database(java.lang.String databaseType)
Creates a new instance for the specified database type.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDataBase(Database db)
将一个数据库中的所有表复制到你一个数据库中
|
void |
addDomain(Domain domain) |
Table |
addTable(org.xml.sax.Attributes attrib)
An utility method to add a new table from an xml attribute.
|
void |
addTable(Table tbl)
Add a table to the list and sets the Database property to this Database
|
void |
doFinalInitialization()
Initializes the model.
|
java.lang.String |
getBaseClass()
Get the value of baseClass.
|
java.lang.String |
getBasePeer()
Get the value of basePeer.
|
java.lang.String |
getDatabaseType()
changed by biaoping.yin protected to public
|
java.lang.String |
getDefaultIdMethod()
Get the value of defaultIdMethod.
|
java.lang.String |
getDefaultJavaNamingMethod()
Get the value of defaultJavaNamingMethod which specifies the
method for converting schema names for table and column to Java names.
|
java.lang.String |
getDefaultJavaType()
Get type to use in Java sources (primitive || object)
|
Domain |
getDomain(java.lang.String domainName) |
java.lang.String |
getFileName() |
java.util.Set |
getFileNames() |
java.lang.String |
getName()
Get the name of the Database
|
java.lang.String |
getPackage()
Get the value of package.
|
Platform |
getPlatform()
Returns the Platform implementation for this database.
|
Table |
getTable(java.lang.String name)
Return the table with the specified name.
|
Table |
getTableByJavaName(java.lang.String javaName)
Return the table with the specified javaName.
|
java.util.List |
getTables()
Return an List of all tables
|
boolean |
isHeavyIndexing()
Get the value of heavyIndexing.
|
void |
loadFromXML(org.xml.sax.Attributes attrib)
Load the database object from an xml tag.
|
boolean |
requiresIdTable()
Determines if this database will be using the
IDMethod.ID_BROKER to create ids for torque OM
objects. |
void |
setBaseClass(java.lang.String v)
Set the value of baseClass.
|
void |
setBasePeer(java.lang.String v)
Set the value of basePeer.
|
void |
setDatabaseType(java.lang.String databaseType) |
void |
setDefaultIdMethod(java.lang.String v)
Set the value of defaultIdMethod.
|
void |
setDefaultJavaNamingMethod(java.lang.String v)
Set the value of defaultJavaNamingMethod.
|
void |
setFileName(java.lang.String name) |
void |
setFileNames(java.util.Set names)
添加一批schema文件的名称
|
void |
setHeavyIndexing(boolean v)
Set the value of heavyIndexing.
|
void |
setName(java.lang.String name)
Set the name of the Database
|
void |
setPackage(java.lang.String v)
Set the value of package.
|
java.lang.String |
toString()
Creats a string representation of this Database.
|
public Database(java.lang.String databaseType)
databaseType - The default type for this database.public void loadFromXML(org.xml.sax.Attributes attrib)
attrib - the xml attributespublic java.lang.String getName()
public void setName(java.lang.String name)
name - name of the Databasepublic java.lang.String getFileName()
public java.util.Set getFileNames()
public void setFileName(java.lang.String name)
public void setFileNames(java.util.Set names)
names - Setpublic java.lang.String getPackage()
public void setPackage(java.lang.String v)
v - Value to assign to package.public java.lang.String getBaseClass()
public void setBaseClass(java.lang.String v)
v - Value to assign to baseClass.public java.lang.String getBasePeer()
public void setBasePeer(java.lang.String v)
v - Value to assign to basePeer.public java.lang.String getDefaultIdMethod()
public void setDefaultIdMethod(java.lang.String v)
v - Value to assign to defaultIdMethod.public java.lang.String getDefaultJavaType()
public java.lang.String getDefaultJavaNamingMethod()
public void setDefaultJavaNamingMethod(java.lang.String v)
v - The default naming conversion for this database to use.public boolean isHeavyIndexing()
public void setHeavyIndexing(boolean v)
v - Value to assign to heavyIndexing.public java.util.List getTables()
public Table getTable(java.lang.String name)
name - table namepublic Table getTableByJavaName(java.lang.String javaName)
javaName - name of the java object representing the tablepublic Table addTable(org.xml.sax.Attributes attrib)
attrib - the xml attributespublic void addTable(Table tbl)
tbl - the table to addpublic void addDomain(Domain domain)
public Domain getDomain(java.lang.String domainName)
public java.lang.String getDatabaseType()
public void setDatabaseType(java.lang.String databaseType)
public Platform getPlatform()
public boolean requiresIdTable()
IDMethod.ID_BROKER to create ids for torque OM
objects.IDMethod.ID_BROKER method of generating
ids. returns false otherwise.public void doFinalInitialization()
throws EngineException
EngineExceptionpublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic void addDataBase(Database db)
db - Database