|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourceforge.jxdbcon.AbstractStatement
AbstractStatement implements Statement definining some useful functions.
Field Summary | |
protected List |
batch
|
protected AbstractConnection |
conn
|
protected String |
cursorName
|
protected boolean |
escapeProcessing
|
protected int |
fetchDirection
|
protected int |
fetchSize
|
protected int |
maxFieldSize
|
protected int |
maxRows
|
protected int |
queryTimeout
|
private int |
resultSetConcurrency
|
private int |
resultSetHoldability
|
private int |
resultSetType
|
protected SQLWarning |
warnings
The warnings. |
Fields inherited from interface java.sql.Statement |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Constructor Summary | |
protected |
AbstractStatement(AbstractConnection conn,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
Method Summary | |
void |
addBatch(String sql)
|
void |
cancel()
|
void |
clearBatch()
|
void |
clearWarnings()
|
void |
close()
|
boolean |
execute(String sql,
int autoGeneratedKeys)
autoGeneratedKeys parameter is ignored. |
boolean |
execute(String sql,
int[] columnindexes)
columnindexes parameter is ignored. |
boolean |
execute(String sql,
String[] columnnames)
columnNames parameter is ignored. |
int[] |
executeBatch()
Not supported. |
ResultSet |
executeQuery(String sql)
|
int |
executeUpdate(String sql)
|
int |
executeUpdate(String sql,
int autoGeneratedKeys)
|
int |
executeUpdate(String sql,
int[] columnIndexes)
|
int |
executeUpdate(String sql,
String[] columnNames)
|
void |
finalize()
|
Connection |
getConnection()
|
String |
getCursorName()
|
int |
getFetchDirection()
|
int |
getFetchSize()
|
ResultSet |
getGeneratedKeys()
Not supported. |
int |
getMaxFieldSize()
|
int |
getMaxRows()
|
boolean |
getMoreResults()
|
boolean |
getMoreResults(int current)
|
int |
getQueryTimeout()
|
abstract ResultSet |
getResultSet()
|
int |
getResultSetConcurrency()
|
int |
getResultSetHoldability()
|
int |
getResultSetType()
|
abstract int |
getUpdateCount()
|
SQLWarning |
getWarnings()
|
protected boolean |
isClosed()
|
void |
setCursorName(String cursorName)
|
void |
setEscapeProcessing(boolean enable)
|
void |
setFetchDirection(int direction)
|
void |
setFetchSize(int rows)
|
void |
setMaxFieldSize(int max)
|
void |
setMaxRows(int max)
|
void |
setQueryTimeout(int seconds)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.Statement |
execute |
Field Detail |
protected List batch
protected AbstractConnection conn
protected String cursorName
protected boolean escapeProcessing
protected int fetchDirection
protected int fetchSize
protected int maxFieldSize
protected int maxRows
protected int queryTimeout
private final int resultSetConcurrency
private final int resultSetHoldability
private final int resultSetType
protected SQLWarning warnings
Constructor Detail |
protected AbstractStatement(AbstractConnection conn, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
Method Detail |
public final void addBatch(String sql) throws SQLException
addBatch
in interface Statement
SQLException
public void cancel() throws SQLException
cancel
in interface Statement
SQLException
public final void clearBatch() throws SQLException
clearBatch
in interface Statement
SQLException
public final void clearWarnings()
clearWarnings
in interface Statement
public void close() throws SQLException
close
in interface Statement
SQLException
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, int[] columnindexes) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, String[] columnnames) throws SQLException
execute
in interface Statement
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
SQLException
public final ResultSet executeQuery(String sql) throws SQLException
executeQuery
in interface Statement
SQLException
public final int executeUpdate(String sql) throws SQLException
executeUpdate
in interface Statement
SQLException
public final int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate
in interface Statement
SQLException
public final int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate
in interface Statement
SQLException
public final int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
SQLException
public void finalize() throws Throwable
finalize
in class Object
Throwable
public final Connection getConnection() throws SQLException
getConnection
in interface Statement
SQLException
public final String getCursorName()
public final int getFetchDirection()
getFetchDirection
in interface Statement
public final int getFetchSize()
getFetchSize
in interface Statement
public ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys
in interface Statement
SQLException
public final int getMaxFieldSize() throws SQLException
getMaxFieldSize
in interface Statement
SQLException
public final int getMaxRows() throws SQLException
getMaxRows
in interface Statement
SQLException
public boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
SQLException
public boolean getMoreResults(int current) throws SQLException
getMoreResults
in interface Statement
SQLException
public final int getQueryTimeout() throws SQLException
getQueryTimeout
in interface Statement
SQLException
public abstract ResultSet getResultSet() throws SQLException
getResultSet
in interface Statement
SQLException
public final int getResultSetConcurrency()
getResultSetConcurrency
in interface Statement
public final int getResultSetHoldability()
getResultSetHoldability
in interface Statement
public final int getResultSetType()
getResultSetType
in interface Statement
public abstract int getUpdateCount() throws SQLException
getUpdateCount
in interface Statement
SQLException
public final SQLWarning getWarnings()
getWarnings
in interface Statement
protected boolean isClosed()
public final void setCursorName(String cursorName) throws SQLException
setCursorName
in interface Statement
SQLException
public final void setEscapeProcessing(boolean enable) throws SQLException
setEscapeProcessing
in interface Statement
SQLException
public final void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface Statement
SQLException
public final void setFetchSize(int rows) throws SQLException
setFetchSize
in interface Statement
SQLException
public final void setMaxFieldSize(int max) throws SQLException
setMaxFieldSize
in interface Statement
SQLException
public final void setMaxRows(int max) throws SQLException
setMaxRows
in interface Statement
SQLException
public final void setQueryTimeout(int seconds) throws SQLException
setQueryTimeout
in interface Statement
SQLException
|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |