|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.db.GenericPreparedStatementStub
net.spy.db.CachePreparedStatementStub
public class CachePreparedStatementStub
Prepared statement for executing cached queries
| Constructor Summary | |
|---|---|
CachePreparedStatementStub(SpyDB d,
String query,
long cTime)
Create a CachePreparedStatement object for the given query (you probably don't want to do this directly). |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
equals(Object o)
Equal if two objects have the same hash code, same query, and same parameters. |
ResultSet |
executeQuery()
|
int |
executeUpdate()
|
int |
hashCode()
Get an integer hash code to uniquely identify this object. |
void |
setMaxRows(int to)
Set the max rows for the query return. |
void |
setQueryTimeout(int to)
Set the query timeout. |
| Methods inherited from class net.spy.db.GenericPreparedStatementStub |
|---|
getApplicableArgs, getArgs, getQuery, getTypes, setBigDecimal, setBoolean, setDate, setDouble, setFloat, setInt, setLong, setNull, setObject, setShort, setString, setTime, setTimestamp |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachePreparedStatementStub(SpyDB d,
String query,
long cTime)
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
public ResultSet executeQuery()
throws SQLException
SQLException
public void setQueryTimeout(int to)
throws SQLException
to - the maximum number of seconds
SQLException - if the number is not greater than or equal to 0
public void setMaxRows(int to)
throws SQLException
to - the maximum number of rows to return
SQLException - if the value is not greater than or equal to 0
public int executeUpdate()
throws SQLException
SQLException
public void close()
throws SQLException
close in class GenericPreparedStatementStubSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||