org.firebirdsql.jdbc
Interface FirebirdPreparedStatement

All Superinterfaces:
FirebirdStatement, java.sql.PreparedStatement, java.sql.Statement
All Known Subinterfaces:
FirebirdCallableStatement
All Known Implementing Classes:
AbstractCallableStatement, AbstractPreparedStatement

public interface FirebirdPreparedStatement
extends FirebirdStatement, java.sql.PreparedStatement

Firebird extensions to the PreparedStatement interface.

Author:
Roman Rokytskyy

Field Summary
static int TYPE_COMMIT
          A COMMIT statement
static int TYPE_DDL
          A DDL statment
static int TYPE_DELETE
          A DELETE statement
static int TYPE_EXEC_PROCEDURE
          An EXEC PROCEDURE statement
static int TYPE_GET_SEGMENT
          A GET SEGMENT statement
static int TYPE_INSERT
          An INSERT statement
static int TYPE_PUT_SEGMENT
          A PUT SEGMENT statement
static int TYPE_ROLLBACK
          A ROLLBACK statement
static int TYPE_SELECT
          A SELECT statement
static int TYPE_SELECT_FOR_UPDATE
          A SELECT FOR UPDATE statement
static int TYPE_SET_GENERATOR
          A SET GENERATOR statement
static int TYPE_START_TRANS
          A START TRANSACTION statement
static int TYPE_UPDATE
          An UPDATE statement
 
Fields inherited from interface org.firebirdsql.jdbc.FirebirdStatement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, KEEP_CURRENT_RESULT
 
Fields inherited from interface java.sql.Statement
EXECUTE_FAILED, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Method Summary
 java.lang.String getExecutionPlan()
          Get the execution plan of this PreparedStatement
 int getStatementType()
          Get the statement type of this PreparedStatement.
 
Methods inherited from interface org.firebirdsql.jdbc.FirebirdStatement
getCurrentResultSet, getDeletedRowsCount, getInsertedRowsCount, getLastExecutionPlan, getUpdatedRowsCount, hasOpenResultSet, isValid
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 
Methods inherited from interface java.sql.PreparedStatement
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 

Field Detail

TYPE_SELECT

public static final int TYPE_SELECT
A SELECT statement

See Also:
Constant Field Values

TYPE_INSERT

public static final int TYPE_INSERT
An INSERT statement

See Also:
Constant Field Values

TYPE_UPDATE

public static final int TYPE_UPDATE
An UPDATE statement

See Also:
Constant Field Values

TYPE_DELETE

public static final int TYPE_DELETE
A DELETE statement

See Also:
Constant Field Values

TYPE_DDL

public static final int TYPE_DDL
A DDL statment

See Also:
Constant Field Values

TYPE_GET_SEGMENT

public static final int TYPE_GET_SEGMENT
A GET SEGMENT statement

See Also:
Constant Field Values

TYPE_PUT_SEGMENT

public static final int TYPE_PUT_SEGMENT
A PUT SEGMENT statement

See Also:
Constant Field Values

TYPE_EXEC_PROCEDURE

public static final int TYPE_EXEC_PROCEDURE
An EXEC PROCEDURE statement

See Also:
Constant Field Values

TYPE_START_TRANS

public static final int TYPE_START_TRANS
A START TRANSACTION statement

See Also:
Constant Field Values

TYPE_COMMIT

public static final int TYPE_COMMIT
A COMMIT statement

See Also:
Constant Field Values

TYPE_ROLLBACK

public static final int TYPE_ROLLBACK
A ROLLBACK statement

See Also:
Constant Field Values

TYPE_SELECT_FOR_UPDATE

public static final int TYPE_SELECT_FOR_UPDATE
A SELECT FOR UPDATE statement

See Also:
Constant Field Values

TYPE_SET_GENERATOR

public static final int TYPE_SET_GENERATOR
A SET GENERATOR statement

See Also:
Constant Field Values
Method Detail

getExecutionPlan

public java.lang.String getExecutionPlan()
                                  throws FBSQLException
Get the execution plan of this PreparedStatement

Returns:
The execution plan of the statement
Throws:
FBSQLException

getStatementType

public int getStatementType()
                     throws FBSQLException
Get the statement type of this PreparedStatement. The returned value will be one of the TYPE_* constant values.

Returns:
The identifier for the given statement's type
Throws:
FBSQLException


Copyright © 2001 David Jencks and other authors. All rights reserved.