org.apache.derby.impl.jdbc
Class EmbedPreparedStatement40
java.lang.Object
org.apache.derby.impl.jdbc.ConnectionChild
org.apache.derby.impl.jdbc.EmbedStatement
org.apache.derby.impl.jdbc.EmbedPreparedStatement
org.apache.derby.impl.jdbc.EmbedPreparedStatement20
org.apache.derby.impl.jdbc.EmbedPreparedStatement30
org.apache.derby.impl.jdbc.EmbedPreparedStatement40
- All Implemented Interfaces:
- java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper, EnginePreparedStatement, EngineStatement
public class EmbedPreparedStatement40
- extends EmbedPreparedStatement30
Fields inherited from class org.apache.derby.impl.jdbc.EmbedStatement |
applicationStatement, batchStatements, isPoolable, lcc, MaxFieldSize, maxRows, results, resultSetConcurrency, resultSetType, SQLText, timeoutMillis, updateCount |
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 |
EmbedPreparedStatement40(EmbedConnection conn,
java.lang.String sql,
boolean forMetaData,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
int autoGeneratedKeys,
int[] columnIndexes,
java.lang.String[] columnNames)
|
Method Summary |
java.sql.ParameterMetaData |
getParameterMetaData()
JDBC 4.0
Retrieves the number, types and properties of this PreparedStatement
object's parameters. |
boolean |
isWrapperFor(java.lang.Class<?> interfaces)
Returns false unless interfaces is implemented |
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value)
|
void |
setNCharacterStream(int index,
java.io.Reader value,
long length)
|
void |
setNClob(int index,
java.sql.NClob value)
|
void |
setNClob(int parameterIndex,
java.io.Reader reader)
|
void |
setNClob(int parameterIndex,
java.io.Reader reader,
long length)
|
void |
setNString(int index,
java.lang.String value)
|
void |
setRowId(int parameterIndex,
java.sql.RowId x)
|
void |
setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject)
|
|
unwrap(java.lang.Class<T> interfaces)
Returns this if this class implements the interface |
Methods inherited from class org.apache.derby.impl.jdbc.EmbedPreparedStatement |
addBatch, addBatch, clearParameters, closeActions, dataTypeConversion, execute, execute, execute, execute, execute, executeBatchElement, executeQuery, executeQuery, executeStatement, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, finalize, getMetaData, getParameterJDBCType, getParameterSQLType, getParms, getTypes, newEmbedResultSetMetaData, setAsciiStream, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setBrokeredConnectionControl, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, toString, transferParameters |
Methods inherited from class org.apache.derby.impl.jdbc.EmbedStatement |
addWarning, cancel, checkExecStatus, checkIfInMiddleOfBatch, checkRequiresCallableStatement, checkStatus, clearBatch, clearResultSets, clearWarnings, close, executeBatch, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getParameterValueSet, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSQLText, getUpdateCount, getWarnings, isClosed, isPoolable, processDynamicResult, resultSetClosing, setApplicationStatement, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, transferBatch |
Methods inherited from class org.apache.derby.impl.jdbc.ConnectionChild |
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getEmbedConnection, handleException, needCommit, newSQLException, newSQLException, newSQLException, restoreContextStack, setupContextStack |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.Statement |
cancel, clearBatch, clearWarnings, close, executeBatch, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout |
EmbedPreparedStatement40
public EmbedPreparedStatement40(EmbedConnection conn,
java.lang.String sql,
boolean forMetaData,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
int autoGeneratedKeys,
int[] columnIndexes,
java.lang.String[] columnNames)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setRowId
public void setRowId(int parameterIndex,
java.sql.RowId x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNString
public void setNString(int index,
java.lang.String value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(int parameterIndex,
java.io.Reader value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(int index,
java.io.Reader value,
long length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int parameterIndex,
java.io.Reader reader)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int index,
java.sql.NClob value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int parameterIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setSQLXML
public void setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getParameterMetaData
public java.sql.ParameterMetaData getParameterMetaData()
throws java.sql.SQLException
- JDBC 4.0
Retrieves the number, types and properties of this PreparedStatement
object's parameters.
- Specified by:
getParameterMetaData
in interface java.sql.PreparedStatement
- Overrides:
getParameterMetaData
in class EmbedPreparedStatement30
- Returns:
- a ParameterMetaData object that contains information about the
number, types and properties of this PreparedStatement object's parameters.
- Throws:
java.sql.SQLException
- if a database access error occurs
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> interfaces)
throws java.sql.SQLException
- Returns false unless
interfaces
is implemented
- Parameters:
interfaces
- a Class defining an interface.
- Returns:
- true if this implements the interface or
directly or indirectly wraps an object
that does.
- Throws:
java.sql.SQLException
- if an error occurs while determining
whether this is a wrapper for an object
with the given interface.
unwrap
public <T> T unwrap(java.lang.Class<T> interfaces)
throws java.sql.SQLException
- Returns
this
if this class implements the interface
- Parameters:
interfaces
- a Class defining an interface
- Returns:
- an object that implements the interface
- Throws:
java.sql.SQLExption
- if no object if found that implements the
interface
java.sql.SQLException
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.