|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.nplus1.anduril.server.persistence.BaseQueryCommand
| Field Summary | |
protected java.sql.PreparedStatement |
pstatement
|
protected java.sql.ResultSet |
rowSet
|
| Constructor Summary | |
BaseQueryCommand()
|
|
BaseQueryCommand(java.lang.String sql)
|
|
BaseQueryCommand(java.lang.String dsName,
java.lang.String sql)
|
|
| Method Summary | |
void |
execute()
Execute the query command. |
protected void |
init(java.lang.String sql)
Initialize default db connection and custom query statement. |
protected void |
init(java.lang.String dsName,
java.lang.String sql)
Initialize database connection and query statement. |
boolean |
next()
Move to the next result record. |
void |
release()
Release any resources tied up during execution and/or data retrieval. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.sql.PreparedStatement pstatement
protected java.sql.ResultSet rowSet
| Constructor Detail |
public BaseQueryCommand()
public BaseQueryCommand(java.lang.String sql)
throws QueryCommandException
public BaseQueryCommand(java.lang.String dsName,
java.lang.String sql)
throws QueryCommandException
| Method Detail |
protected void init(java.lang.String dsName,
java.lang.String sql)
throws QueryCommandException
QueryCommandException
protected void init(java.lang.String sql)
throws QueryCommandException
QueryCommandException
public void execute()
throws QueryCommandException
QueryCommandException
public boolean next()
throws QueryCommandException
QueryCommandException
public void release()
throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||