org.webdocwf.util.i18njdbc
Class I18nStatement

java.lang.Object
  extended byorg.webdocwf.util.i18njdbc.I18nStatement
All Implemented Interfaces:
java.sql.Statement

public class I18nStatement
extends java.lang.Object
implements java.sql.Statement

This class implements the Statement interface for the I18nJdbc driver.

Author:
Zoran Milakovic, Zeljko Kovacevic

Field Summary
 
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 I18nStatement(I18nConnection connection)
          Constructor for the I18nStatement object
 
Method Summary
 void addBatch(java.lang.String p0)
          Adds a feature to the Batch attribute of the I18nStatement object
 void cancel()
          Description of the Method
 void clearBatch()
          Description of the Method
 void clearWarnings()
          Description of the Method
 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(java.lang.String sql)
          Description of the Method
 boolean execute(java.lang.String sql, int autoGeneratedKeys)
           
 boolean execute(java.lang.String sql, int[] columnIndexes)
           
 boolean execute(java.lang.String sql, java.lang.String[] columnNames)
           
 int[] executeBatch()
          Description of the Method
 java.sql.ResultSet executeQuery(java.lang.String sql)
          Description of the Method
 int executeUpdate(java.lang.String sql)
          Description of the Method
 int executeUpdate(java.lang.String sql, int autoGeneratedKeys)
           
 int executeUpdate(java.lang.String sql, int[] columnIndexes)
           
 int executeUpdate(java.lang.String sql, java.lang.String[] columnNames)
           
 java.sql.Connection getConnection()
          Gets the connection attribute of the I18nStatement object
 int getFetchDirection()
          Gets the fetchDirection attribute of the I18nStatement object
 int getFetchSize()
          Gets the fetchSize attribute of the I18nStatement object
 java.sql.ResultSet getGeneratedKeys()
           
 int getMaxFieldSize()
          Gets the maxFieldSize attribute of the I18nStatement object
 int getMaxRows()
          Gets the maxRows attribute of the I18nStatement object
 boolean getMoreResults()
          Gets the moreResults attribute of the I18nStatement object
 boolean getMoreResults(int current)
           
 I18nProperties getProperties()
          This method returns properties object
 int getQueryTimeout()
          Gets the queryTimeout attribute of the I18nStatement object
 java.sql.ResultSet getResultSet()
          Gets the resultSet attribute of the I18nStatement object
 int getResultSetConcurrency()
          Gets the resultSetConcurrency attribute of the I18nStatement object
 int getResultSetHoldability()
           
 int getResultSetType()
          Gets the resultSetType attribute of the I18nStatement object
 java.lang.String getSqlStatement()
          This method returns string which represents sql statement
 int getUpdateCount()
          Gets the updateCount attribute of the I18nStatement object
 java.sql.SQLWarning getWarnings()
          Gets the warnings attribute of the I18nStatement object
 void setCursorName(java.lang.String p0)
          Sets the cursorName attribute of the I18nStatement object
 void setEscapeProcessing(boolean p0)
          Sets the escapeProcessing attribute of the I18nStatement object
 void setFetchDirection(int p0)
          Sets the fetchDirection attribute of the I18nStatement object
 void setFetchSize(int p0)
          Sets the fetchSize attribute of the I18nStatement object
 void setMaxFieldSize(int p0)
          Sets the maxFieldSize attribute of the I18nStatement object
 void setMaxRows(int p0)
          Sets the maxRows attribute of the I18nStatement object
 void setQueryTimeout(int p0)
          Sets the queryTimeout attribute of the I18nStatement object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nStatement

protected I18nStatement(I18nConnection connection)
Constructor for the I18nStatement object

Parameters:
connection - Description of Parameter
Since:
Method Detail

setMaxFieldSize

public void setMaxFieldSize(int p0)
                     throws java.sql.SQLException
Sets the maxFieldSize attribute of the I18nStatement object

Specified by:
setMaxFieldSize in interface java.sql.Statement
Parameters:
p0 - The new maxFieldSize value
Throws:
java.sql.SQLException - Description of Exception
Since:

setMaxRows

public void setMaxRows(int p0)
                throws java.sql.SQLException
Sets the maxRows attribute of the I18nStatement object

Specified by:
setMaxRows in interface java.sql.Statement
Parameters:
p0 - The new maxRows value
Throws:
java.sql.SQLException - Description of Exception
Since:

