|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Agent hosts a managed Statement object
Method Summary | |
void |
cancel()
Cancels statement results. |
void |
clearBatch()
Clears the batch of operations. |
void |
clearWarnings()
Clear all SQLWarning objects. |
int[] |
executeBatch()
Executes a batch of SQL statements. |
int |
getFetchDirection()
Returns result set fetch direction. |
int |
getFetchSize()
Returns result set prefetch record count. |
int |
getMaxFieldSize()
Gets the maximum data size for a column. |
int |
getMaxRows()
Gets the maximum number of fetch records in a result set. |
boolean |
getMoreResults()
Checks if there are more result set. |
int |
getQueryTimeout()
Returns query timeout duration. |
ResultSetAgent |
getResultSet()
Returns the result set of last executed statement. |
int |
getResultSetConcurrency()
Returns result set concurrency mode. |
int |
getResultSetType()
Returns result set scroll type. |
int |
getUpdateCount()
Returns the records count of the last executed statement. |
java.sql.SQLWarning |
getWarnings()
Gets the first SQLWarning that has been reported for this object. |
boolean |
isClosed()
Returns the session open status. |
java.lang.String |
queryName()
Retrieves the name of the listener. |
void |
setCursorName(java.lang.String sName)
Sets result set cursor name. |
void |
setEscapeProcessing(boolean bEscape)
Sets escape syntax processing mode. |
void |
setFetchDirection(int iDir)
Sets result set fetch direction. |
void |
setFetchSize(int nSize)
Sets result set prefetch record count. |
void |
setMaxFieldSize(int nSize)
Sets maximum data size for a column. |
void |
setMaxRows(int nRow)
Sets maximum number of fetch records. |
void |
setQueryTimeout(int nInterval)
Sets query timeout duration. |
java.lang.Object |
stmtInvoke(java.lang.String methodName,
java.lang.Class[] argsCls,
java.lang.Object[] args)
Invokes a method of the database Statement object of this ETD. |
Method Detail |
public void cancel() throws java.sql.SQLException
void
- None.java.sql.SQLException
- when SQL problems occur.public void clearBatch() throws java.sql.SQLException
void
- None.java.sql.SQLException
- when SQL problems occur.public void clearWarnings() throws java.sql.SQLException
void
- None.java.sql.SQLException
- when SQL problems occur.public int[] executeBatch() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getFetchDirection() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getFetchSize() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getMaxFieldSize() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getMaxRows() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public boolean getMoreResults() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getQueryTimeout() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public ResultSetAgent getResultSet() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getResultSetConcurrency() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getResultSetType() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public int getUpdateCount() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur.public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
java.sql.SQLException
- when SQL problems occur. when SQL problems occur.public boolean isClosed()
public java.lang.String queryName()
public void setCursorName(java.lang.String sName) throws java.sql.SQLException
sName
- a cursor name.void
- None.java.sql.SQLException
- when SQL problems occur.public void setEscapeProcessing(boolean bEscape) throws java.sql.SQLException
bEscape
- true to enable escape scanning; false otherwise.void
- None.java.sql.SQLException
- when SQL problems occur.public void setFetchDirection(int iDir) throws java.sql.SQLException
iDir
- the fetch direction hint: FETCH_FORWARD, FETCH_REVERSE,
or FETCH_UNKNOWN.void
- None.java.sql.SQLException
- when SQL problems occur.public void setFetchSize(int nSize) throws java.sql.SQLException
nSize
- number of rows to be fetched at a timevoid
- None.java.sql.SQLException
- when SQL problems occur.public void setMaxFieldSize(int nSize) throws java.sql.SQLException
nSize
- the maximum column size limit in bytes; zero
means no limit.void
- None.java.sql.SQLException
- when SQL problems occur.public void setMaxRows(int nRow) throws java.sql.SQLException
nRow
- the maximum number of rows in a result set. zero
means no limit.void
- None.java.sql.SQLException
- when SQL problems occur.public void setQueryTimeout(int nInterval) throws java.sql.SQLException
nInterval
- the query timeout limit in second.java.sql.SQLException
- when SQL problems occur.public java.lang.Object stmtInvoke(java.lang.String methodName, java.lang.Class[] argsCls, java.lang.Object[] args) throws java.lang.Exception
Statement
object of this ETD.
methodName
- the name of the methodargsCls
- Class
array for types of formal arguments for method,
in the declared order. Can be null
if there are no
formal arguments. However, cannot invoke constructor here.args
- Object
array of formal arguments for method in the
declared order. Can be null
if there are no formal
arguments. However, cannot invoke constructor here.Object
instance resulting from the method invocation. Can be
null
if nothing is returned (void
return declaration).java.lang.Exception
- whatever exception the invoked method throws.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2004 by SeeBeyond Technology Corporation. All Rights Reserved.