|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webdocwf.util.i18njdbc.I18nPreparedStatement
This class implements the PreparedStatement interface for the I18nJdbc driver.
Field Summary | |
static java.lang.String |
PREPARE_SEPARATOR
Name used for prepared statement parameters |
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 | |
I18nPreparedStatement(I18nConnection connection,
java.lang.String preparedSql)
|
Method Summary | |
void |
addBatch()
|
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 |
clearParameters()
|
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()
|
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.sql.ResultSet |
executeQuery(java.lang.String sql)
Description of the Method |
int |
executeUpdate()
|
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 |
java.sql.ResultSetMetaData |
getMetaData()
|
boolean |
getMoreResults()
Gets the moreResults attribute of the I18nStatement object |
boolean |
getMoreResults(int current)
|
java.sql.ParameterMetaData |
getParameterMetaData()
|
I18nProperties |
getProperties()
|
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()
|
int |
getUpdateCount()
Gets the updateCount attribute of the I18nStatement object |
java.sql.SQLWarning |
getWarnings()
Gets the warnings attribute of the I18nStatement object |
void |
setArray(int i,
java.sql.Array x)
|
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
|
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal value)
|
void |
setBinaryStream(int parameterIndex,
java.io.InputStream value,
int length)
|
void |
setBlob(int parameterIndex,
java.sql.Blob value)
|
void |
setBoolean(int parameterIndex,
boolean value)
|
void |
setByte(int parameterIndex,
byte value)
|
void |
setBytes(int parameterIndex,
byte[] value)
|
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader,
int length)
|
void |
setClob(int i,
java.sql.Clob x)
|
void |
setCursorName(java.lang.String p0)
Sets the cursorName attribute of the I18nStatement object |
void |
setDate(int parameterIndex,
java.sql.Date value)
|
void |
setDate(int parameterIndex,
java.sql.Date x,
java.util.Calendar cal)
|
void |
setDouble(int parameterIndex,
double value)
|
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 |
setFloat(int parameterIndex,
float value)
|
void |
setInt(int parameterIndex,
int value)
|
void |
setLong(int parameterIndex,
long value)
|
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 |
setNull(int parameterIndex,
int sqlType)
|
void |
setNull(int paramIndex,
int sqlType,
java.lang.String typeName)
|
void |
setObject(int parameterIndex,
java.lang.Object x)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale)
|
void |
setQueryTimeout(int p0)
Sets the queryTimeout attribute of the I18nStatement object |
void |
setRef(int i,
java.sql.Ref x)
|
void |
setShort(int parameterIndex,
short value)
|
void |
setString(int parameterIndex,
java.lang.String value)
Set String as parameter in sql statement. |
void |
setTime(int parameterIndex,
java.sql.Time value)
|
void |
setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal)
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp value)
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal)
|
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
|
void |
setURL(int parameterIndex,
java.net.URL x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String PREPARE_SEPARATOR
Constructor Detail |
public I18nPreparedStatement(I18nConnection connection, java.lang.String preparedSql)
Method 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 setString(int parameterIndex, java.lang.String value) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
parameterIndex
- value
-
java.sql.SQLException
public void setBytes(int parameterIndex, byte[] value) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
parameterIndex
- value
-
java.sql.SQLException
public 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.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBoolean(int parameterIndex, boolean value) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setByte(int parameterIndex, byte value) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setShort(int parameterIndex, short value) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setInt(int parameterIndex, int value) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setLong(int parameterIndex, long value) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setFloat(int parameterIndex, float value) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDouble(int parameterIndex, double value) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBigDecimal(int parameterIndex, java.math.BigDecimal value) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int parameterIndex, java.sql.Date value) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int parameterIndex, java.sql.Time value) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int parameterIndex, java.sql.Timestamp value) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setUnicodeStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRef(int i, java.sql.Ref x) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int i, java.sql.Clob x) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setArray(int i, java.sql.Array x) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int paramIndex, int sqlType, java.lang.String typeName) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setURL(int parameterIndex, java.net.URL x) throws java.sql.SQLException
setURL
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream value, int length) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int parameterIndex, java.sql.Blob value) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
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 |