setEscapeProcessing

public void setEscapeProcessing(boolean p0)
                         throws java.sql.SQLException
Sets the escapeProcessing attribute of the I18nStatement object

Specified by:
setEscapeProcessing in interface java.sql.Statement
Parameters:
p0 - The new escapeProcessing value
Throws:
java.sql.SQLException - Description of Exception
Since:

setQueryTimeout

public void setQueryTimeout(int p0)
                     throws java.sql.SQLException
Sets the queryTimeout attribute of the I18nStatement object

Specified by:
setQueryTimeout in interface java.sql.Statement
Parameters:
p0 - The new queryTimeout value
Throws:
java.sql.SQLException - Description of Exception
Since:

setCursorName

public void setCursorName(java.lang.String p0)
                   throws java.sql.SQLException
Sets the cursorName attribute of the I18nStatement object

Specified by:
setCursorName in interface java.sql.Statement
Parameters:
p0 - The new cursorName value
Throws:
java.sql.SQLException - Description of Exception
Since:

setFetchDirection

public void setFetchDirection(int p0)
                       throws java.sql.SQLException
Sets the fetchDirection attribute of the I18nStatement object

Specified by:
setFetchDirection in interface java.sql.Statement
Parameters:
p0 - The new fetchDirection value
Throws:
java.sql.SQLException - Description of Exception
Since:

setFetchSize

public void setFetchSize(int p0)
                  throws java.sql.SQLException
Sets the fetchSize attribute of the I18nStatement object

Specified by:
setFetchSize in interface java.sql.Statement
Parameters:
p0 - The new fetchSize value
Throws:
java.sql.SQLException - Description of Exception
Since:

getMaxFieldSize

public int getMaxFieldSize()
                    throws java.sql.SQLException
Gets the maxFieldSize attribute of the I18nStatement object

Specified by:
getMaxFieldSize in interface java.sql.Statement
Returns:
The maxFieldSize value
Throws:
java.sql.SQLException - Description of Exception
Since:

getMaxRows

public int getMaxRows()
               throws java.sql.SQLException
Gets the maxRows attribute of the I18nStatement object

Specified by:
getMaxRows in interface java.sql.Statement
Returns:
The maxRows value
Throws:
java.sql.SQLException - Description of Exception
Since:

getQueryTimeout

public int getQueryTimeout()
                    throws java.sql.SQLException
Gets the queryTimeout attribute of the I18nStatement object

Specified by:
getQueryTimeout in interface java.sql.Statement
Returns:
The queryTimeout value
Throws:
java.sql.SQLException - Description of Exception
Since:

getWarnings

public java.sql.SQLWarning getWarnings()
                                throws java.sql.SQLException
Gets the warnings attribute of the I18nStatement object

Specified by:
getWarnings in interface java.sql.Statement
Returns:
The warnings value
Throws:
java.sql.SQLException - Description of Exception
Since:

getResultSet

public java.sql.ResultSet getResultSet()
                                throws java.sql.SQLException
Gets the resultSet attribute of the I18nStatement object

Specified by:
getResultSet in interface java.sql.Statement
Returns:
The resultSet value
Throws:
java.sql.SQLException - Description of Exception
Since:

getUpdateCount

public int getUpdateCount()
                   throws java.sql.SQLException
Gets the updateCount attribute of the I18nStatement object

Specified by:
getUpdateCount in interface java.sql.Statement
Returns:
The updateCount value
Throws:
java.sql.SQLException - Description of Exception
Since:

getMoreResults

public boolean getMoreResults()
                       throws java.sql.SQLException
Gets the moreResults attribute of the I18nStatement object

Specified by:
getMoreResults in interface java.sql.Statement
Returns:
The moreResults value
Throws:
java.sql.SQLException - Description of Exception
Since:

getFetchDirection

public int getFetchDirection()
                      throws java.sql.SQLException
Gets the fetchDirection attribute of the I18nStatement object

Specified by:
getFetchDirection in interface java.sql.Statement
Returns:
The fetchDirection value
Throws:
java.sql.SQLException - Description of Exception
Since:

getFetchSize

public int getFetchSize()
                 throws java.sql.SQLException
Gets the fetchSize attribute of the I18nStatement object

