public class Oracle11Utils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static PreparedStatement | 
createNullStatement(Connection connection)
Creates a prepared statement that acts as a null object. 
 | 
static void | 
simulateAutoIncrement(Connection connection,
                     String tableName,
                     String columnName)
Oracle11 does not have auto incremented values. 
 | 
public static void simulateAutoIncrement(Connection connection, String tableName, String columnName) throws SQLException
connection - The connection to the database that will be used to execute the queriestableName - The name of the table that contains the column that should be automatically incrementedcolumnName - The name of the column that should be automatically incrementedSQLException - if the auto increment statement cannot be created or executedpublic static PreparedStatement createNullStatement(Connection connection) throws SQLException
connection - The connection that is used to create the prepared statementSQLException - if the null statement cannot be createdCopyright © 2010–2018. All rights reserved.