|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.common.database.DbPreparedStatement
public class DbPreparedStatement

Class to handle PrepareStatement
| Field Summary | |
|---|---|
boolean |
isReady
Is this PreparedStatement ready |
| Constructor Summary | |
|---|---|
DbPreparedStatement(DbSession ls)
Create a DbPreparedStatement from DbSession object |
|
DbPreparedStatement(DbSession ls,
String request)
Create a DbPreparedStatement from DbSession object and a request |
|
DbPreparedStatement(DbSession ls,
String request,
int nbFetch)
Create a DbPreparedStatement from DbSession object and a request |
|
| Method Summary | |
|---|---|
void |
close()
Close the resultSet if any |
void |
createPrepareStatement(String requestarg)
Create a preparedStatement from request |
void |
executeQuery()
Execute a Select preparedStatement |
int |
executeUpdate()
Execute the Update/Insert/Delete preparedStatement |
DbSession |
getDbSession()
|
boolean |
getNext()
Move the cursor to the next result |
PreparedStatement |
getPreparedStatement()
|
ResultSet |
getResultSet()
|
void |
realClose()
Really close the preparedStatement and the resultSet if any |
void |
recreatePreparedStatement()
In case of closing database connection, it is possible to reopen a long term preparedStatement as it was at creation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean isReady
| Constructor Detail |
|---|
public DbPreparedStatement(DbSession ls)
throws GoldenGateDatabaseNoConnectionException
ls -
GoldenGateDatabaseNoConnectionException
public DbPreparedStatement(DbSession ls,
String request)
throws GoldenGateDatabaseNoConnectionException,
GoldenGateDatabaseSqlException
ls - request -
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlException
public DbPreparedStatement(DbSession ls,
String request,
int nbFetch)
throws GoldenGateDatabaseNoConnectionException,
GoldenGateDatabaseSqlException
ls - request - nbFetch - the number of pre fetch rows
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlException| Method Detail |
|---|
public void createPrepareStatement(String requestarg)
throws GoldenGateDatabaseNoConnectionException,
GoldenGateDatabaseSqlException
requestarg -
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlException
public void recreatePreparedStatement()
throws GoldenGateDatabaseNoConnectionException,
GoldenGateDatabaseSqlException
GoldenGateDatabaseSqlException
GoldenGateDatabaseNoConnectionException
public void executeQuery()
throws GoldenGateDatabaseNoConnectionException,
GoldenGateDatabaseSqlException
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlException
public int executeUpdate()
throws GoldenGateDatabaseNoConnectionException,
GoldenGateDatabaseSqlException
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlExceptionpublic void close()
public void realClose()
public boolean getNext()
throws GoldenGateDatabaseNoConnectionException,
GoldenGateDatabaseSqlException
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlException
public ResultSet getResultSet()
throws GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseNoConnectionException
public PreparedStatement getPreparedStatement()
throws GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseNoConnectionExceptionpublic DbSession getDbSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||