|
||||||||||
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.HWMQEDInfo
public class HWMQEDInfo
Title: HWMQEDInfo
Description: This class will contain the QED related types and syntaxes
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 | |
---|---|
HWMQEDInfo()
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. |
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.Statement stmt)
Returns the auto inc ID |
int |
RetrieveAutoInc(java.sql.Statement stmt,
java.lang.String strTable)
Returns the auto inc ID |
Methods inherited from class com.altair.hwm.database.dbmodel.HWMDatabaseInfo |
---|
GetDriver, GetTypeMapping, GetTypes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMQEDInfo()
Method Detail |
---|
public java.lang.String GetAutoInc()
GetAutoInc
in class HWMDatabaseInfo
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 execute. The same statement object is
used to retrieve the auto incremented IDstrClassName
- The class name into which data is being inserted
java.lang.Exception
public int RetrieveAutoInc(java.sql.Statement stmt) throws java.lang.Exception
RetrieveAutoInc
in class HWMDatabaseInfo
stmt
- The statement object
java.lang.Exception
public int RetrieveAutoInc(java.sql.Statement stmt, java.lang.String strTable) throws java.lang.Exception
RetrieveAutoInc
in class HWMDatabaseInfo
stmt
- The statement objectstrTable
- 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.lang.String GetDriverID()
GetDriverID
in class HWMDatabaseInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |