br.ufg.integrate.wrapper.csv
Class CsvStatement

java.lang.Object
  extended by br.ufg.integrate.wrapper.jdbc.IntegrateStatement
      extended by br.ufg.integrate.wrapper.jdbc.impl.StatementImpl
          extended by br.ufg.integrate.wrapper.csv.CsvStatement
All Implemented Interfaces:
Statement, Wrapper

public class CsvStatement
extends StatementImpl

This class implements the Statement interface for the CsvJdbc driver.

Version:
$Id: CsvStatement.java,v 1.9 2007/09/19
Author:
Jonathan Ackerman, Sander Brienen, Michael Maraya, Tomasz Skutnik, Gupta Chetan, Rogerio Arantes Gaioso

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

isScrollable

protected int isScrollable
Constructor Detail

CsvStatement

protected CsvStatement(CsvConnection connection)
                throws SQLException
Throws:
SQLException

CsvStatement

protected CsvStatement(CsvConnection connection,
                       int isScrollable)
                throws SQLException
Constructor for the CsvStatement object

Parameters:
connection - Description of Parameter
Throws:
SQLException
Since:
Method Detail

close

public void close()
           throws SQLException
Releases this 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.

Specified by:
close in interface Statement
Overrides:
close in class StatementImpl
Throws:
SQLException - if a database access error occurs
See Also:
Statement.close()

execute

public boolean execute(String arg0)
                throws SQLException
Description copied from class: StatementImpl
Implements method in interface java.sql.Statement

Specified by:
execute in interface Statement
Overrides:
execute in class StatementImpl
Throws:
SQLException
See Also:
Statement.execute(java.lang.String)

executeQuery

public ResultSet executeQuery(String sql)
                       throws SQLException
Description copied from class: StatementImpl
Implements method in interface java.sql.Statement

Specified by:
executeQuery in interface Statement
Overrides:
executeQuery in class StatementImpl
Parameters:
sql - Description of Parameter
Returns:
Description of the Returned Value
Throws:
SQLException - Description of Exception
Since:
See Also:
Statement.execute(java.lang.String)

executeUpdate

public int executeUpdate(String arg0)
                  throws SQLException
Description copied from class: StatementImpl
Implements method in interface java.sql.Statement

Specified by:
executeUpdate in interface Statement
Overrides:
executeUpdate in class StatementImpl
Throws:
SQLException
See Also:
Statement.executeUpdate(java.lang.String)

getConnection

public Connection getConnection()
                         throws SQLException
Gets the connection attribute of the CsvStatement object

Specified by:
getConnection in interface Statement
Overrides:
getConnection in class StatementImpl
Returns:
The connection value
Throws:
SQLException - Description of Exception
Since:
See Also:
Statement.getConnection()


Copyright © 2008 Rogério Arantes Gaioso. All Rights Reserved.