|
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 StatementSQLException
public void cancel()
throws SQLException
cancel in interface StatementSQLException
public final void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic final void clearWarnings()
clearWarnings in interface Statement
public void close()
throws SQLException
close in interface StatementSQLException
public boolean execute(String sql,
int autoGeneratedKeys)
throws SQLException
execute in interface StatementSQLException
public boolean execute(String sql,
int[] columnindexes)
throws SQLException
execute in interface StatementSQLException
public boolean execute(String sql,
String[] columnnames)
throws SQLException
execute in interface StatementSQLException
public int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLException
public final ResultSet executeQuery(String sql)
throws SQLException
executeQuery in interface StatementSQLException
public final int executeUpdate(String sql)
throws SQLException
executeUpdate in interface StatementSQLException
public final int executeUpdate(String sql,
int autoGeneratedKeys)
throws SQLException
executeUpdate in interface StatementSQLException
public final int executeUpdate(String sql,
int[] columnIndexes)
throws SQLException
executeUpdate in interface StatementSQLException
public final int executeUpdate(String sql,
String[] columnNames)
throws SQLException
executeUpdate in interface StatementSQLException
public void finalize()
throws Throwable
finalize in class ObjectThrowable
public final Connection getConnection()
throws SQLException
getConnection in interface StatementSQLExceptionpublic final String getCursorName()
public final int getFetchDirection()
getFetchDirection in interface Statementpublic final int getFetchSize()
getFetchSize in interface Statement
public ResultSet getGeneratedKeys()
throws SQLException
getGeneratedKeys in interface StatementSQLException
public final int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLException
public final int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLException
public boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLException
public boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementSQLException
public final int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLException
public abstract ResultSet getResultSet()
throws SQLException
getResultSet in interface StatementSQLExceptionpublic final int getResultSetConcurrency()
getResultSetConcurrency in interface Statementpublic final int getResultSetHoldability()
getResultSetHoldability in interface Statementpublic final int getResultSetType()
getResultSetType in interface Statement
public abstract int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic final SQLWarning getWarnings()
getWarnings in interface Statementprotected boolean isClosed()
public final void setCursorName(String cursorName)
throws SQLException
setCursorName in interface StatementSQLException
public final void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementSQLException
public final void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLException
public final void setFetchSize(int rows)
throws SQLException
setFetchSize in interface StatementSQLException
public final void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize in interface StatementSQLException
public final void setMaxRows(int max)
throws SQLException
setMaxRows in interface StatementSQLException
public final void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementSQLException
|
jxDBCon 0.9z | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||