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 voidaddBatch()default voiddefault voidcancel()default voiddefault voiddefault voiddefault voidbooleanexecute()default booleandefault booleandefault booleandefault booleandefault int[]default ResultSetexecuteQuery(String sql) default intdefault intexecuteUpdate(String sql) default intexecuteUpdate(String sql, int autoGeneratedKeys) default intexecuteUpdate(String sql, int[] columnIndexes) default intexecuteUpdate(String sql, String[] columnNames) default Connectiondefault intdefault intdefault ResultSetdefault intdefault ResultSetMetaDatadefault booleandefault booleangetMoreResults(int current) default ParameterMetaDatadefault intdefault intdefault intdefault intdefault intdefault SQLWarningdefault booleandefault booleandefault booleanisWrapperFor(Class<?> iface) voidSets the designated parameter to the given Array.default voidsetAsciiStream(int parameterIndex, InputStream x) default voidsetAsciiStream(int parameterIndex, InputStream x, int length) default voidsetAsciiStream(int parameterIndex, InputStream x, long length) default voidsetBigDecimal(int parameterIndex, BigDecimal x) default voidsetBinaryStream(int parameterIndex, InputStream x) default voidsetBinaryStream(int parameterIndex, InputStream x, int length) default voidsetBinaryStream(int parameterIndex, InputStream x, long length) default voidsetBlob(int parameterIndex, InputStream inputStream) default voidsetBlob(int parameterIndex, InputStream inputStream, long length) default voidvoidsetBoolean(String parameterName, boolean x) Sets the designated parameter to the given Javabooleanvalue.default voidsetByte(int parameterIndex, byte x) voidSets the designated parameter to the given Java array of bytes.default voidsetCharacterStream(int parameterIndex, Reader reader) default voidsetCharacterStream(int parameterIndex, Reader reader, int length) default voidsetCharacterStream(int parameterIndex, Reader reader, long length) default voiddefault voiddefault voiddefault voidsetCursorName(String name) default voiddefault voidvoidSets the designated parameter to the given Javadoublevalue.default voidsetEscapeProcessing(boolean enable) default voidsetFetchDirection(int direction) default voidsetFetchSize(int rows) voidSets the designated parameter to the given Javafloatvalue.voidSets the designated parameter to the given Javaintvalue.voidSets the designated parameter to the given Javalongvalue.default voidsetMaxFieldSize(int max) default voidsetNCharacterStream(int parameterIndex, Reader value) default voidsetNCharacterStream(int parameterIndex, Reader value, long length) default voiddefault voiddefault voiddefault voidsetNString(int parameterIndex, String value) default voidvoidSets the designated parameter to SQLNULL.default voiddefault voidvoidSets the designated parameter to the given Object.default voidsetPoolable(boolean poolable) default voidsetQueryTimeout(int seconds) default voiddefault voiddefault voidsetShort(int parameterIndex, short x) default voidvoidSets the designated parameter to the given JavaStringvalue.default voiddefault voiddefault voidsetTimestamp(int parameterIndex, Timestamp x) default voidsetTimestamp(int parameterIndex, Timestamp x, Calendar cal) default voidsetUnicodeStream(int parameterIndex, InputStream x, int length) Deprecated.default voidvoidSets the designated parameter to the given JavaUUIDvalue.voidSets the designated parameter to the given JavaUUIDvalue.default <T> TMethods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setArray, setBoolean, setBytes, setDouble, setFloat, setInt, setLong, setNull, setObject, setObject, setObject, setStringMethods 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:
executeQueryin interfacePreparedStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfacePreparedStatement- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceStatement- Throws:
SQLException
-
setBoolean
Sets the designated parameter to the given Javabooleanvalue.- 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 Javaintvalue.- 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 Javalongvalue.- 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 Javafloatvalue.- 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 Javadoublevalue.- 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 JavaStringvalue.- 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 JavaUUIDvalue.- 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 JavaUUIDvalue.- 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:
executeUpdatein interfacePreparedStatement- Throws:
SQLException
-
setByte
- Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException
-
setShort
- Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setUnicodeStream
@Deprecated default void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException Deprecated.- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
clearParameters
- Specified by:
clearParametersin interfacePreparedStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setRef
- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setURL
- Specified by:
setURLin interfacePreparedStatement- Throws:
SQLException
-
getParameterMetaData
- Specified by:
getParameterMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setRowId
- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException
-
setNString
- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setSQLXML
- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException
-
setObject
default void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException - Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
- Specified by:
setMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
- Specified by:
setEscapeProcessingin interfaceStatement- Throws:
SQLException
-
getQueryTimeout
- Specified by:
getQueryTimeoutin interfaceStatement- Throws:
SQLException
-
setQueryTimeout
- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
SQLException
-
cancel
- Specified by:
cancelin interfaceStatement- Throws:
SQLException
-
getWarnings
- Specified by:
getWarningsin interfaceStatement- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarningsin interfaceStatement- Throws:
SQLException
-
setCursorName
- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
getUpdateCount
- Specified by:
getUpdateCountin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceStatement- Throws:
SQLException
-
getFetchDirection
- Specified by:
getFetchDirectionin interfaceStatement- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSizein interfaceStatement- Throws:
SQLException
-
getResultSetConcurrency
- Specified by:
getResultSetConcurrencyin interfaceStatement- Throws:
SQLException
-
getResultSetType
- Specified by:
getResultSetTypein interfaceStatement- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfaceStatement- Throws:
SQLException
-
clearBatch
- Specified by:
clearBatchin interfaceStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
getResultSetHoldability
- Specified by:
getResultSetHoldabilityin interfaceStatement- Throws:
SQLException
-
setPoolable
- Specified by:
setPoolablein interfaceStatement- Throws:
SQLException
-
isPoolable
- Specified by:
isPoolablein interfaceStatement- Throws:
SQLException
-
closeOnCompletion
- Specified by:
closeOnCompletionin interfaceStatement- Throws:
SQLException
-
isCloseOnCompletion
- Specified by:
isCloseOnCompletionin interfaceStatement- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-