|
|||||||||||
| 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.oracle.OracleRuntime
Implementation of known differences in the Oracle 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 | |
OracleRuntime()
|
|
| 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. |
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(). |
String |
getTruncName(String psName)
Truncate a name value to a maximum size for a specific database. |
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, getDatabaseURL, getInstance, 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 OracleRuntime()
| Method Detail |
public int getErrorCode(SQLException pxException)
RDBMSRuntime
getErrorCode in class RDBMSRuntimepxException - SQL Exception
RDBMSRuntimepublic String getTruncName(String psName)
RDBMSRuntime
getTruncName in class RDBMSRuntimepsName - name to be truncated
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)
dropSequence in class RDBMSRuntimepsSequenceName - name to sequencepxConnection - database connection
public void createSequence(String psSequenceName,
int pnStartWith,
int pnIncrementBy,
Connection pxConnection)
createSequence in class RDBMSRuntimepnStartWith - starting value of the sequencepnIncrementBy - increment bypxConnection - database connectionpsSequenceName - name to sequence
public int getNextValue(String psSequenceName,
Connection pxConnection)
getNextValue in class RDBMSRuntimepsSequenceName - name to sequencepxConnection - database connection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||