Package com.alibaba.druid.pool
Class DruidPooledPreparedStatement.PreparedStatementKey
- java.lang.Object
-
- com.alibaba.druid.pool.DruidPooledPreparedStatement.PreparedStatementKey
-
- Enclosing class:
- DruidPooledPreparedStatement
public static class DruidPooledPreparedStatement.PreparedStatementKey extends Object
-
-
Field Summary
Fields Modifier and Type Field Description intautoGeneratedKeysprotected Stringcatalogprotected PreparedStatementPool.MethodTypemethodTypeintresultSetConcurrencyintresultSetHoldabilityintresultSetTypeprotected Stringsql
-
Constructor Summary
Constructors Constructor Description PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType)PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int autoGeneratedKeys)PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int[] columnIndexes)PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int resultSetType, int resultSetConcurrency)PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int resultSetType, int resultSetConcurrency, int resultSetHoldability)PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, int[] columnIndexes, String[] columnNames)PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, String[] columnNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)intgetResultSetConcurrency()intgetResultSetHoldability()intgetResultSetType()StringgetSql()inthashCode()
-
-
-
Field Detail
-
sql
protected final String sql
-
catalog
protected final String catalog
-
methodType
protected final PreparedStatementPool.MethodType methodType
-
resultSetType
public final int resultSetType
-
resultSetConcurrency
public final int resultSetConcurrency
-
resultSetHoldability
public final int resultSetHoldability
-
autoGeneratedKeys
public final int autoGeneratedKeys
-
-
Constructor Detail
-
PreparedStatementKey
public PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType) throws SQLException
- Throws:
SQLException
-
PreparedStatementKey
public PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int resultSetType, int resultSetConcurrency) throws SQLException
- Throws:
SQLException
-
PreparedStatementKey
public PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
- Throws:
SQLException
-
PreparedStatementKey
public PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int autoGeneratedKeys) throws SQLException
- Throws:
SQLException
-
PreparedStatementKey
public PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int[] columnIndexes) throws SQLException
- Throws:
SQLException
-
PreparedStatementKey
public PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, String[] columnNames) throws SQLException
- Throws:
SQLException
-
PreparedStatementKey
public PreparedStatementKey(String sql, String catalog, PreparedStatementPool.MethodType methodType, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, int[] columnIndexes, String[] columnNames) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
getResultSetType
public int getResultSetType()
-
getResultSetConcurrency
public int getResultSetConcurrency()
-
getResultSetHoldability
public int getResultSetHoldability()
-
getSql
public String getSql()
-
-