|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.histpop.server.db.PreparedSQLQuery
public class PreparedSQLQuery
This class represents an executable instance of a prepared query Its purpose is to separate out binding parameters from executing a query, so that execution can be made a synchronised method.
Constructor Summary | |
---|---|
PreparedSQLQuery(PreparedSQL psql)
|
Method Summary | |
---|---|
void |
bind(java.lang.Object value)
This method binds the next parameter. |
java.util.Vector |
executeQuery()
This method executes the query using the bound values |
int |
executeUpdate()
This method executes the query using the bound values |
ServerObject |
getFirst()
This method executes the query and returns the first object in the result set. |
void |
setResultType(java.lang.String type)
This methods sets the return type of the result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreparedSQLQuery(PreparedSQL psql) throws ServerException
ServerException
Method Detail |
---|
public void setResultType(java.lang.String type)
public void bind(java.lang.Object value)
public java.util.Vector executeQuery() throws ServerException
ServerException
public int executeUpdate() throws ServerException
ServerException
public ServerObject getFirst() throws ServerException
ServerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |