|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.histpop.server.db.PreparedSQL
public class PreparedSQL
Constructor Summary | |
---|---|
PreparedSQL(java.lang.String name,
java.lang.String query,
SQLRepository db)
This constructor build a prepared SQL query from a query String, using a given repository. |
Method Summary | |
---|---|
void |
bind(java.util.Hashtable values)
|
void |
bind(java.lang.Object[] values)
|
java.util.Vector |
executeQuery()
This method executes the query and returns the resulting list as a Vector of objects whose type is determined by the resultType parameter |
int |
executeUpdate()
This method executes an update query and returns the number of rows updated |
void |
set(int pos,
java.lang.Object value)
|
void |
setResultType(java.lang.String type)
This methods sets the return type of the result |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PreparedSQL(java.lang.String name, java.lang.String query, SQLRepository db) throws ServerException
ServerException
Method Detail |
---|
public void setResultType(java.lang.String type)
public void set(int pos, java.lang.Object value) throws ServerException
ServerException
public int executeUpdate() throws ServerException
ServerException
public java.util.Vector executeQuery() throws ServerException
ServerException
public void bind(java.util.Hashtable values) throws ServerException
ServerException
public void bind(java.lang.Object[] values) throws ServerException
ServerException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |