|
||||||||||
| 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.HWMMySQLInfo
public class HWMMySQLInfo
Title: Description: Copyright: Copyright (c) Company:
| 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 | |
|---|---|
HWMMySQLInfo()
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 HWMMySQLInfo()
| 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 HWMDatabaseInfocxn - 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 HWMDatabaseInfostmt - The statement object
java.lang.Exception
public int RetrieveAutoInc(java.sql.Statement stmt,
java.lang.String strTable)
throws java.lang.Exception
RetrieveAutoInc in class HWMDatabaseInfostmt - The statement objectstrTable - The table to retrieve the auto inc from
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 HWMDatabaseInfostrURL - 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.Exceptionpublic java.lang.String GetDriverID()
GetDriverID in class HWMDatabaseInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||