|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--spo.src.SPDB.dbAdapter.AbstractDatabase
|
+--spo.src.SPDB.dbAdapter.MySQLAdapter
The MySQL db adapter implementation.
| Constructor Summary | |
MySQLAdapter()
|
|
| Method Summary | |
int |
createSequence(DBUtil dbutil,
java.lang.String tableName)
Create a sequence |
int |
dropSequence(DBUtil dbutil,
java.lang.String tableName)
Drop the sequence |
java.lang.String |
getDateTimeFunction()
The MySQL's function name that gets the current date and time from the database server: "sysdate()" |
java.lang.String |
getIsNULLFunction()
The MySQL's function name that is used to return non-NULL value |
java.lang.String |
getStringDelimiter()
The MySQL's string delimiter character: single quote (') |
int |
getUniqueID(DBUtil dbutil,
java.lang.String tableName)
The MySQL unique ID generator through use of the constraint Auto Increment for a unique field(i.e primary key). |
int |
getUniqueRID(DBUtil dbutil,
java.lang.String tableName)
|
| Methods inherited from class spo.src.SPDB.dbAdapter.AbstractDatabase |
createObject, main |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MySQLAdapter()
| Method Detail |
public int createSequence(DBUtil dbutil,
java.lang.String tableName)
throws java.sql.SQLException
AbstractDatabase
createSequence in class AbstractDatabasetableName - name of the table
java.sql.SQLException
public int dropSequence(DBUtil dbutil,
java.lang.String tableName)
throws java.sql.SQLException
AbstractDatabase
dropSequence in class AbstractDatabasetableName - name of the table
java.sql.SQLException
public int getUniqueID(DBUtil dbutil,
java.lang.String tableName)
throws java.sql.SQLException
getUniqueID in class AbstractDatabasetableName - the name of table
java.sql.SQLException
public int getUniqueRID(DBUtil dbutil,
java.lang.String tableName)
throws java.sql.SQLException
getUniqueRID in class AbstractDatabasejava.sql.SQLExceptionpublic java.lang.String getDateTimeFunction()
getDateTimeFunction in class AbstractDatabasepublic java.lang.String getIsNULLFunction()
getIsNULLFunction in class AbstractDatabasepublic java.lang.String getStringDelimiter()
getStringDelimiter in class AbstractDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||