org.ow2.jonas.resource.internal.cm.sql.cache
Class PreparedStatementMapCacheKey
java.lang.Object
org.ow2.jonas.resource.internal.cm.sql.cache.PreparedStatementMapCacheKey
public class PreparedStatementMapCacheKey
- extends Object
Cache Key for the 'map' policy
- Author:
- pelletib
|
Constructor Summary |
PreparedStatementMapCacheKey(String user,
String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
int autoGeneratedKeys,
int[] columnIndexes,
String[] columnNames,
int hashcode,
org.objectweb.util.monolog.api.Logger logger)
Creates a key object. |
PreparedStatementMapCacheKey
public PreparedStatementMapCacheKey(String user,
String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
int autoGeneratedKeys,
int[] columnIndexes,
String[] columnNames,
int hashcode,
org.objectweb.util.monolog.api.Logger logger)
- Creates a key object.
- Parameters:
user - the user used for accessing the connectionsql - a String object that is the SQL statement to be
sent to the database; may contain one or more ? IN parametersresultSetType - a result set type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEresultSetConcurrency - a concurrency type; one of
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEresultSetHoldability - one of the following ResultSet
constants: ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITautoGeneratedKeys - a flag indicating whether auto-generated keys
should be returned; one of
Statement.RETURN_GENERATED_KEYS or
Statement.NO_GENERATED_KEYScolumnIndexes - an array of column indexes indicating the columns
that should be returned from the inserted row or rowscolumnNames - an array of column names indicating the columns that
should be returned from the inserted row or rowstrace - the logger to use for logging purposeisDebugLogging - if true, log the debug event in the logger
equals
public boolean equals(Object key)
- Overrides:
equals in class Object
- Parameters:
stmt - given statement for comparing it
- Returns:
- true if given object is equals to this current object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2011 OW2 Consortium. All Rights Reserved.