public class Oracle11Utils extends Object
|Modifier and Type||Method and Description|
Creates a prepared statement that acts as a null object.
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 queries
tableName- The name of the table that contains the column that should be automatically incremented
columnName- The name of the column that should be automatically incremented
SQLException- if the auto increment statement cannot be created or executed
public static PreparedStatement createNullStatement(Connection connection) throws SQLException
connection- The connection that is used to create the prepared statement
SQLException- if the null statement cannot be created
Copyright © 2010–2022. All rights reserved.