|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webdocwf.util.i18njdbc.I18nStatement
public class I18nStatement
This class implements the Statement interface for the I18nJdbc driver.
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 |
---|
protected I18nStatement(I18nConnection connection)
connection
- Description of ParameterMethod Detail |
---|
public void setMaxFieldSize(int p0) throws java.sql.SQLException
setMaxFieldSize
in interface java.sql.Statement
p0
- The new maxFieldSize value
java.sql.SQLException
- Description of Exceptionpublic void setMaxRows(int p0) throws java.sql.SQLException
setMaxRows
in interface java.sql.Statement
p0
- The new maxRows value
java.sql.SQLException
- Description of Exceptionpublic void setEscapeProcessing(boolean p0) throws java.sql.SQLException
setEscapeProcessing
in interface java.sql.Statement
p0
- The new escapeProcessing value
java.sql.SQLException
- Description of Exceptionpublic void setQueryTimeout(int p0) throws java.sql.SQLException
setQueryTimeout
in interface java.sql.Statement
p0
- The new queryTimeout value
java.sql.SQLException
- Description of Exceptionpublic void setCursorName(java.lang.String p0) throws java.sql.SQLException
setCursorName
in interface java.sql.Statement
p0
- The new cursorName value
java.sql.SQLException
- Description of Exceptionpublic void setFetchDirection(int p0) throws java.sql.SQLException
setFetchDirection
in interface java.sql.Statement
p0
- The new fetchDirection value
java.sql.SQLException
- Description of Exceptionpublic void setFetchSize(int p0) throws java.sql.SQLException
setFetchSize
in interface java.sql.Statement
p0
- The new fetchSize value
java.sql.SQLException
- Description of Exceptionpublic int getMaxFieldSize() throws java.sql.SQLException
getMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int getMaxRows() throws java.sql.SQLException
getMaxRows
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int getQueryTimeout() throws java.sql.SQLException
getQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic java.sql.ResultSet getResultSet() throws java.sql.SQLException
getResultSet
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int getUpdateCount() throws java.sql.SQLException
getUpdateCount
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic boolean getMoreResults() throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int getFetchDirection() throws java.sql.SQLException
getFetchDirection
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int getFetchSize() throws java.sql.SQLException
getFetchSize
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int getResultSetConcurrency() throws java.sql.SQLException
getResultSetConcurrency
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int getResultSetType() throws java.sql.SQLException
getResultSetType
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
sql
- Description of Parameter
java.sql.SQLException
- Description of Exceptionpublic int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
sql
- Description of Parameter
java.sql.SQLException
- Description of Exceptionpublic void close() throws java.sql.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 java.sql.Statement
java.sql.SQLException
- if a database access error occurspublic void cancel() throws java.sql.SQLException
cancel
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
sql
- Description of Parameter
java.sql.SQLException
- Description of Exceptionpublic void addBatch(java.lang.String p0) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
p0
- The feature to be added to the Batch attribute
java.sql.SQLException
- Description of Exceptionpublic void clearBatch() throws java.sql.SQLException
clearBatch
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
java.sql.SQLException
- Description of Exceptionpublic boolean getMoreResults(int current) throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException
getGeneratedKeys
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public int getResultSetHoldability() throws java.sql.SQLException
getResultSetHoldability
in interface java.sql.Statement
java.sql.SQLException
public java.lang.String getSqlStatement()
public I18nProperties getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |