|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.common.database.DbRequest
public class DbRequest
Class to handle request
Constructor Summary | |
---|---|
DbRequest(DbSession ls)
Create a new request from the DbSession |
Method Summary | |
---|---|
void |
close()
Finished a Request (ready for a new one) |
static String |
getIsNull(String value)
Test if value is null and create the string for insert/update |
long |
getLastId()
Get the last ID autoincrement from the last request |
boolean |
getNext()
Move the cursor to the next result |
ResultSet |
getResultSet()
|
int |
query(String query)
Execute a UPDATE/INSERT/DELETE statement and returns the number of row. |
void |
select(String select)
Execute a SELECT statement and set of Result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbRequest(DbSession ls) throws GoldenGateDatabaseNoConnectionException
ls
-
GoldenGateDatabaseNoConnectionException
Method Detail |
---|
public void select(String select) throws GoldenGateDatabaseNoConnectionException, GoldenGateDatabaseSqlException
select
-
GoldenGateDatabaseSqlException
GoldenGateDatabaseNoConnectionException
public int query(String query) throws GoldenGateDatabaseNoConnectionException, GoldenGateDatabaseSqlException
query
-
GoldenGateDatabaseSqlException
GoldenGateDatabaseNoConnectionException
public void close()
public long getLastId() throws GoldenGateDatabaseNoDataException
GoldenGateDatabaseNoDataException
public boolean getNext() throws GoldenGateDatabaseNoConnectionException, GoldenGateDatabaseSqlException
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlException
public ResultSet getResultSet() throws GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseNoConnectionException
public static String getIsNull(String value)
value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |