java.util.Map
object to install
+ * @param map the java.util.Map
object to install
* as the replacement for this Connection
* object's default type map
* @since 1.2
@@ -398,8 +398,280 @@ class WrappedConnection implements Connection
} // end setTypeMap
+ /**
+ * Changes the holdability of ResultSet
objects created using this Connection
+ * object to the given holdability.
+ *
+ * @param holdability a ResultSet
holdability constant; one of
+ * ResultSet.HOLD_CURSORS_OVER_COMMIT
or
+ * ResultSet.CLOSE_CURSORS_AT_COMMIT
+ * @exception java.sql.SQLException if a database access occurs, the given parameter is not a ResultSet
+ * constant indicating holdability, or the given holdability is not supported
+ * @since 1.4
+ * @see #getHoldability()
+ * @see java.sql.ResultSet
+ */
+ public void setHoldability(int holdability) throws SQLException
+ {
+ conn.setHoldability(holdability);
+
+ } // end setHoldability
+
+ /**
+ * Retrieves the current holdability of ResultSet
objects created using this Connection
+ * object.
+ *
+ * @return the holdability, one of ResultSet.HOLD_CURSORS_OVER_COMMIT
or
+ * ResultSet.CLOSE_CURSORS_AT_COMMIT
+ * @exception java.sql.SQLException if a database access occurs
+ * @since 1.4
+ * @see #setHoldability(int)
+ * @see java.sql.ResultSet
+ */
+ public int getHoldability() throws SQLException
+ {
+ return conn.getHoldability();
+
+ } // end getHoldability
+
+ /**
+ * Creates an unnamed savepoint in the current transaction and returns the new Savepoint
object that
+ * represents it.
+ *
+ * @return the new Savepoint
object
+ * @exception java.sql.SQLException if a database access error occurs or this Connection
object is
+ * currently in auto-commit mode
+ * @since 1.4
+ * @see java.sql.Savepoint
+ */
+ public Savepoint setSavepoint() throws SQLException
+ {
+ return conn.setSavepoint();
+
+ } // end setSavepoint
+
+ /**
+ * Creates a savepoint with the given name in the current transaction and returns the new Savepoint
+ * object that represents it.
+ *
+ * @param name a String
containing the name of the savepoint
+ * @return the new Savepoint
object
+ * @exception java.sql.SQLException if a database access error occurs or this Connection
object is
+ * currently in auto-commit mode
+ * @since 1.4
+ * @see java.sql.Savepoint
+ */
+ public Savepoint setSavepoint(String name) throws SQLException
+ {
+ return conn.setSavepoint(name);
+
+ } // end setSavepoint
+
+ /**
+ * Undoes all changes made after the given Savepoint
object was set.
+ * This method should be used only when auto-commit has been disabled.
+ *
+ * @param savepoint the Savepoint
object to roll back to
+ * @exception java.sql.SQLException if a database access error occurs, the ZSavepoint
object is
+ * no longer valid, or this Connection
object is currently in auto-commit mode
+ * @since 1.4
+ * @see java.sql.Savepoint
+ * @see #rollback()
+ */
+ public void rollback(Savepoint savepoint) throws SQLException
+ {
+ conn.rollback(savepoint);
+
+ } // end rollback
+
+ /**
+ * Removes the given Savepoint
object from the current transaction. Any reference to the savepoint
+ * after it have been removed will cause an SQLException
to be thrown.
+ *
+ * @param savepoint the Savepoint
object to be removed
+ * @exception java.sql.SQLException if a database access error occurs or the given Savepoint
object
+ * is not a valid savepoint in the current transaction
+ * @since 1.4
+ */
+ public void releaseSavepoint(Savepoint savepoint) throws SQLException
+ {
+ conn.releaseSavepoint(savepoint);
+
+ } // end releaseSavepoint
+
+ /**
+ * Creates a Statement
object that will generate ResultSet
objects with the given type,
+ * concurrency, and holdability. This method is the same as the createStatement
method above, but it
+ * allows the default result set type, concurrency, and holdability to be overridden.
+ *
+ * @param resultSetType one of the following ResultSet
constants:
+ * ResultSet.TYPE_FORWARD_ONLY
, ResultSet.TYPE_SCROLL_INSENSITIVE
,
+ * or ResultSet.TYPE_SCROLL_SENSITIVE
+ * @param resultSetConcurrency one of the following ResultSet
constants:
+ * ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLE
+ * @param resultSetHoldability one of the following ResultSet
constants:
+ * ResultSet.HOLD_CURSORS_OVER_COMMIT
or
+ * ResultSet.CLOSE_CURSORS_AT_COMMIT
+ * @return a new Statement
object that will generate ResultSet
objects with the given
+ * type, concurrency, and holdability
+ * @exception java.sql.SQLException if a database access error occurs or the given parameters are not
+ * ResultSet
constants indicating type, concurrency, and holdability
+ * @since 1.4
+ * @see java.sql.ResultSet
+ */
+ public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
+ throws SQLException
+ {
+ return conn.createStatement(resultSetType,resultSetConcurrency,resultSetHoldability);
+
+ } // end createStatement
+
+ /**
+ * Creates a PreparedStatement
object that will generate ResultSet
objects with the
+ * given type, concurrency, and holdability.
+ * This method is the same as the prepareStatement
method above, but it allows the default result
+ * set type, concurrency, and holdability to be overridden.
+ *
+ * @param sql a String
object that is the SQL statement to be sent to the database; may contain one
+ * or more ? IN parameters
+ * @param resultSetType one of the following ResultSet
constants:
+ * ResultSet.TYPE_FORWARD_ONLY
, ResultSet.TYPE_SCROLL_INSENSITIVE
,
+ * or ResultSet.TYPE_SCROLL_SENSITIVE
+ * @param resultSetConcurrency one of the following ResultSet
constants:
+ * ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLE
+ * @param resultSetHoldability one of the following ResultSet
constants:
+ * ResultSet.HOLD_CURSORS_OVER_COMMIT
or
+ * ResultSet.CLOSE_CURSORS_AT_COMMIT
+ * @return a new PreparedStatement
object, containing the pre-compiled SQL statement, that will
+ * generate ResultSet
objects with the given type, concurrency, and holdability
+ * @exception java.sql.SQLException if a database access error occurs or the given parameters are not
+ * ResultSet
constants indicating type, concurrency, and holdability
+ * @since 1.4
+ * @see java.sql.ResultSet
+ */
+ public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency,
+ int resultSetHoldability) throws SQLException
+ {
+ return conn.prepareStatement(sql,resultSetType,resultSetConcurrency,resultSetHoldability);
+
+ } // end prepareStatement
+
+ /**
+ * Creates a CallableStatement
object that will generate ResultSet
objects with the
+ * given type and concurrency. This method is the same as the prepareCall
method above, but it
+ * allows the default result set type, result set concurrency type and holdability to be overridden.
+ *
+ * @param sql a String
object that is the SQL statement to be sent to the database; may contain one
+ * or more ? parameters
+ * @param resultSetType one of the following ResultSet
constants:
+ * ResultSet.TYPE_FORWARD_ONLY
, ResultSet.TYPE_SCROLL_INSENSITIVE
,
+ * or ResultSet.TYPE_SCROLL_SENSITIVE
+ * @param resultSetConcurrency one of the following ResultSet
constants:
+ * ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLE
+ * @param resultSetHoldability one of the following ResultSet
constants:
+ * ResultSet.HOLD_CURSORS_OVER_COMMIT
or
+ * ResultSet.CLOSE_CURSORS_AT_COMMIT
+ * @return a new CallableStatement
object, containing the pre-compiled SQL statement, that will
+ * generate ResultSet
objects with the given type, concurrency, and holdability
+ * @exception java.sql.SQLException if a database access error occurs or the given parameters are not
+ * ResultSet
constants indicating type, concurrency, and holdability
+ * @since 1.4
+ * @see java.sql.ResultSet
+ */
+ public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency,
+ int resultSetHoldability) throws SQLException
+ {
+ return conn.prepareCall(sql,resultSetType,resultSetConcurrency,resultSetHoldability);
+
+ } // end prepareCall
+
+ /**
+ * Creates a default PreparedStatement
object that has the capability to retrieve auto-generated
+ * keys. The given constant tells the driver whether it should make auto-generated keys available for retrieval.
+ * This parameter is ignored if the SQL statement is not an INSERT
statement.
+ * Note: This method is optimized for handling parametric SQL statements that benefit from precompilation.
+ * If the driver supports precompilation, the method prepareStatement
will send the statement to the
+ * database for precompilation. Some drivers may not support precompilation. In this case, the statement may not
+ * be sent to the database until the PreparedStatement
object is executed. This has no direct effect
+ * on users; however, it does affect which methods throw certain SQLException
s.
+ * Result sets created using the returned PreparedStatement
object will by default be type
+ * TYPE_FORWARD_ONLY
and have a concurrency level of CONCUR_READ_ONLY
.
+ *
+ * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders
+ * @param autoGeneratedKeys a flag indicating whether auto-generated keys should be returned; one of
+ * Statement.RETURN_GENERATED_KEYS
or Statement.NO_GENERATED_KEYS
+ * @return a new PreparedStatement
object, containing the pre-compiled SQL statement, that will
+ * generate ResultSet
objects with the given type, concurrency, and holdability
+ * @exception java.sql.SQLException if a database access error occurs or the given parameter is not a
+ * Statement
constant indicating whether auto-generated keys should be returned
+ * @since 1.4
+ */
+ public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
+ {
+ return conn.prepareStatement(sql,autoGeneratedKeys);
+
+ } // end prepareStatement
+
+ /**
+ * Creates a default PreparedStatement
object capable of returning the auto-generated keys designated
+ * by the given array. This array contains the indexes of the columns in the target table that contain the
+ * auto-generated keys that should be made available. This array is ignored if the SQL statement is not an
+ * INSERT
statement.
+ * An SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement
+ * object. This object can then be used to efficiently execute this statement multiple times.
+ * Note: This method is optimized for handling parametric SQL statements that benefit from precompilation.
+ * If the driver supports precompilation, the method prepareStatement
will send the statement to the
+ * database for precompilation. Some drivers may not support precompilation. In this case, the statement may not
+ * be sent to the database until the PreparedStatement
object is executed. This has no direct effect
+ * on users; however, it does affect which methods throw certain SQLException
s.
+ * Result sets created using the returned PreparedStatement
object will by default be type
+ * TYPE_FORWARD_ONLY
and have a concurrency level of CONCUR_READ_ONLY
.
+ *
+ * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders
+ * @param columnIndexes an array of column indexes indicating the columns that should be returned from the
+ * inserted row or rows
+ * @return a new PreparedStatement
object, containing the pre-compiled statement, that is capable
+ * of returning the auto-generated keys designated by the given array of column indexes
+ * @exception java.sql.SQLException if a database access error occurs
+ * @since 1.4
+ */
+ public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
+ {
+ return conn.prepareStatement(sql,columnIndexes);
+
+ } // end prepareStatement
+
+ /**
+ * Creates a default PreparedStatement
object capable of returning the auto-generated keys designated
+ * by the given array. This array contains the names of the columns in the target table that contain the
+ * auto-generated keys that should be returned. This array is ignored if the SQL statement is not an
+ * INSERT
statement.
+ * An SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement
+ * object. This object can then be used to efficiently execute this statement multiple times.
+ * Note: This method is optimized for handling parametric SQL statements that benefit from precompilation.
+ * If the driver supports precompilation, the method prepareStatement
will send the statement to the
+ * database for precompilation. Some drivers may not support precompilation. In this case, the statement may not
+ * be sent to the database until the PreparedStatement
object is executed. This has no direct effect
+ * on users; however, it does affect which methods throw certain SQLException
s.
+ * Result sets created using the returned PreparedStatement
object will by default be type
+ * TYPE_FORWARD_ONLY
and have a concurrency level of CONCUR_READ_ONLY
.
+ *
+ * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders
+ * @param columnNames an array of column names indicating the columns that should be returned from the inserted
+ * row or rows
+ * @return a new PreparedStatement
object, containing the pre-compiled statement, that is capable
+ * of returning the auto-generated keys designated by the given array of column names
+ * @exception java.sql.SQLException if a database access error occurs
+ * @since 1.4
+ */
+ public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
+ {
+ return conn.prepareStatement(sql,columnNames);
+
+ } // end prepareStatement
+
/*--------------------------------------------------------------------------------
- * Attributes
+ * External operations
*--------------------------------------------------------------------------------
*/
diff --git a/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java b/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java
index 31c00cb..1fe22ec 100644
--- a/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java
+++ b/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java
@@ -11,7 +11,7 @@
*
* The Initial Developer of the Original Code is Eric J. Bowersox