Class ExportDumpPreparedStatement
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.export.ExportDumpPreparedStatement
-
- All Implemented Interfaces:
AutoCloseable
,PreparedStatement
,Statement
,Wrapper
public class ExportDumpPreparedStatement extends Object implements PreparedStatement
Custom implementation ofPreparedStatement
dumping data to the given output stream. Only few inherited setter methods have a meaningful implementation, most methods will throw aUnsupportedOperationException
.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
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 ExportDumpPreparedStatement(Exporter exporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBatch()
void
addBatch(String sql)
void
cancel()
void
clearBatch()
void
clearParameters()
void
clearWarnings()
void
close()
void
closeOnCompletion()
boolean
execute()
boolean
execute(String sql)
boolean
execute(String sql, int autoGeneratedKeys)
boolean
execute(String sql, int[] columnIndexes)
boolean
execute(String sql, String[] columnNames)
int[]
executeBatch()
ResultSet
executeQuery()
ResultSet
executeQuery(String sql)
int
executeUpdate()
int
executeUpdate(String sql)
int
executeUpdate(String sql, int autoGeneratedKeys)
int
executeUpdate(String sql, int[] columnIndexes)
int
executeUpdate(String sql, String[] columnNames)
Connection
getConnection()
int
getFetchDirection()
int
getFetchSize()
ResultSet
getGeneratedKeys()
int
getMaxFieldSize()
int
getMaxRows()
ResultSetMetaData
getMetaData()
boolean
getMoreResults()
boolean
getMoreResults(int current)
ParameterMetaData
getParameterMetaData()
int
getQueryTimeout()
ResultSet
getResultSet()
int
getResultSetConcurrency()
int
getResultSetHoldability()
int
getResultSetType()
int
getUpdateCount()
SQLWarning
getWarnings()
boolean
isClosed()
boolean
isCloseOnCompletion()
boolean
isPoolable()
boolean
isWrapperFor(Class<?> iface)
void
setArray(int parameterIndex, Array x)
void
setAsciiStream(int parameterIndex, InputStream x)
void
setAsciiStream(int parameterIndex, InputStream x, int length)
void
setAsciiStream(int parameterIndex, InputStream x, long length)
void
setBigDecimal(int parameterIndex, BigDecimal x)
void
setBinaryStream(int parameterIndex, InputStream x)
void
setBinaryStream(int parameterIndex, InputStream x, int length)
void
setBinaryStream(int parameterIndex, InputStream x, long length)
void
setBlob(int parameterIndex, InputStream inputStream)
void
setBlob(int parameterIndex, InputStream inputStream, long length)
void
setBlob(int parameterIndex, Blob x)
void
setBoolean(int parameterIndex, boolean x)
void
setByte(int parameterIndex, byte x)
void
setBytes(int parameterIndex, byte[] x)
void
setCharacterStream(int parameterIndex, Reader reader)
void
setCharacterStream(int parameterIndex, Reader reader, int length)
void
setCharacterStream(int parameterIndex, Reader reader, long length)
void
setClob(int parameterIndex, Reader reader)
void
setClob(int parameterIndex, Reader reader, long length)
void
setClob(int parameterIndex, Clob clob)
void
setCursorName(String name)
void
setDate(int parameterIndex, Date x)
void
setDate(int parameterIndex, Date x, Calendar cal)
void
setDouble(int parameterIndex, double x)
void
setEscapeProcessing(boolean enable)
void
setFetchDirection(int direction)
void
setFetchSize(int rows)
void
setFloat(int parameterIndex, float x)
void
setInt(int parameterIndex, int x)
void
setLong(int parameterIndex, long x)
void
setMaxFieldSize(int max)
void
setMaxRows(int max)
void
setNCharacterStream(int parameterIndex, Reader value)
void
setNCharacterStream(int parameterIndex, Reader value, long length)
void
setNClob(int parameterIndex, Reader reader)
void
setNClob(int parameterIndex, Reader reader, long length)
void
setNClob(int parameterIndex, NClob value)
void
setNString(int parameterIndex, String value)
void
setNull(int parameterIndex, int sqlType)
void
setNull(int parameterIndex, int sqlType, String typeName)
void
setObject(int parameterIndex, Object x)
void
setObject(int parameterIndex, Object x, int targetSqlType)
void
setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)
void
setPoolable(boolean poolable)
void
setQueryTimeout(int seconds)
void
setRef(int parameterIndex, Ref x)
void
setRowId(int parameterIndex, RowId x)
void
setShort(int parameterIndex, short x)
void
setSQLXML(int parameterIndex, SQLXML xmlObject)
void
setString(int parameterIndex, String x)
void
setTime(int parameterIndex, Time x)
void
setTime(int parameterIndex, Time x, Calendar cal)
void
setTimestamp(int parameterIndex, Timestamp x)
void
setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
void
setUnicodeStream(int parameterIndex, InputStream x, int length)
void
setURL(int parameterIndex, URL x)
<T> T
unwrap(Class<T> iface)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObject
-
Methods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, isSimpleIdentifier, setLargeMaxRows
-
-
-
-
Constructor Detail
-
ExportDumpPreparedStatement
public ExportDumpPreparedStatement(Exporter exporter)
-
-
Method Detail
-
execute
public boolean execute()
- Specified by:
execute
in interfacePreparedStatement
-
setObject
public void setObject(int parameterIndex, Object x)
- Specified by:
setObject
in interfacePreparedStatement
-
setBoolean
public void setBoolean(int parameterIndex, boolean x)
- Specified by:
setBoolean
in interfacePreparedStatement
-
setByte
public void setByte(int parameterIndex, byte x)
- Specified by:
setByte
in interfacePreparedStatement
-
setShort
public void setShort(int parameterIndex, short x)
- Specified by:
setShort
in interfacePreparedStatement
-
setInt
public void setInt(int parameterIndex, int x)
- Specified by:
setInt
in interfacePreparedStatement
-
setLong
public void setLong(int parameterIndex, long x)
- Specified by:
setLong
in interfacePreparedStatement
-
setFloat
public void setFloat(int parameterIndex, float x)
- Specified by:
setFloat
in interfacePreparedStatement
-
setDouble
public void setDouble(int parameterIndex, double x)
- Specified by:
setDouble
in interfacePreparedStatement
-
setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal x)
- Specified by:
setBigDecimal
in interfacePreparedStatement
-
setString
public void setString(int parameterIndex, String x)
- Specified by:
setString
in interfacePreparedStatement
-
setBytes
public void setBytes(int parameterIndex, byte[] x)
- Specified by:
setBytes
in interfacePreparedStatement
-
setDate
public void setDate(int parameterIndex, Date x)
- Specified by:
setDate
in interfacePreparedStatement
-
setTime
public void setTime(int parameterIndex, Time x)
- Specified by:
setTime
in interfacePreparedStatement
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x)
- Specified by:
setTimestamp
in interfacePreparedStatement
-
setNull
public void setNull(int parameterIndex, int sqlType)
- Specified by:
setNull
in interfacePreparedStatement
-
setClob
public void setClob(int parameterIndex, Clob clob) throws SQLException
- Specified by:
setClob
in interfacePreparedStatement
- Throws:
SQLException
-
setClob
public void setClob(int parameterIndex, Reader reader)
- Specified by:
setClob
in interfacePreparedStatement
-
setSQLXML
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException
- Specified by:
setSQLXML
in interfacePreparedStatement
- Throws:
SQLException
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream)
- Specified by:
setBlob
in interfacePreparedStatement
-
setBlob
public void setBlob(int parameterIndex, Blob x) throws SQLException
- Specified by:
setBlob
in interfacePreparedStatement
- Throws:
SQLException
-
executeQuery
public ResultSet executeQuery(String sql)
- Specified by:
executeQuery
in interfaceStatement
-
executeUpdate
public int executeUpdate(String sql)
- Specified by:
executeUpdate
in interfaceStatement
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceStatement
-
getMaxFieldSize
public int getMaxFieldSize()
- Specified by:
getMaxFieldSize
in interfaceStatement
-
setMaxFieldSize
public void setMaxFieldSize(int max)
- Specified by:
setMaxFieldSize
in interfaceStatement
-
getMaxRows
public int getMaxRows()
- Specified by:
getMaxRows
in interfaceStatement
-
setMaxRows
public void setMaxRows(int max)
- Specified by:
setMaxRows
in interfaceStatement
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable)
- Specified by:
setEscapeProcessing
in interfaceStatement
-
getQueryTimeout
public int getQueryTimeout()
- Specified by:
getQueryTimeout
in interfaceStatement
-
setQueryTimeout
public void setQueryTimeout(int seconds)
- Specified by:
setQueryTimeout
in interfaceStatement
-
getWarnings
public SQLWarning getWarnings()
- Specified by:
getWarnings
in interfaceStatement
-
clearWarnings
public void clearWarnings()
- Specified by:
clearWarnings
in interfaceStatement
-
setCursorName
public void setCursorName(String name)
- Specified by:
setCursorName
in interfaceStatement
-
executeUpdate
public int executeUpdate()
- Specified by:
executeUpdate
in interfacePreparedStatement
-
getResultSet
public ResultSet getResultSet()
- Specified by:
getResultSet
in interfaceStatement
-
getUpdateCount
public int getUpdateCount()
- Specified by:
getUpdateCount
in interfaceStatement
-
getMoreResults
public boolean getMoreResults()
- Specified by:
getMoreResults
in interfaceStatement
-
setFetchDirection
public void setFetchDirection(int direction)
- Specified by:
setFetchDirection
in interfaceStatement
-
getFetchDirection
public int getFetchDirection()
- Specified by:
getFetchDirection
in interfaceStatement
-
setFetchSize
public void setFetchSize(int rows)
- Specified by:
setFetchSize
in interfaceStatement
-
getFetchSize
public int getFetchSize()
- Specified by:
getFetchSize
in interfaceStatement
-
getResultSetConcurrency
public int getResultSetConcurrency()
- Specified by:
getResultSetConcurrency
in interfaceStatement
-
getResultSetType
public int getResultSetType()
- Specified by:
getResultSetType
in interfaceStatement
-
clearBatch
public void clearBatch()
- Specified by:
clearBatch
in interfaceStatement
-
executeBatch
public int[] executeBatch()
- Specified by:
executeBatch
in interfaceStatement
-
getConnection
public Connection getConnection()
- Specified by:
getConnection
in interfaceStatement
-
getMoreResults
public boolean getMoreResults(int current)
- Specified by:
getMoreResults
in interfaceStatement
-
getGeneratedKeys
public ResultSet getGeneratedKeys()
- Specified by:
getGeneratedKeys
in interfaceStatement
-
executeUpdate
public int executeUpdate(String sql, int autoGeneratedKeys)
- Specified by:
executeUpdate
in interfaceStatement
-
executeUpdate
public int executeUpdate(String sql, int[] columnIndexes)
- Specified by:
executeUpdate
in interfaceStatement
-
executeUpdate
public int executeUpdate(String sql, String[] columnNames)
- Specified by:
executeUpdate
in interfaceStatement
-
execute
public boolean execute(String sql, int autoGeneratedKeys)
-
execute
public boolean execute(String sql, int[] columnIndexes)
-
getResultSetHoldability
public int getResultSetHoldability()
- Specified by:
getResultSetHoldability
in interfaceStatement
-
setPoolable
public void setPoolable(boolean poolable)
- Specified by:
setPoolable
in interfaceStatement
-
isPoolable
public boolean isPoolable()
- Specified by:
isPoolable
in interfaceStatement
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
- Specified by:
isWrapperFor
in interfaceWrapper
-
executeQuery
public ResultSet executeQuery()
- Specified by:
executeQuery
in interfacePreparedStatement
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, int length)
- Specified by:
setAsciiStream
in interfacePreparedStatement
-
setUnicodeStream
public void setUnicodeStream(int parameterIndex, InputStream x, int length)
- Specified by:
setUnicodeStream
in interfacePreparedStatement
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, int length)
- Specified by:
setBinaryStream
in interfacePreparedStatement
-
clearParameters
public void clearParameters()
- Specified by:
clearParameters
in interfacePreparedStatement
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType)
- Specified by:
setObject
in interfacePreparedStatement
-
addBatch
public void addBatch()
- Specified by:
addBatch
in interfacePreparedStatement
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, int length)
- Specified by:
setCharacterStream
in interfacePreparedStatement
-
setRef
public void setRef(int parameterIndex, Ref x)
- Specified by:
setRef
in interfacePreparedStatement
-
setArray
public void setArray(int parameterIndex, Array x)
- Specified by:
setArray
in interfacePreparedStatement
-
getMetaData
public ResultSetMetaData getMetaData()
- Specified by:
getMetaData
in interfacePreparedStatement
-
setDate
public void setDate(int parameterIndex, Date x, Calendar cal)
- Specified by:
setDate
in interfacePreparedStatement
-
setTime
public void setTime(int parameterIndex, Time x, Calendar cal)
- Specified by:
setTime
in interfacePreparedStatement
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
- Specified by:
setTimestamp
in interfacePreparedStatement
-
setNull
public void setNull(int parameterIndex, int sqlType, String typeName)
- Specified by:
setNull
in interfacePreparedStatement
-
setURL
public void setURL(int parameterIndex, URL x)
- Specified by:
setURL
in interfacePreparedStatement
-
getParameterMetaData
public ParameterMetaData getParameterMetaData()
- Specified by:
getParameterMetaData
in interfacePreparedStatement
-
setRowId
public void setRowId(int parameterIndex, RowId x)
- Specified by:
setRowId
in interfacePreparedStatement
-
setNString
public void setNString(int parameterIndex, String value)
- Specified by:
setNString
in interfacePreparedStatement
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value, long length)
- Specified by:
setNCharacterStream
in interfacePreparedStatement
-
setNClob
public void setNClob(int parameterIndex, NClob value)
- Specified by:
setNClob
in interfacePreparedStatement
-
setClob
public void setClob(int parameterIndex, Reader reader, long length)
- Specified by:
setClob
in interfacePreparedStatement
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream, long length)
- Specified by:
setBlob
in interfacePreparedStatement
-
setNClob
public void setNClob(int parameterIndex, Reader reader, long length)
- Specified by:
setNClob
in interfacePreparedStatement
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)
- Specified by:
setObject
in interfacePreparedStatement
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, long length)
- Specified by:
setAsciiStream
in interfacePreparedStatement
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, long length)
- Specified by:
setBinaryStream
in interfacePreparedStatement
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, long length)
- Specified by:
setCharacterStream
in interfacePreparedStatement
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x)
- Specified by:
setAsciiStream
in interfacePreparedStatement
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x)
- Specified by:
setBinaryStream
in interfacePreparedStatement
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader)
- Specified by:
setCharacterStream
in interfacePreparedStatement
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value)
- Specified by:
setNCharacterStream
in interfacePreparedStatement
-
setNClob
public void setNClob(int parameterIndex, Reader reader)
- Specified by:
setNClob
in interfacePreparedStatement
-
closeOnCompletion
public void closeOnCompletion()
- Specified by:
closeOnCompletion
in interfaceStatement
-
isCloseOnCompletion
public boolean isCloseOnCompletion()
- Specified by:
isCloseOnCompletion
in interfaceStatement
-
-