|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbr.ufg.integrate.wrapper.jdbc.IntegrateStatement
br.ufg.integrate.wrapper.jdbc.impl.StatementImpl
br.ufg.integrate.wrapper.csv.CsvStatement
public class CsvStatement
This class implements the Statement interface for the CsvJdbc driver.
Field Summary | |
---|---|
protected int |
isScrollable
|
Fields inherited from class br.ufg.integrate.wrapper.jdbc.impl.StatementImpl |
---|
conn |
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 |
CsvStatement(CsvConnection connection)
|
protected |
CsvStatement(CsvConnection connection,
int isScrollable)
Constructor for the CsvStatement object |
Method Summary | |
---|---|
void |
close()
Releases this Statement object's database
and JDBC resources immediately instead of waiting for
this to happen when it is automatically closed. |
boolean |
execute(String arg0)
Implements method in interface java.sql.Statement |
ResultSet |
executeQuery(String sql)
Implements method in interface java.sql.Statement |
int |
executeUpdate(String arg0)
Implements method in interface java.sql.Statement |
Connection |
getConnection()
Gets the connection attribute of the CsvStatement object |
Methods inherited from class br.ufg.integrate.wrapper.jdbc.impl.StatementImpl |
---|
addBatch, cancel, clearBatch, clearWarnings, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int isScrollable
Constructor Detail |
---|
protected CsvStatement(CsvConnection connection) throws SQLException
SQLException
protected CsvStatement(CsvConnection connection, int isScrollable) throws SQLException
connection
- Description of Parameter
SQLException
Method Detail |
---|
public void close() throws SQLException
Statement
object's database
and JDBC resources immediately instead of waiting for
this to happen when it is automatically closed.
It is generally good practice to release resources as soon as
you are finished with them to avoid tying up database
resources.
Calling the method close
on a Statement
object that is already closed has no effect.
Note: A Statement
object is automatically closed
when it is garbage collected. When a Statement
object is
closed, its current ResultSet
object, if one exists, is
also closed.
close
in interface Statement
close
in class StatementImpl
SQLException
- if a database access error occursStatement.close()
public boolean execute(String arg0) throws SQLException
StatementImpl
execute
in interface Statement
execute
in class StatementImpl
SQLException
Statement.execute(java.lang.String)
public ResultSet executeQuery(String sql) throws SQLException
StatementImpl
executeQuery
in interface Statement
executeQuery
in class StatementImpl
sql
- Description of Parameter
SQLException
- Description of ExceptionStatement.execute(java.lang.String)
public int executeUpdate(String arg0) throws SQLException
StatementImpl
executeUpdate
in interface Statement
executeUpdate
in class StatementImpl
SQLException
Statement.executeUpdate(java.lang.String)
public Connection getConnection() throws SQLException
getConnection
in interface Statement
getConnection
in class StatementImpl
SQLException
- Description of ExceptionStatement.getConnection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |