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 intautoGeneratedKeysstatic StringCALLABLE_STATEMENTprotected int[]columnIndexesprotected String[]columnNamesstatic StringPREPARED_STATEMENTprotected intresultSetConcurrencyprotected intresultSetHoldabilityprotected intresultSetTypeprotected Stringsqlprotected StringstatementType
-
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 booleanequals(Object obj)Check for the equality of the CacheObjectKey with the object passed by 1.intgetAutoGeneratedKeys()int[]getColumnIndexes()Get the value of columnIndexesString[]getColumnNames()Get the value of columnNamesintgetResultSetConcurrency()Get the value of resultSetConcurrencyintgetResultSetHoldability()Get the value of resultSetHoldabilityintgetResultSetType()Get the value of resultSetTypeStringgetSql()Get the value of sqlStringgetStatementType()Get the value of statementTypeinthashCode()Generate hashCode for this object using the sql and statementType fieldsvoidsetAutoGeneratedKeys(int autoGeneratedKeys)voidsetColumnIndexes(int[] columnIndexes)Set the value of columnIndexesvoidsetColumnNames(String[] columnNames)Set the value of columnNamesvoidsetResultSetConcurrency(int resultSetConcurrency)Set the value of resultSetConcurrencyvoidsetResultSetHoldability(int resultSetHoldability)Set the value of resultSetHoldabilityvoidsetResultSetType(int resultSetType)Set the value of resultSetTypevoidsetSql(String sql)Set the value of sqlvoidsetStatementType(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
-
-