|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.wsinfra.wsr.storage.impl.WsrQueryHandler
public class WsrQueryHandler
| Constructor Summary | |
|---|---|
WsrQueryHandler(Connection _connection)
|
|
| Method Summary | |
|---|---|
void |
closePreparedStatement(PreparedStatement preparedStatement)
closes the result set objects |
void |
closeResultSet(ResultSet resultSet)
closes the result set objects |
boolean |
getBooleanOfInt(int value)
converts integers into boolean values |
int |
getIntOfBoolean(boolean value)
|
long |
getLongNumber(String query)
returs the value of count that is provided by query the count is maching row numbers query may be : "select count(*) from tablename " |
long[] |
getLongNumbers(ResultSet resultSet)
returns the long values of maching results in an array such as sequence numbers |
PreparedStatement |
getPreparedStatement(String sqlQuery)
executes sql query and returns PreparedStatement |
ResultSet |
getResultSet(PreparedStatement preparedStatement)
executes sql query and returns result set |
String[] |
getStringArray(ResultSet resultSet)
returns the strings of maching results in an array such as sequence numbers |
boolean |
isExistInTable(String query)
checks whether the parameter exists in the table |
static void |
main(String[] args)
|
int |
updateQuery(String sqlQuery)
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement and returns number of rows that are effected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WsrQueryHandler(Connection _connection)
| Method Detail |
|---|
public PreparedStatement getPreparedStatement(String sqlQuery)
throws WsrStorageException
WsrStorageException
public void closePreparedStatement(PreparedStatement preparedStatement)
throws WsrStorageException
WsrStorageException
public ResultSet getResultSet(PreparedStatement preparedStatement)
throws WsrStorageException
WsrStorageException
public void closeResultSet(ResultSet resultSet)
throws WsrStorageException
WsrStorageException
public int updateQuery(String sqlQuery)
throws WsrStorageException
WsrStorageException
public boolean isExistInTable(String query)
throws WsrStorageException
WsrStorageException
public long getLongNumber(String query)
throws WsrStorageException
WsrStorageException
public long[] getLongNumbers(ResultSet resultSet)
throws WsrStorageException
WsrStorageException
public String[] getStringArray(ResultSet resultSet)
throws WsrStorageException
WsrStorageExceptionpublic int getIntOfBoolean(boolean value)
public boolean getBooleanOfInt(int value)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||