Class PStmtKeyCPDS
- java.lang.Object
-
- org.apache.tomcat.dbcp.dbcp2.PStmtKey
-
- org.apache.tomcat.dbcp.dbcp2.cpdsadapter.PStmtKeyCPDS
-
-
Constructor Summary
Constructors Constructor Description PStmtKeyCPDS(java.lang.String sql)
Deprecated.Constructs a key to uniquely identify a prepared statement.PStmtKeyCPDS(java.lang.String sql, int autoGeneratedKeys)
Deprecated.Constructs a key to uniquely identify a prepared statement.PStmtKeyCPDS(java.lang.String sql, int[] columnIndexes)
Deprecated.Constructs a key to uniquely identify a prepared statement.PStmtKeyCPDS(java.lang.String sql, int resultSetType, int resultSetConcurrency)
Deprecated.Constructs a key to uniquely identify a prepared statement.PStmtKeyCPDS(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
Deprecated.Constructs a key to uniquely identify a prepared statement.PStmtKeyCPDS(java.lang.String sql, java.lang.String[] columnNames)
Deprecated.Constructs a key to uniquely identify a prepared statement.
-
Method Summary
-
Methods inherited from class org.apache.tomcat.dbcp.dbcp2.PStmtKey
createStatement, equals, getAutoGeneratedKeys, getCatalog, getColumnIndexes, getColumnNames, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSchema, getSql, getStmtType, hashCode, toString
-
-
-
-
Constructor Detail
-
PStmtKeyCPDS
public PStmtKeyCPDS(java.lang.String sql)
Deprecated.Constructs a key to uniquely identify a prepared statement.- Parameters:
sql
- The SQL statement.
-
PStmtKeyCPDS
public PStmtKeyCPDS(java.lang.String sql, int autoGeneratedKeys)
Deprecated.Constructs a key to uniquely identify a prepared statement.- Parameters:
sql
- The SQL statement.autoGeneratedKeys
- A flag indicating whether auto-generated keys should be returned; one ofStatement.RETURN_GENERATED_KEYS
orStatement.NO_GENERATED_KEYS
.
-
PStmtKeyCPDS
public PStmtKeyCPDS(java.lang.String sql, int resultSetType, int resultSetConcurrency)
Deprecated.Constructs a key to uniquely identify a prepared statement.- Parameters:
sql
- The SQL statement.resultSetType
- A result set type; one ofResultSet.TYPE_FORWARD_ONLY
,ResultSet.TYPE_SCROLL_INSENSITIVE
, orResultSet.TYPE_SCROLL_SENSITIVE
.resultSetConcurrency
- A concurrency type; one ofResultSet.CONCUR_READ_ONLY
orResultSet.CONCUR_UPDATABLE
.
-
PStmtKeyCPDS
public PStmtKeyCPDS(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
Deprecated.Constructs a key to uniquely identify a prepared statement.- Parameters:
sql
- The SQL statement.resultSetType
- a result set type; one ofResultSet.TYPE_FORWARD_ONLY
,ResultSet.TYPE_SCROLL_INSENSITIVE
, orResultSet.TYPE_SCROLL_SENSITIVE
.resultSetConcurrency
- A concurrency type; one ofResultSet.CONCUR_READ_ONLY
orResultSet.CONCUR_UPDATABLE
resultSetHoldability
- One of the followingResultSet
constants:ResultSet.HOLD_CURSORS_OVER_COMMIT
orResultSet.CLOSE_CURSORS_AT_COMMIT
.
-
PStmtKeyCPDS
public PStmtKeyCPDS(java.lang.String sql, int[] columnIndexes)
Deprecated.Constructs a key to uniquely identify a prepared statement.- Parameters:
sql
- The SQL statement.columnIndexes
- An array of column indexes indicating the columns that should be returned from the inserted row or rows.
-
PStmtKeyCPDS
public PStmtKeyCPDS(java.lang.String sql, java.lang.String[] columnNames)
Deprecated.Constructs a key to uniquely identify a prepared statement.- Parameters:
sql
- The SQL statement.columnNames
- An array of column names indicating the columns that should be returned from the inserted row or rows.
-
-