|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.database.dbmodel.HWMDatabaseInfo
com.altair.hwm.database.dbmodel.HWMEmbeddedDBInfo
public class HWMEmbeddedDBInfo
Title: HWMEmbeddedDBInfo
Description: The database info for the Altair's embeddd DB server
Company: Altair Engineering, Inc.
Field Summary |
---|
Fields inherited from class com.altair.hwm.database.dbmodel.HWMDatabaseInfo |
---|
AUTO_ID_TYPE, DBTYPE_ALTAIRQED, DBTYPE_MYSQL, DBTYPE_QED, TYPE_BLOB, TYPE_BOOL, TYPE_CHAR, TYPE_CLOB, TYPE_DATE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_SHORT, TYPE_STRING |
Constructor Summary | |
---|---|
HWMEmbeddedDBInfo(HWMDatabaseInfo hwmDBInfo)
Constructor |
Method Summary | |
---|---|
java.sql.Connection |
ConnectToDB(java.lang.String strURL,
int nPort,
java.lang.String strDBName,
java.lang.String strUser,
java.lang.String strPwd,
boolean bCreate)
Returns a connection to the given database. |
java.lang.String |
GetAutoInc()
Returns the SQL syntax for auto increment |
java.lang.String |
GetDriverID()
Returns the driver ID for the database. |
java.util.Hashtable |
GetTypeMapping()
Returns the hashtable that maps the datamodel's generic types to data types supported by the database |
int |
InsertData(java.sql.Connection cxn,
java.sql.PreparedStatement prepStmt,
java.lang.String strClassName)
Insert data and retrieve the auto generated ID |
int |
RetrieveAutoInc(java.sql.Connection cxn)
Returns the auto inc ID |
int |
RetrieveAutoInc(java.sql.Connection cxn,
java.lang.String strTable)
Returns the auto inc ID |
Methods inherited from class com.altair.hwm.database.dbmodel.HWMDatabaseInfo |
---|
GetDriver, GetTypes, RetrieveAutoInc, RetrieveAutoInc |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMEmbeddedDBInfo(HWMDatabaseInfo hwmDBInfo)
Method Detail |
---|
public int InsertData(java.sql.Connection cxn, java.sql.PreparedStatement prepStmt, java.lang.String strClassName) throws java.lang.Exception
InsertData
in class HWMDatabaseInfo
cxn
- Connection to the database.prepStmt
- The statement to executestrClassName
- The class name into which data is being inserted
java.lang.Exception
public int RetrieveAutoInc(java.sql.Connection cxn) throws java.lang.Exception
cxn
- The connection to the database
java.lang.Exception
public int RetrieveAutoInc(java.sql.Connection cxn, java.lang.String strTable) throws java.lang.Exception
cxn
- The connection to the databasestrTable
- The table name to use
java.lang.Exception
public java.sql.Connection ConnectToDB(java.lang.String strURL, int nPort, java.lang.String strDBName, java.lang.String strUser, java.lang.String strPwd, boolean bCreate) throws java.lang.Exception
ConnectToDB
in class HWMDatabaseInfo
strURL
- The URL to connect/create the DBnPort
- The port to connect to. ignored if set to -1.strDBName
- The database name to connect tostrUser
- The user namestrPwd
- The password for the userbCreate
- If true, the DB get the init packet for DB
creation else DB connection.
java.lang.Exception
public java.util.Hashtable GetTypeMapping()
GetTypeMapping
in class HWMDatabaseInfo
public java.lang.String GetAutoInc()
GetAutoInc
in class HWMDatabaseInfo
public java.lang.String GetDriverID()
GetDriverID
in class HWMDatabaseInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |