Class PreparedStatementWrapper
- java.lang.Object
-
- es.bsc.dataclay.dbhandler.sql.common.PreparedStatementWrapper
-
- All Implemented Interfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
public class PreparedStatementWrapper extends Object implements PreparedStatement
-
-
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
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementWrapper(PreparedStatement ps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch()voidaddBatch(String arg0)voidcancel()voidclearBatch()voidclearParameters()voidclearWarnings()voidclose()voidcloseOnCompletion()booleanexecute()booleanexecute(String arg0)booleanexecute(String arg0, int arg1)booleanexecute(String arg0, int[] arg1)booleanexecute(String arg0, String[] arg1)int[]executeBatch()long[]executeLargeBatch()longexecuteLargeUpdate()longexecuteLargeUpdate(String arg0)longexecuteLargeUpdate(String arg0, int arg1)longexecuteLargeUpdate(String arg0, int[] arg1)longexecuteLargeUpdate(String arg0, String[] arg1)ResultSetexecuteQuery()ResultSetexecuteQuery(String arg0)intexecuteUpdate()intexecuteUpdate(String arg0)intexecuteUpdate(String arg0, int arg1)intexecuteUpdate(String arg0, int[] arg1)intexecuteUpdate(String arg0, String[] arg1)ConnectiongetConnection()intgetFetchDirection()intgetFetchSize()ResultSetgetGeneratedKeys()longgetLargeMaxRows()longgetLargeUpdateCount()intgetMaxFieldSize()intgetMaxRows()ResultSetMetaDatagetMetaData()booleangetMoreResults()booleangetMoreResults(int arg0)ParameterMetaDatagetParameterMetaData()intgetQueryTimeout()ResultSetgetResultSet()intgetResultSetConcurrency()intgetResultSetHoldability()intgetResultSetType()intgetUpdateCount()SQLWarninggetWarnings()booleanisClosed()booleanisCloseOnCompletion()booleanisPoolable()booleanisWrapperFor(Class arg0)voidsetArray(int i, Array x)voidsetAsciiStream(int arg0, InputStream arg1)voidsetAsciiStream(int arg0, InputStream arg1, int arg2)voidsetAsciiStream(int arg0, InputStream arg1, long arg2)voidsetBigDecimal(int arg0, BigDecimal arg1)voidsetBinaryStream(int arg0, InputStream arg1)voidsetBinaryStream(int arg0, InputStream arg1, int arg2)voidsetBinaryStream(int arg0, InputStream arg1, long arg2)voidsetBlob(int arg0, InputStream arg1)voidsetBlob(int arg0, InputStream arg1, long arg2)voidsetBlob(int arg0, Blob arg1)voidsetBoolean(int arg0, boolean arg1)voidsetByte(int arg0, byte arg1)voidsetBytes(int arg0, byte[] arg1)voidsetCharacterStream(int arg0, Reader arg1)voidsetCharacterStream(int arg0, Reader arg1, int arg2)voidsetCharacterStream(int arg0, Reader arg1, long arg2)voidsetClob(int arg0, Reader arg1)voidsetClob(int arg0, Reader arg1, long arg2)voidsetClob(int arg0, Clob arg1)voidsetCursorName(String arg0)voidsetDate(int arg0, Date arg1)voidsetDate(int arg0, Date arg1, Calendar arg2)voidsetDouble(int arg0, double arg1)voidsetEscapeProcessing(boolean arg0)voidsetFetchDirection(int arg0)voidsetFetchSize(int arg0)voidsetFloat(int arg0, float arg1)voidsetInt(int arg0, int arg1)voidsetLargeMaxRows(long arg0)voidsetLong(int arg0, long arg1)voidsetMaxFieldSize(int arg0)voidsetMaxRows(int arg0)voidsetNCharacterStream(int arg0, Reader arg1)voidsetNCharacterStream(int arg0, Reader arg1, long arg2)voidsetNClob(int arg0, Reader arg1)voidsetNClob(int arg0, Reader arg1, long arg2)voidsetNClob(int arg0, NClob arg1)voidsetNString(int arg0, String arg1)voidsetNull(int arg0, int arg1)voidsetNull(int arg0, int arg1, String arg2)voidsetObject(int arg0, Object arg1)voidsetObject(int arg0, Object arg1, int arg2)voidsetObject(int arg0, Object arg1, int arg2, int arg3)voidsetObject(int arg0, Object arg1, SQLType arg2)voidsetObject(int arg0, Object arg1, SQLType arg2, int arg3)voidsetPoolable(boolean arg0)voidsetQueryTimeout(int arg0)voidsetRef(int arg0, Ref arg1)voidsetRowId(int arg0, RowId arg1)voidsetShort(int arg0, short arg1)voidsetSQLXML(int arg0, SQLXML arg1)voidsetString(int arg0, String arg1)voidsetTime(int arg0, Time arg1)voidsetTime(int arg0, Time arg1, Calendar arg2)voidsetTimestamp(int arg0, Timestamp arg1)voidsetTimestamp(int arg0, Timestamp arg1, Calendar arg2)voidsetUnicodeStream(int arg0, InputStream arg1, int arg2)voidsetURL(int arg0, URL arg1)StringtoString()Objectunwrap(Class arg0)
-
-
-
Constructor Detail
-
PreparedStatementWrapper
public PreparedStatementWrapper(PreparedStatement ps)
-
-
Method Detail
-
executeQuery
public ResultSet executeQuery() throws SQLException
- Specified by:
executeQueryin interfacePreparedStatement- Throws:
SQLException
-
setArray
public void setArray(int i, Array x) throws SQLException- Specified by:
setArrayin interfacePreparedStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate() throws SQLException- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int arg0, int arg1, String arg2) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int arg0, int arg1) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setBigDecimal
public void setBigDecimal(int arg0, BigDecimal arg1) throws SQLException- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException
-
setString
public void setString(int arg0, String arg1) throws SQLException- Specified by:
setStringin interfacePreparedStatement- Throws:
SQLException
-
setBytes
public void setBytes(int arg0, byte[] arg1) throws SQLException- Specified by:
setBytesin interfacePreparedStatement- Throws:
SQLException
-
setDate
public void setDate(int arg0, Date arg1, Calendar arg2) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setDate
public void setDate(int arg0, Date arg1) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int arg0, InputStream arg1, int arg2) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int arg0, InputStream arg1, long arg2) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int arg0, InputStream arg1) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setUnicodeStream
public void setUnicodeStream(int arg0, InputStream arg1, int arg2) throws SQLException- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int arg0, InputStream arg1, int arg2) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int arg0, InputStream arg1, long arg2) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int arg0, InputStream arg1) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
clearParameters
public void clearParameters() throws SQLException- Specified by:
clearParametersin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int arg0, Object arg1, int arg2) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int arg0, Object arg1, int arg2, int arg3) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int arg0, Object arg1) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int arg0, Object arg1, SQLType arg2) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int arg0, Object arg1, SQLType arg2, int arg3) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
addBatch
public void addBatch() throws SQLException- Specified by:
addBatchin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int arg0, Reader arg1, int arg2) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int arg0, Reader arg1, long arg2) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int arg0, Reader arg1) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setRef
public void setRef(int arg0, Ref arg1) throws SQLException- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int arg0, InputStream arg1, long arg2) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int arg0, Blob arg1) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int arg0, InputStream arg1) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int arg0, Reader arg1, long arg2) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int arg0, Clob arg1) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int arg0, Reader arg1) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- Specified by:
getMetaDatain interfacePreparedStatement- Throws:
SQLException
-
getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLException
- Specified by:
getParameterMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setRowId
public void setRowId(int arg0, RowId arg1) throws SQLException- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException
-
setNString
public void setNString(int arg0, String arg1) throws SQLException- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int arg0, Reader arg1, long arg2) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int arg0, Reader arg1) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int arg0, Reader arg1, long arg2) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int arg0, NClob arg1) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int arg0, Reader arg1) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setSQLXML
public void setSQLXML(int arg0, SQLXML arg1) throws SQLException- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException
-
executeLargeUpdate
public long executeLargeUpdate() throws SQLException- Specified by:
executeLargeUpdatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int arg0, Time arg1, Calendar arg2) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int arg0, Time arg1) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setURL
public void setURL(int arg0, URL arg1) throws SQLException- Specified by:
setURLin interfacePreparedStatement- Throws:
SQLException
-
execute
public boolean execute() throws SQLException- Specified by:
executein interfacePreparedStatement- Throws:
SQLException
-
setBoolean
public void setBoolean(int arg0, boolean arg1) throws SQLException- Specified by:
setBooleanin interfacePreparedStatement- Throws:
SQLException
-
setByte
public void setByte(int arg0, byte arg1) throws SQLException- Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException
-
setShort
public void setShort(int arg0, short arg1) throws SQLException- Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException
-
setInt
public void setInt(int arg0, int arg1) throws SQLException- Specified by:
setIntin interfacePreparedStatement- Throws:
SQLException
-
setLong
public void setLong(int arg0, long arg1) throws SQLException- Specified by:
setLongin interfacePreparedStatement- Throws:
SQLException
-
setFloat
public void setFloat(int arg0, float arg1) throws SQLException- Specified by:
setFloatin interfacePreparedStatement- Throws:
SQLException
-
setDouble
public void setDouble(int arg0, double arg1) throws SQLException- Specified by:
setDoublein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int arg0, Timestamp arg1, Calendar arg2) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int arg0, Timestamp arg1) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
executeQuery
public ResultSet executeQuery(String arg0) throws SQLException
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String arg0, String[] arg1) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String arg0, int[] arg1) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String arg0, int arg1) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String arg0) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
addBatch
public void addBatch(String arg0) throws SQLException
- Specified by:
addBatchin interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
public long executeLargeUpdate(String arg0) throws SQLException
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
public long executeLargeUpdate(String arg0, String[] arg1) throws SQLException
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
public long executeLargeUpdate(String arg0, int arg1) throws SQLException
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
public long executeLargeUpdate(String arg0, int[] arg1) throws SQLException
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
public int getMaxFieldSize() throws SQLException- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
public void setMaxFieldSize(int arg0) throws SQLException- Specified by:
setMaxFieldSizein interfaceStatement- Throws:
SQLException
-
getMaxRows
public int getMaxRows() throws SQLException- Specified by:
getMaxRowsin interfaceStatement- Throws:
SQLException
-
setMaxRows
public void setMaxRows(int arg0) throws SQLException- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
public void setEscapeProcessing(boolean arg0) throws SQLException- Specified by:
setEscapeProcessingin interfaceStatement- Throws:
SQLException
-
getQueryTimeout
public int getQueryTimeout() throws SQLException- Specified by:
getQueryTimeoutin interfaceStatement- Throws:
SQLException
-
setQueryTimeout
public void setQueryTimeout(int arg0) throws SQLException- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
SQLException
-
cancel
public void cancel() throws SQLException- Specified by:
cancelin interfaceStatement- Throws:
SQLException
-
getWarnings
public SQLWarning getWarnings() throws SQLException
- Specified by:
getWarningsin interfaceStatement- Throws:
SQLException
-
clearWarnings
public void clearWarnings() throws SQLException- Specified by:
clearWarningsin interfaceStatement- Throws:
SQLException
-
setCursorName
public void setCursorName(String arg0) throws SQLException
- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- Specified by:
getResultSetin interfaceStatement- Throws:
SQLException
-
getUpdateCount
public int getUpdateCount() throws SQLException- Specified by:
getUpdateCountin interfaceStatement- Throws:
SQLException
-
getMoreResults
public boolean getMoreResults() throws SQLException- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getMoreResults
public boolean getMoreResults(int arg0) throws SQLException- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
setFetchDirection
public void setFetchDirection(int arg0) throws SQLException- Specified by:
setFetchDirectionin interfaceStatement- Throws:
SQLException
-
getFetchDirection
public int getFetchDirection() throws SQLException- Specified by:
getFetchDirectionin interfaceStatement- Throws:
SQLException
-
setFetchSize
public void setFetchSize(int arg0) throws SQLException- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
getFetchSize
public int getFetchSize() throws SQLException- Specified by:
getFetchSizein interfaceStatement- Throws:
SQLException
-
getResultSetConcurrency
public int getResultSetConcurrency() throws SQLException- Specified by:
getResultSetConcurrencyin interfaceStatement- Throws:
SQLException
-
getResultSetType
public int getResultSetType() throws SQLException- Specified by:
getResultSetTypein interfaceStatement- Throws:
SQLException
-
clearBatch
public void clearBatch() throws SQLException- Specified by:
clearBatchin interfaceStatement- Throws:
SQLException
-
executeBatch
public int[] executeBatch() throws SQLException- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
public ResultSet getGeneratedKeys() throws SQLException
- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
getResultSetHoldability
public int getResultSetHoldability() throws SQLException- Specified by:
getResultSetHoldabilityin interfaceStatement- Throws:
SQLException
-
isClosed
public boolean isClosed() throws SQLException- Specified by:
isClosedin interfaceStatement- Throws:
SQLException
-
setPoolable
public void setPoolable(boolean arg0) throws SQLException- Specified by:
setPoolablein interfaceStatement- Throws:
SQLException
-
isPoolable
public boolean isPoolable() throws SQLException- Specified by:
isPoolablein interfaceStatement- Throws:
SQLException
-
closeOnCompletion
public void closeOnCompletion() throws SQLException- Specified by:
closeOnCompletionin interfaceStatement- Throws:
SQLException
-
isCloseOnCompletion
public boolean isCloseOnCompletion() throws SQLException- Specified by:
isCloseOnCompletionin interfaceStatement- Throws:
SQLException
-
getLargeUpdateCount
public long getLargeUpdateCount() throws SQLException- Specified by:
getLargeUpdateCountin interfaceStatement- Throws:
SQLException
-
setLargeMaxRows
public void setLargeMaxRows(long arg0) throws SQLException- Specified by:
setLargeMaxRowsin interfaceStatement- Throws:
SQLException
-
getLargeMaxRows
public long getLargeMaxRows() throws SQLException- Specified by:
getLargeMaxRowsin interfaceStatement- Throws:
SQLException
-
executeLargeBatch
public long[] executeLargeBatch() throws SQLException- Specified by:
executeLargeBatchin interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String arg0, int[] arg1) throws SQLException
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String arg0, int arg1) throws SQLException
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String arg0, String[] arg1) throws SQLException
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String arg0) throws SQLException
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
close
public void close() throws SQLException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class arg0) throws SQLException
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
public Object unwrap(Class arg0) throws SQLException
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
-