Package com.sun.gjc.spi.base
Class CacheObjectKey
- java.lang.Object
-
- com.sun.gjc.spi.base.CacheObjectKey
-
public class CacheObjectKey extends Object
- Author:
- Shalini M
-
-
Field Summary
Fields Modifier and Type Field Description protected int
autoGeneratedKeys
static String
CALLABLE_STATEMENT
protected int[]
columnIndexes
protected String[]
columnNames
static String
PREPARED_STATEMENT
protected int
resultSetConcurrency
protected int
resultSetHoldability
protected int
resultSetType
protected String
sql
protected String
statementType
-
Constructor Summary
Constructors Constructor Description CacheObjectKey()
CacheObjectKey(String sql, String statementType, int autoGeneratedKeys)
CacheObjectKey(String sql, String statementType, int[] columnIndexes)
CacheObjectKey(String sql, String statementType, int resultSetType, int resultSetConcurrency)
CacheObjectKey(String sql, String statementType, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
CacheObjectKey(String sql, String statementType, String[] columnNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Check for the equality of the CacheObjectKey with the object passed by 1.int
getAutoGeneratedKeys()
int[]
getColumnIndexes()
Get the value of columnIndexesString[]
getColumnNames()
Get the value of columnNamesint
getResultSetConcurrency()
Get the value of resultSetConcurrencyint
getResultSetHoldability()
Get the value of resultSetHoldabilityint
getResultSetType()
Get the value of resultSetTypeString
getSql()
Get the value of sqlString
getStatementType()
Get the value of statementTypeint
hashCode()
Generate hashCode for this object using the sql and statementType fieldsvoid
setAutoGeneratedKeys(int autoGeneratedKeys)
void
setColumnIndexes(int[] columnIndexes)
Set the value of columnIndexesvoid
setColumnNames(String[] columnNames)
Set the value of columnNamesvoid
setResultSetConcurrency(int resultSetConcurrency)
Set the value of resultSetConcurrencyvoid
setResultSetHoldability(int resultSetHoldability)
Set the value of resultSetHoldabilityvoid
setResultSetType(int resultSetType)
Set the value of resultSetTypevoid
setSql(String sql)
Set the value of sqlvoid
setStatementType(String statementType)
Set the value of statementType
-
-
-
Field Detail
-
CALLABLE_STATEMENT
public static final String CALLABLE_STATEMENT
- See Also:
- Constant Field Values
-
PREPARED_STATEMENT
public static final String PREPARED_STATEMENT
- See Also:
- Constant Field Values
-
sql
protected String sql
-
statementType
protected String statementType
-
resultSetType
protected int resultSetType
-
resultSetConcurrency
protected int resultSetConcurrency
-
resultSetHoldability
protected int resultSetHoldability
-
autoGeneratedKeys
protected int autoGeneratedKeys
-
columnIndexes
protected int[] columnIndexes
-
columnNames
protected String[] columnNames
-
-
Constructor Detail
-
CacheObjectKey
public CacheObjectKey(String sql, String statementType, int resultSetType, int resultSetConcurrency)
-
CacheObjectKey
public CacheObjectKey(String sql, String statementType, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
CacheObjectKey
public CacheObjectKey()
-
-
Method Detail
-
getColumnNames
public String[] getColumnNames()
Get the value of columnNames- Returns:
- the value of columnNames
-
setColumnNames
public void setColumnNames(String[] columnNames)
Set the value of columnNames- Parameters:
columnNames
- new value of columnNames
-
getColumnIndexes
public int[] getColumnIndexes()
Get the value of columnIndexes- Returns:
- the value of columnIndexes
-
setColumnIndexes
public void setColumnIndexes(int[] columnIndexes)
Set the value of columnIndexes- Parameters:
columnIndexes
- new value of columnIndexes
-
getAutoGeneratedKeys
public int getAutoGeneratedKeys()
-
setAutoGeneratedKeys
public void setAutoGeneratedKeys(int autoGeneratedKeys)
-
getResultSetConcurrency
public int getResultSetConcurrency()
Get the value of resultSetConcurrency- Returns:
- the value of resultSetConcurrency
-
setResultSetConcurrency
public void setResultSetConcurrency(int resultSetConcurrency)
Set the value of resultSetConcurrency- Parameters:
resultSetConcurrency
- new value of resultSetConcurrency
-
getResultSetType
public int getResultSetType()
Get the value of resultSetType- Returns:
- the value of resultSetType
-
setResultSetType
public void setResultSetType(int resultSetType)
Set the value of resultSetType- Parameters:
resultSetType
- new value of resultSetType
-
getResultSetHoldability
public int getResultSetHoldability()
Get the value of resultSetHoldability- Returns:
- the value of resultSetHoldability
-
setResultSetHoldability
public void setResultSetHoldability(int resultSetHoldability)
Set the value of resultSetHoldability- Parameters:
resultSetHoldability
- new value of resultSetHoldability
-
equals
public boolean equals(Object obj)
Check for the equality of the CacheObjectKey with the object passed by 1. comparing the sql string values 2. comparing the statement type values 3. comapring the getClass() values
-
hashCode
public int hashCode()
Generate hashCode for this object using the sql and statementType fields
-
getStatementType
public String getStatementType()
Get the value of statementType- Returns:
- the value of statementType
-
setStatementType
public void setStatementType(String statementType)
Set the value of statementType- Parameters:
statementType
- new value of statementType
-
getSql
public String getSql()
Get the value of sql- Returns:
- the value of sql
-
setSql
public void setSql(String sql)
Set the value of sql- Parameters:
sql
- new value of sql
-
-