public class CacheObjectKey extends Object
| Modifier and Type | Field and 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 and 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) |
| Modifier and Type | Method and 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 columnIndexes
|
String[] |
getColumnNames()
Get the value of columnNames
|
int |
getResultSetConcurrency()
Get the value of resultSetConcurrency
|
int |
getResultSetHoldability()
Get the value of resultSetHoldability
|
int |
getResultSetType()
Get the value of resultSetType
|
String |
getSql()
Get the value of sql
|
String |
getStatementType()
Get the value of statementType
|
int |
hashCode()
Generate hashCode for this object using the sql and statementType fields
|
void |
setAutoGeneratedKeys(int autoGeneratedKeys) |
void |
setColumnIndexes(int[] columnIndexes)
Set the value of columnIndexes
|
void |
setColumnNames(String[] columnNames)
Set the value of columnNames
|
void |
setResultSetConcurrency(int resultSetConcurrency)
Set the value of resultSetConcurrency
|
void |
setResultSetHoldability(int resultSetHoldability)
Set the value of resultSetHoldability
|
void |
setResultSetType(int resultSetType)
Set the value of resultSetType
|
void |
setSql(String sql)
Set the value of sql
|
void |
setStatementType(String statementType)
Set the value of statementType
|
public static final String CALLABLE_STATEMENT
public static final String PREPARED_STATEMENT
protected String sql
protected String statementType
protected int resultSetType
protected int resultSetConcurrency
protected int resultSetHoldability
protected int autoGeneratedKeys
protected int[] columnIndexes
protected String[] columnNames
public CacheObjectKey(String sql, String statementType, int resultSetType, int resultSetConcurrency)
public CacheObjectKey(String sql, String statementType, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
public CacheObjectKey()
public String[] getColumnNames()
public void setColumnNames(String[] columnNames)
columnNames - new value of columnNamespublic int[] getColumnIndexes()
public void setColumnIndexes(int[] columnIndexes)
columnIndexes - new value of columnIndexespublic int getAutoGeneratedKeys()
public void setAutoGeneratedKeys(int autoGeneratedKeys)
public int getResultSetConcurrency()
public void setResultSetConcurrency(int resultSetConcurrency)
resultSetConcurrency - new value of resultSetConcurrencypublic int getResultSetType()
public void setResultSetType(int resultSetType)
resultSetType - new value of resultSetTypepublic int getResultSetHoldability()
public void setResultSetHoldability(int resultSetHoldability)
resultSetHoldability - new value of resultSetHoldabilitypublic boolean equals(Object obj)
public int hashCode()
public String getStatementType()
public void setStatementType(String statementType)
statementType - new value of statementTypepublic String getSql()
public void setSql(String sql)
sql - new value of sqlCopyright © 2017. All rights reserved.