Specified by:
getFetchSize in interface java.sql.Statement
Returns:
The fetchSize value
Throws:
java.sql.SQLException - Description of Exception
Since:

getResultSetConcurrency

public int getResultSetConcurrency()
                            throws java.sql.SQLException
Gets the resultSetConcurrency attribute of the I18nStatement object

Specified by:
getResultSetConcurrency in interface java.sql.Statement
Returns:
The resultSetConcurrency value
Throws:
java.sql.SQLException - Description of Exception
Since:

getResultSetType

public int getResultSetType()
                     throws java.sql.SQLException
Gets the resultSetType attribute of the I18nStatement object

Specified by:
getResultSetType in interface java.sql.Statement
Returns:
The resultSetType value
Throws:
java.sql.SQLException - Description of Exception
Since:

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Gets the connection attribute of the I18nStatement object

Specified by:
getConnection in interface java.sql.Statement
Returns:
The connection value
Throws:
java.sql.SQLException - Description of Exception
Since:

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String sql)
                                throws java.sql.SQLException
Description of the Method

Specified by:
executeQuery in interface java.sql.Statement
Parameters:
sql - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.sql.SQLException - Description of Exception
Since:

executeUpdate

public int executeUpdate(java.lang.String sql)
                  throws java.sql.SQLException
Description of the Method

Specified by:
executeUpdate in interface java.sql.Statement
Parameters:
sql - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.sql.SQLException - Description of Exception
Since:

close

public void close()
           throws java.sql.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 java.sql.Statement
Throws:
java.sql.SQLException - if a database access error occurs

cancel

public void cancel()
            throws java.sql.SQLException
Description of the Method

Specified by:
cancel in interface java.sql.Statement
Throws:
java.sql.SQLException - Description of Exception
Since:

clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException
Description of the Method

Specified by:
clearWarnings in interface java.sql.Statement
Throws:
java.sql.SQLException - Description of Exception
Since:

execute

public boolean execute(java.lang.String sql)
                throws java.sql.SQLException
Description of the Method

Specified by:
execute in interface java.sql.Statement
Parameters:
sql - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.sql.SQLException - Description of Exception
Since:

addBatch

public void addBatch(java.lang.String p0)
              throws java.sql.SQLException
Adds a feature to the Batch attribute of the I18nStatement object

Specified by:
addBatch in interface java.sql.Statement
Parameters:
p0 - The feature to be added to the Batch attribute
Throws:
java.sql.SQLException - Description of Exception
Since:

clearBatch

public void clearBatch()
                throws java.sql.SQLException
Description of the Method

Specified by:
clearBatch in interface java.sql.Statement
Throws:
java.sql.SQLException - Description of Exception
Since:

executeBatch

public int[] executeBatch()
                   throws java.sql.SQLException
Description of the Method

Specified by:
executeBatch in interface java.sql.Statement
Returns:
Description of the Returned Value
Throws:
java.sql.SQLException - Description of Exception
Since:

getMoreResults

public boolean getMoreResults(int current)
                       throws java.sql.SQLException
Specified by:
getMoreResults in interface java.sql.Statement
Throws:
java.sql.SQLException

getGeneratedKeys

public java.sql.ResultSet getGeneratedKeys()
                                    throws java.sql.SQLException
Specified by:
getGeneratedKeys in interface java.sql.Statement
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql,
                         int autoGeneratedKeys)
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.Statement
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql,
                         int[] columnIndexes)
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.Statement
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql,
                         java.lang.String[] columnNames)
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.Statement
Throws:
java.sql.SQLException

execute

public boolean execute(java.lang.String sql,
                       int autoGeneratedKeys)
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.Statement
Throws:
java.sql.SQLException

execute

public boolean execute(java.lang.String sql,
                       int[] columnIndexes)
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.Statement
Throws:
java.sql.SQLException

execute

public boolean execute(java.lang.String sql,
                       java.lang.String[] columnNames)
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSetHoldability

public int getResultSetHoldability()
                            throws java.sql.SQLException
Specified by:
getResultSetHoldability in interface java.sql.Statement
Throws:
java.sql.SQLException

getSqlStatement

public java.lang.String getSqlStatement()
This method returns string which represents sql statement

Returns:
string

getProperties

public I18nProperties getProperties()
This method returns properties object

Returns:
properties object


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.