Package org.firebirdsql.jdbc
Class FBPreparedStatement
- java.lang.Object
- 
- org.firebirdsql.jdbc.FBStatement
- 
- org.firebirdsql.jdbc.AbstractPreparedStatement
- 
- org.firebirdsql.jdbc.FBPreparedStatement
 
 
 
- 
- All Implemented Interfaces:
- java.lang.AutoCloseable,- java.sql.PreparedStatement,- java.sql.Statement,- java.sql.Wrapper,- FirebirdPreparedStatement,- FirebirdStatement,- Synchronizable
 - Direct Known Subclasses:
- AbstractCallableStatement
 
 public class FBPreparedStatement extends AbstractPreparedStatement JDBC 4.2 implementation ofPreparedStatementinterface.Contains methods specific to the JDBC 4.2 implementation, or exists if there are methods in higher JDBC versions that cannot be defined in JDBC 4.2. - Author:
- David Jencks, Roman Rokytskyy, Mark Rotteveel
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.firebirdsql.jdbc.FBStatementFBStatement.StatementResult
 
- 
 - 
Field Summary- 
Fields inherited from class org.firebirdsql.jdbc.AbstractPreparedStatementbatchList, METHOD_NOT_SUPPORTED
 - 
Fields inherited from class org.firebirdsql.jdbc.FBStatementcompleted, connection, currentStatementResult, fbStatement, fetchSize, firstWarning, gdsHelper, isSingletonResult, jdbcVersionSupport, maxRows, specialResult, statementListener
 - 
Fields inherited from interface org.firebirdsql.jdbc.FirebirdPreparedStatementTYPE_COMMIT, TYPE_DDL, TYPE_DELETE, TYPE_EXEC_PROCEDURE, TYPE_GET_SEGMENT, TYPE_INSERT, TYPE_PUT_SEGMENT, TYPE_ROLLBACK, TYPE_SELECT, TYPE_SELECT_FOR_UPDATE, TYPE_SET_GENERATOR, TYPE_START_TRANS, TYPE_UPDATE
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedFBPreparedStatement(GDSHelper c, int rsType, int rsConcurrency, int rsHoldability, FBObjectListener.StatementListener statementListener, FBObjectListener.BlobListener blobListener)protectedFBPreparedStatement(GDSHelper c, java.lang.String sql, int rsType, int rsConcurrency, int rsHoldability, FBObjectListener.StatementListener statementListener, FBObjectListener.BlobListener blobListener, boolean metaDataQuery, boolean standaloneStatement, boolean generatedKeys)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetObject(int parameterIndex, java.lang.Object x, java.sql.SQLType targetSqlType)voidsetObject(int parameterIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength)- 
Methods inherited from class org.firebirdsql.jdbc.AbstractPreparedStatementaddBatch, addBatch, clearBatch, clearParameters, completeStatement, execute, execute, execute, execute, execute, executeBatchInternal, executeLargeUpdate, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getExecutionPlan, getExplainedExecutionPlan, getField, getFirebirdParameterMetaData, getMetaData, getParameterDescriptor, getParameterMetaData, getStatementType, internalExecute, isGeneratedKeyQuery, notifyStatementCompleted, prepareFixedStatement, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setStringForced, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 - 
Methods inherited from class org.firebirdsql.jdbc.FBStatementaddWarning, cancel, checkValidity, clearWarnings, close, closeOnCompletion, completeStatement, createStatementListener, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, equals, executeBatch, executeImpl, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, finalize, forgetResultSet, getConnection, getCurrentResultSet, getDeletedRowsCount, getFetchDirection, getFetchSize, getGeneratedKeys, getInsertedRowsCount, getLargeMaxRows, getLargeUpdateCount, getLastExecutionPlan, getLastExplainedExecutionPlan, getLocalStatementId, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSynchronizationObject, getUpdateCount, getUpdatedRowsCount, getWarnings, hashCode, hasOpenResultSet, internalExecute, isClosed, isCloseOnCompletion, isExecuteProcedureStatement, isPoolable, isSimpleIdentifier, isValid, isWrapperFor, nativeSQL, notifyStatementCompleted, notifyStatementStarted, notifyStatementStarted, requireStatement, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, toArray, toLargeArray, unwrap
 - 
Methods inherited from class java.lang.Objectclone, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.firebirdsql.jdbc.FirebirdStatementgetCurrentResultSet, getDeletedRowsCount, getInsertedRowsCount, getLastExecutionPlan, getLastExplainedExecutionPlan, getLocalStatementId, getUpdatedRowsCount, hasOpenResultSet, isValid
 - 
Methods inherited from interface java.sql.Statementcancel, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
 
- 
 
- 
- 
- 
Constructor Detail- 
FBPreparedStatementprotected FBPreparedStatement(GDSHelper c, int rsType, int rsConcurrency, int rsHoldability, FBObjectListener.StatementListener statementListener, FBObjectListener.BlobListener blobListener) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
FBPreparedStatementprotected FBPreparedStatement(GDSHelper c, java.lang.String sql, int rsType, int rsConcurrency, int rsHoldability, FBObjectListener.StatementListener statementListener, FBObjectListener.BlobListener blobListener, boolean metaDataQuery, boolean standaloneStatement, boolean generatedKeys) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 
- 
 - 
Method Detail- 
setObjectpublic void setObject(int parameterIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength) throws java.sql.SQLExceptionImplementation note: behaves as AbstractPreparedStatement.setObject(int, Object, int, int)called withSQLType.getVendorTypeNumber().- Throws:
- java.sql.SQLException
 
 - 
setObjectpublic void setObject(int parameterIndex, java.lang.Object x, java.sql.SQLType targetSqlType) throws java.sql.SQLExceptionImplementation note: behaves as AbstractPreparedStatement.setObject(int, Object, int)called withSQLType.getVendorTypeNumber().- Throws:
- java.sql.SQLException
 
 
- 
 
-