Repository: commons-dbcp Updated Branches: refs/heads/master d5a244300 -> 0047005da
Javadoc. Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/0047005d Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/0047005d Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/0047005d Branch: refs/heads/master Commit: 0047005da62e887eb4f1784b5890e0aac6ad89b3 Parents: d5a2443 Author: Gary Gregory <garydgreg...@gmail.com> Authored: Tue Jun 12 08:18:24 2018 -0600 Committer: Gary Gregory <garydgreg...@gmail.com> Committed: Tue Jun 12 08:18:24 2018 -0600 ---------------------------------------------------------------------- .../java/org/apache/commons/dbcp2/PStmtKey.java | 36 +++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/0047005d/src/main/java/org/apache/commons/dbcp2/PStmtKey.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/dbcp2/PStmtKey.java b/src/main/java/org/apache/commons/dbcp2/PStmtKey.java index c70c3b6..aba3acc 100644 --- a/src/main/java/org/apache/commons/dbcp2/PStmtKey.java +++ b/src/main/java/org/apache/commons/dbcp2/PStmtKey.java @@ -31,31 +31,51 @@ import org.apache.commons.dbcp2.PoolingConnection.StatementType; */ public class PStmtKey { - /** SQL defining Prepared or Callable Statement */ + /** + * SQL defining Prepared or Callable Statement + */ private final String sql; - /** Result set type */ + /** + * Result set type; one of <code>ResultSet.TYPE_FORWARD_ONLY</code>, <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, + * or <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>. + */ private final Integer resultSetType; - /** Result set concurrency */ + /** + * Result set concurrency. A concurrency type; one of <code>ResultSet.CONCUR_READ_ONLY</code> or + * <code>ResultSet.CONCUR_UPDATABLE</code>. + */ private final Integer resultSetConcurrency; - /** Result set holdability */ + /** + * Result set holdability. One of the following <code>ResultSet</code> constants: + * <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>. + */ private final Integer resultSetHoldability; /** Database catalog */ private final String catalog; - /** Auto generated keys */ + /** + * A flag indicating whether auto-generated keys should be returned; one of + * <code>Statement.RETURN_GENERATED_KEYS</code> or <code>Statement.NO_GENERATED_KEYS</code>. + */ private final Integer autoGeneratedKeys; - /** column indexes */ + /** + * An array of column indexes indicating the columns that should be returned from the inserted row or rows. + */ private final int[] columnIndexes; - /** column names */ + /** + * An array of column names indicating the columns that should be returned from the inserted row or rows. + */ private final String[] columnNames; - /** Statement type */ + /** + * Statement type, prepared or callable. + */ private final StatementType statementType; /** Statement builder */