Package com.spotfire.ws.im.ds.sql
Class PreparedStatementWrapper
java.lang.Object
com.spotfire.ws.im.ds.sql.StatementWrapper
com.spotfire.ws.im.ds.sql.PreparedStatementWrapper
- All Implemented Interfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
Use this class for creating wrapper classes around the
PreparedStatement interface. The subclass can override the
methods that need to show a different behavior than the wrapped object.- Since:
- 3.0
- See Also:
-
Field Summary
Fields inherited from class com.spotfire.ws.im.ds.sql.StatementWrapper
m_stmtFields 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
ConstructorsConstructorDescriptionCreates a newPreparedStatementWrapperinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()voidbooleanexecute()intvoidvoidsetAsciiStream(int parameterIndex, InputStream x) voidsetAsciiStream(int idx, InputStream x, int length) voidsetAsciiStream(int parameterIndex, InputStream x, long length) voidsetBigDecimal(int idx, BigDecimal x) voidsetBinaryStream(int parameterIndex, InputStream x) voidsetBinaryStream(int idx, InputStream x, int length) voidsetBinaryStream(int parameterIndex, InputStream x, long length) voidsetBlob(int parameterIndex, InputStream inputStream) voidsetBlob(int parameterIndex, InputStream inputStream, long length) voidvoidsetBoolean(int idx, boolean x) voidsetByte(int idx, byte x) voidsetBytes(int idx, byte[] x) voidsetCharacterStream(int parameterIndex, Reader x) voidsetCharacterStream(int idx, Reader reader, int length) voidsetCharacterStream(int parameterIndex, Reader x, long length) voidvoidvoidvoidvoidvoidsetDouble(int idx, double x) voidsetFloat(int idx, float x) voidsetInt(int idx, int x) voidsetLong(int idx, long x) voidsetNCharacterStream(int parameterIndex, Reader x) voidsetNCharacterStream(int parameterIndex, Reader x, long length) voidvoidvoidvoidsetNString(int parameterIndex, String value) voidsetNull(int idx, int sqlType) voidvoidvoidvoidvoidvoidvoidsetShort(int idx, short x) voidvoidvoidvoidvoidsetTimestamp(int idx, Timestamp x) voidsetTimestamp(int idx, Timestamp x, Calendar cal) voidsetUnicodeStream(int idx, InputStream x, int length) Deprecated.deprecatedvoidMethods inherited from class com.spotfire.ws.im.ds.sql.StatementWrapper
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, 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, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObjectMethods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, 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, setQueryTimeoutMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
PreparedStatementWrapper
Creates a newPreparedStatementWrapperinstance.- Parameters:
stmt- thePreparedStatementto be wrapped- Since:
- 3.0
-
-
Method Details
-
executeQuery
- Specified by:
executeQueryin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
executeUpdate
- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBoolean
- Specified by:
setBooleanin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setByte
- Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setShort
- Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setInt
- Specified by:
setIntin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setLong
- Specified by:
setLongin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setFloat
- Specified by:
setFloatin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setDouble
- Specified by:
setDoublein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBigDecimal
- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setString
- Specified by:
setStringin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBytes
- Specified by:
setBytesin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setUnicodeStream
Deprecated.deprecated- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
clearParameters
- Specified by:
clearParametersin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
execute
- Specified by:
executein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
addBatch
- Specified by:
addBatchin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setRef
- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setArray
- Specified by:
setArrayin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
getMetaData
- Specified by:
getMetaDatain interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setURL
- Specified by:
setURLin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
getParameterMetaData
- Specified by:
getParameterMetaDatain interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNString
- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setRowId
- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-
setSQLXML
- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException- Since:
- 3.0
-