|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 RDBMSRuntime
pxException
- SQL Exception
RDBMSRuntime
public String getTruncName(String psName)
RDBMSRuntime
getTruncName
in class RDBMSRuntime
psName
- name to be truncated
RDBMSRuntime
public ResultSet getTables(String psTable, Connection pxConnection) throws SQLException
RDBMSRuntime
getTables
in class RDBMSRuntime
SQLException
RDBMSRuntime
public void loadCSVFile(Table pxTable, String psCSVFile, Connection pxConnection)
RDBMSRuntime
loadCSVFile
in class RDBMSRuntime
RDBMSRuntime
public String mapJDBCType(String psJDBCType, int pnLength, boolean pbNullable)
RDBMSRuntime
mapJDBCType
in class RDBMSRuntime
RDBMSRuntime
public void dropSequence(String psSequenceName, Connection pxConnection)
dropSequence
in class RDBMSRuntime
psSequenceName
- name to sequencepxConnection
- database connectionpublic void createSequence(String psSequenceName, int pnStartWith, int pnIncrementBy, Connection pxConnection)
createSequence
in class RDBMSRuntime
pnStartWith
- starting value of the sequencepnIncrementBy
- increment bypxConnection
- database connectionpsSequenceName
- name to sequencepublic int getNextValue(String psSequenceName, Connection pxConnection)
getNextValue
in class RDBMSRuntime
psSequenceName
- name to sequencepxConnection
- database connection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |