|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.colle.sql.schema.RDBMSRuntime
net.sf.colle.sql.mssql.MSSQLRuntime
Implementation of known differences in the MySQL RDBMS system. Created: 22 Feb 2001
| Field Summary |
| Fields inherited from class net.sf.colle.sql.schema.RDBMSRuntime |
ERROR_CONSTRAINT_VIOLATED, ERROR_DUPLICATE_ROW, ERROR_UNKNOWN |
| Constructor Summary | |
MSSQLRuntime()
|
|
| Method Summary | |
void |
createSequence(String psSequenceName,
int pnStartWith,
int pnIncrementBy,
Connection pxConnection)
Create a new sequence. |
void |
dropSequence(String psSequenceName,
Connection pxConnection)
Drop the sequence from the database. |
String |
getDatabaseURL(String psServer,
String psDatabase,
Integer pnPort)
Forms a DBMS specific database URL from the information provided. |
int |
getErrorCode(SQLException pxException)
Return error code (ERROR_*) for SQLException. |
int |
getNextValue(String psSequenceName,
Connection pxConnection)
Request a unique identifier for the following sequence name. |
ResultSet |
getTables(String psTable,
Connection pxConnection)
Wraps calls to DatabaseMetaData.getTables(). |
void |
loadCSVFile(Table pxTable,
String psCSVFile,
Connection pxConnection)
Loads a CSV file into a table. |
String |
mapJDBCType(String psJDBCType,
int pnLength,
boolean pbNullable)
Re-maps JDBC data types to vendor specific data types. |
| Methods inherited from class net.sf.colle.sql.schema.RDBMSRuntime |
getCreatTableSuffix, getInstance, getTruncName, isIndexRequiredOnForeignKey, lockTable, lockTables, unlockTable, unlockTables |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MSSQLRuntime()
| Method Detail |
public int getErrorCode(SQLException pxException)
RDBMSRuntime
getErrorCode in class RDBMSRuntimepxException - SQL Exception
RDBMSRuntime
public ResultSet getTables(String psTable,
Connection pxConnection)
throws SQLException
RDBMSRuntime
getTables in class RDBMSRuntimeSQLExceptionRDBMSRuntime
public void loadCSVFile(Table pxTable,
String psCSVFile,
Connection pxConnection)
RDBMSRuntime
loadCSVFile in class RDBMSRuntimeRDBMSRuntime
public String mapJDBCType(String psJDBCType,
int pnLength,
boolean pbNullable)
RDBMSRuntime
mapJDBCType in class RDBMSRuntimeRDBMSRuntime
public void dropSequence(String psSequenceName,
Connection pxConnection)
RDBMSRuntime
dropSequence in class RDBMSRuntimepsSequenceName - name to sequencepxConnection - database connectionRDBMSRuntime
public void createSequence(String psSequenceName,
int pnStartWith,
int pnIncrementBy,
Connection pxConnection)
RDBMSRuntime
createSequence in class RDBMSRuntimepsSequenceName - name to sequencepnStartWith - starting value of the sequencepnIncrementBy - increment bypxConnection - database connectionRDBMSRuntime
public int getNextValue(String psSequenceName,
Connection pxConnection)
RDBMSRuntime
getNextValue in class RDBMSRuntimepsSequenceName - name to sequencepxConnection - database connection
RDBMSRuntime
public String getDatabaseURL(String psServer,
String psDatabase,
Integer pnPort)
RDBMSRuntime
getDatabaseURL in class RDBMSRuntimepsServer - IP address or computer name of the server. Will not be
null.psDatabase - name of the database. May be null if the application
does not define.pnPort - port number of the server. May be null if the application
does not define.RDBMSRuntime
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||