Interface RelationalPreparedStatement
- All Superinterfaces:
AutoCloseable
,PreparedStatement
,Statement
,Wrapper
Extension of
PreparedStatement
to allow for Relational specific Prepared Statements.-
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addBatch()
default void
default void
cancel()
default void
default void
default void
default void
boolean
execute()
default boolean
default boolean
default boolean
default boolean
default int[]
default ResultSet
executeQuery
(String sql) default int
default int
executeUpdate
(String sql) default int
executeUpdate
(String sql, int autoGeneratedKeys) default int
executeUpdate
(String sql, int[] columnIndexes) default int
executeUpdate
(String sql, String[] columnNames) default Connection
default int
default int
default ResultSet
default int
default ResultSetMetaData
default boolean
default boolean
getMoreResults
(int current) default ParameterMetaData
default int
default int
default int
default int
default int
default SQLWarning
default boolean
default boolean
default boolean
isWrapperFor
(Class<?> iface) void
Sets the designated parameter to the given Array.default void
setAsciiStream
(int parameterIndex, InputStream x) default void
setAsciiStream
(int parameterIndex, InputStream x, int length) default void
setAsciiStream
(int parameterIndex, InputStream x, long length) default void
setBigDecimal
(int parameterIndex, BigDecimal x) default void
setBinaryStream
(int parameterIndex, InputStream x) default void
setBinaryStream
(int parameterIndex, InputStream x, int length) default void
setBinaryStream
(int parameterIndex, InputStream x, long length) default void
setBlob
(int parameterIndex, InputStream inputStream) default void
setBlob
(int parameterIndex, InputStream inputStream, long length) default void
void
setBoolean
(String parameterName, boolean x) Sets the designated parameter to the given Javaboolean
value.default void
setByte
(int parameterIndex, byte x) void
Sets the designated parameter to the given Java array of bytes.default void
setCharacterStream
(int parameterIndex, Reader reader) default void
setCharacterStream
(int parameterIndex, Reader reader, int length) default void
setCharacterStream
(int parameterIndex, Reader reader, long length) default void
default void
default void
default void
setCursorName
(String name) default void
default void
void
Sets the designated parameter to the given Javadouble
value.default void
setEscapeProcessing
(boolean enable) default void
setFetchDirection
(int direction) default void
setFetchSize
(int rows) void
Sets the designated parameter to the given Javafloat
value.void
Sets the designated parameter to the given Javaint
value.void
Sets the designated parameter to the given Javalong
value.default void
setMaxFieldSize
(int max) default void
setNCharacterStream
(int parameterIndex, Reader value) default void
setNCharacterStream
(int parameterIndex, Reader value, long length) default void
default void
default void
default void
setNString
(int parameterIndex, String value) default void
void
Sets the designated parameter to SQLNULL
.default void
default void
void
Sets the designated parameter to the given Object.default void
setPoolable
(boolean poolable) default void
setQueryTimeout
(int seconds) default void
default void
default void
setShort
(int parameterIndex, short x) default void
void
Sets the designated parameter to the given JavaString
value.default void
default void
default void
setTimestamp
(int parameterIndex, Timestamp x) default void
setTimestamp
(int parameterIndex, Timestamp x, Calendar cal) default void
setUnicodeStream
(int parameterIndex, InputStream x, int length) Deprecated.default void
void
Sets the designated parameter to the given JavaUUID
value.void
Sets the designated parameter to the given JavaUUID
value.default <T> T
Methods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setArray, setBoolean, setBytes, setDouble, setFloat, setInt, setLong, setNull, setObject, setObject, setObject, setString
Methods inherited from interface java.sql.Statement
close, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, getMaxRows, isClosed, isSimpleIdentifier, setLargeMaxRows, setMaxRows
-
Method Details
-
executeQuery
- Specified by:
executeQuery
in interfacePreparedStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfacePreparedStatement
- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSet
in interfaceStatement
- Throws:
SQLException
-
setBoolean
Sets the designated parameter to the given Javaboolean
value.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setInt
Sets the designated parameter to the given Javaint
value.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setLong
Sets the designated parameter to the given Javalong
value.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setFloat
Sets the designated parameter to the given Javafloat
value.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setDouble
Sets the designated parameter to the given Javadouble
value.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setString
Sets the designated parameter to the given JavaString
value.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setBytes
Sets the designated parameter to the given Java array of bytes.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setArray
Sets the designated parameter to the given Array.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setObject
Sets the designated parameter to the given Object.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setUUID
Sets the designated parameter to the given JavaUUID
value.- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value- Throws:
SQLException
- if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setUUID
Sets the designated parameter to the given JavaUUID
value.- Parameters:
parameterName
- the name of the parameterx
- the parameter value- Throws:
SQLException
- if parameterName does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
setNull
Sets the designated parameter to SQLNULL
.Note: You must specify the parameter's SQL type.
- Parameters:
parameterName
- the name of the parametersqlType
- the SQL type code defined injava.sql.Types
- Throws:
SQLException
- if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closedPreparedStatement
-
executeUpdate
- Specified by:
executeUpdate
in interfacePreparedStatement
- Throws:
SQLException
-
setByte
- Specified by:
setByte
in interfacePreparedStatement
- Throws:
SQLException
-
setShort
- Specified by:
setShort
in interfacePreparedStatement
- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimal
in interfacePreparedStatement
- Throws:
SQLException
-
setDate
- Specified by:
setDate
in interfacePreparedStatement
- Throws:
SQLException
-
setTime
- Specified by:
setTime
in interfacePreparedStatement
- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestamp
in interfacePreparedStatement
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Throws:
SQLException
-
setUnicodeStream
@Deprecated default void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException Deprecated.- Specified by:
setUnicodeStream
in interfacePreparedStatement
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Throws:
SQLException
-
clearParameters
- Specified by:
clearParameters
in interfacePreparedStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Throws:
SQLException
-
addBatch
- Specified by:
addBatch
in interfacePreparedStatement
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Throws:
SQLException
-
setRef
- Specified by:
setRef
in interfacePreparedStatement
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaData
in interfacePreparedStatement
- Throws:
SQLException
-
setDate
- Specified by:
setDate
in interfacePreparedStatement
- Throws:
SQLException
-
setTime
- Specified by:
setTime
in interfacePreparedStatement
- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestamp
in interfacePreparedStatement
- Throws:
SQLException
-
setNull
- Specified by:
setNull
in interfacePreparedStatement
- Throws:
SQLException
-
setURL
- Specified by:
setURL
in interfacePreparedStatement
- Throws:
SQLException
-
getParameterMetaData
- Specified by:
getParameterMetaData
in interfacePreparedStatement
- Throws:
SQLException
-
setRowId
- Specified by:
setRowId
in interfacePreparedStatement
- Throws:
SQLException
-
setNString
- Specified by:
setNString
in interfacePreparedStatement
- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStream
in interfacePreparedStatement
- Throws:
SQLException
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Throws:
SQLException
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Throws:
SQLException
-
setSQLXML
- Specified by:
setSQLXML
in interfacePreparedStatement
- Throws:
SQLException
-
setObject
default void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException - Specified by:
setObject
in interfacePreparedStatement
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStream
in interfacePreparedStatement
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Throws:
SQLException
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Throws:
SQLException
-
executeQuery
- Specified by:
executeQuery
in interfaceStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Throws:
SQLException
-
getMaxFieldSize
- Specified by:
getMaxFieldSize
in interfaceStatement
- Throws:
SQLException
-
setMaxFieldSize
- Specified by:
setMaxFieldSize
in interfaceStatement
- Throws:
SQLException
-
setEscapeProcessing
- Specified by:
setEscapeProcessing
in interfaceStatement
- Throws:
SQLException
-
getQueryTimeout
- Specified by:
getQueryTimeout
in interfaceStatement
- Throws:
SQLException
-
setQueryTimeout
- Specified by:
setQueryTimeout
in interfaceStatement
- Throws:
SQLException
-
cancel
- Specified by:
cancel
in interfaceStatement
- Throws:
SQLException
-
getWarnings
- Specified by:
getWarnings
in interfaceStatement
- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarnings
in interfaceStatement
- Throws:
SQLException
-
setCursorName
- Specified by:
setCursorName
in interfaceStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Throws:
SQLException
-
getUpdateCount
- Specified by:
getUpdateCount
in interfaceStatement
- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResults
in interfaceStatement
- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirection
in interfaceStatement
- Throws:
SQLException
-
getFetchDirection
- Specified by:
getFetchDirection
in interfaceStatement
- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSize
in interfaceStatement
- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSize
in interfaceStatement
- Throws:
SQLException
-
getResultSetConcurrency
- Specified by:
getResultSetConcurrency
in interfaceStatement
- Throws:
SQLException
-
getResultSetType
- Specified by:
getResultSetType
in interfaceStatement
- Throws:
SQLException
-
addBatch
- Specified by:
addBatch
in interfaceStatement
- Throws:
SQLException
-
clearBatch
- Specified by:
clearBatch
in interfaceStatement
- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatch
in interfaceStatement
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceStatement
- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResults
in interfaceStatement
- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeys
in interfaceStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Throws:
SQLException
-
getResultSetHoldability
- Specified by:
getResultSetHoldability
in interfaceStatement
- Throws:
SQLException
-
setPoolable
- Specified by:
setPoolable
in interfaceStatement
- Throws:
SQLException
-
isPoolable
- Specified by:
isPoolable
in interfaceStatement
- Throws:
SQLException
-
closeOnCompletion
- Specified by:
closeOnCompletion
in interfaceStatement
- Throws:
SQLException
-
isCloseOnCompletion
- Specified by:
isCloseOnCompletion
in interfaceStatement
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-