Class NamedPreparedStatement
- java.lang.Object
-
- org.wso2.carbon.database.utils.jdbc.NamedPreparedStatement
-
- All Implemented Interfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
public class NamedPreparedStatement extends Object implements PreparedStatement
Prepared statement with named indexes.
-
-
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 NamedPreparedStatement(Connection connection, String sqlQuery)Create a named prepared statement.NamedPreparedStatement(Connection connection, String sqlQuery, String returningColumnName)Create a named prepared statement with a specified column value to be returned.NamedPreparedStatement(Connection connection, String sqlQuery, Map<String,Integer> repetition)Create a named prepared statement with repeated indexes.NamedPreparedStatement(Connection connection, String sqlQuery, Map<String,Integer> repetition, String returningColumnName)Create a named prepared statement with repeated indexes and a specified column value to be returned.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch()voidaddBatch(String sql)voidcancel()voidclearBatch()voidclearParameters()voidclearWarnings()voidclose()voidcloseOnCompletion()booleanexecute()booleanexecute(String sql)booleanexecute(String sql, int autoGeneratedKeys)booleanexecute(String sql, int[] columnIndexes)booleanexecute(String sql, String[] columnNames)int[]executeBatch()ResultSetexecuteQuery()ResultSetexecuteQuery(String sql)intexecuteUpdate()intexecuteUpdate(String sql)intexecuteUpdate(String sql, int autoGeneratedKeys)intexecuteUpdate(String sql, int[] columnIndexes)intexecuteUpdate(String sql, String[] columnNames)ConnectiongetConnection()intgetFetchDirection()intgetFetchSize()ResultSetgetGeneratedKeys()intgetMaxFieldSize()intgetMaxRows()ResultSetMetaDatagetMetaData()booleangetMoreResults()booleangetMoreResults(int current)ParameterMetaDatagetParameterMetaData()intgetQueryTimeout()ResultSetgetResultSet()intgetResultSetConcurrency()intgetResultSetHoldability()intgetResultSetType()intgetUpdateCount()SQLWarninggetWarnings()booleanisClosed()booleanisCloseOnCompletion()booleanisPoolable()booleanisWrapperFor(Class<?> iface)voidsetArray(int parameterIndex, Array array)voidsetAsciiStream(int parameterIndex, InputStream inputStream)voidsetAsciiStream(int parameterIndex, InputStream inputStream, int length)voidsetAsciiStream(int parameterIndex, InputStream inputStream, long length)voidsetBigDecimal(int parameterIndex, BigDecimal bigDecimal)voidsetBinaryStream(int parameterIndex, InputStream inputStream)voidsetBinaryStream(int parameterIndex, InputStream inputStream, int length)voidsetBinaryStream(int parameterIndex, InputStream inputStream, long length)voidsetBinaryStream(String name, InputStream inputStream, long length)Sets the designated parameter to the given input stream, which will have the specified number of bytes.voidsetBlob(int parameterIndex, InputStream inputStream)voidsetBlob(int parameterIndex, InputStream inputStream, long length)voidsetBlob(int parameterIndex, Blob blob)voidsetBoolean(int parameterIndex, boolean value)voidsetBoolean(String name, boolean value)Setbooleanvalue for the named index.voidsetByte(int parameterIndex, byte value)voidsetBytes(int parameterIndex, byte[] bytes)voidsetCharacterStream(int parameterIndex, Reader reader)voidsetCharacterStream(int parameterIndex, Reader reader, int length)voidsetCharacterStream(int parameterIndex, Reader reader, long length)voidsetClob(int parameterIndex, Reader reader)voidsetClob(int parameterIndex, Reader reader, long length)voidsetClob(int parameterIndex, Clob clob)voidsetCursorName(String name)voidsetDate(int parameterIndex, Date date)voidsetDate(int parameterIndex, Date date, Calendar cal)voidsetDouble(int parameterIndex, double value)voidsetEscapeProcessing(boolean enable)voidsetFetchDirection(int direction)voidsetFetchSize(int rows)voidsetFloat(int parameterIndex, float value)voidsetInt(int parameterIndex, int value)voidsetInt(String name, int value)Setintvalue for the named index.voidsetLong(int parameterIndex, long value)voidsetLong(String name, long value)Setlongvalue for the named index.voidsetMaxFieldSize(int max)voidsetMaxRows(int max)voidsetNCharacterStream(int parameterIndex, Reader value)voidsetNCharacterStream(int parameterIndex, Reader value, long length)voidsetNClob(int parameterIndex, Reader reader)voidsetNClob(int parameterIndex, Reader reader, long length)voidsetNClob(int parameterIndex, NClob value)voidsetNString(int parameterIndex, String value)voidsetNString(String name, String value)Set unicodeStringvalue for the named index.voidsetNull(int parameterIndex, int sqlType)voidsetNull(int parameterIndex, int sqlType, String typeName)voidsetNull(String name, int sqlType)Sets the designated parameter to SQL NULLvoidsetObject(int parameterIndex, Object object)voidsetObject(int parameterIndex, Object object, int targetSqlType)voidsetObject(int parameterIndex, Object object, int targetSqlType, int scaleOrLength)voidsetObject(String name, Object value)voidsetPoolable(boolean poolable)voidsetQueryTimeout(int seconds)voidsetRef(int parameterIndex, Ref ref)voidsetRowId(int parameterIndex, RowId rowId)voidsetShort(int parameterIndex, short value)voidsetSQLXML(int parameterIndex, SQLXML xmlObject)voidsetString(int parameterIndex, String string)voidsetString(String name, String value)SetStringvalue for the named index.voidsetString(String name, List<String> values)Replace repeated indexes with the list of values.voidsetTime(int parameterIndex, Time time)voidsetTime(int parameterIndex, Time time, Calendar cal)voidsetTimestamp(int parameterIndex, Timestamp timestamp)voidsetTimestamp(int parameterIndex, Timestamp timestamp, Calendar cal)voidsetTimeStamp(String name, Timestamp timestamp, Calendar calendar)SetTimeStampvalue for the named index.voidsetUnicodeStream(int parameterIndex, InputStream inputStream, int length)voidsetURL(int parameterIndex, URL url)<T> Tunwrap(Class<T> iface)-
Methods inherited from class java.lang.Object
equals, 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
-
NamedPreparedStatement
public NamedPreparedStatement(Connection connection, String sqlQuery, Map<String,Integer> repetition) throws SQLException
Create a named prepared statement with repeated indexes.- Parameters:
connection- Database connection to be used.sqlQuery- Underlying SQL query.repetition- Repetition of given index.- Throws:
SQLException- SQL Exception.
-
NamedPreparedStatement
public NamedPreparedStatement(Connection connection, String sqlQuery) throws SQLException
Create a named prepared statement.- Parameters:
connection- Database connection to be used.sqlQuery- Underlying SQL query.- Throws:
SQLException- SQL Exception.
-
NamedPreparedStatement
public NamedPreparedStatement(Connection connection, String sqlQuery, String returningColumnName) throws SQLException
Create a named prepared statement with a specified column value to be returned.- Parameters:
connection- Database connection to be used.sqlQuery- Underlying SQL query.returningColumnName- Name of the unique column to be returned upon query success.- Throws:
SQLException- SQL Exception.
-
NamedPreparedStatement
public NamedPreparedStatement(Connection connection, String sqlQuery, Map<String,Integer> repetition, String returningColumnName) throws SQLException
Create a named prepared statement with repeated indexes and a specified column value to be returned.- Parameters:
connection- Database connection to be used.sqlQuery- Underlying SQL query.repetition- Repetition of given index.returningColumnName- Name of the column to be returned upon query success.- Throws:
SQLException- SQL Exception.
-
-
Method Detail
-
setLong
public void setLong(String name, long value) throws SQLException
Setlongvalue for the named index.- Parameters:
name- Name of the index.value- Value to be replaced.- Throws:
SQLException- SQL Exception.
-
setInt
public void setInt(String name, int value) throws SQLException
Setintvalue for the named index.- Parameters:
name- Name of the index.value- Value to be replaced.- Throws:
SQLException- SQL Exception.
-
setString
public void setString(String name, String value) throws SQLException
SetStringvalue for the named index.- Parameters:
name- Name of the index.value- Value to be replaced.- Throws:
SQLException- SQL Exception
-
setString
public void setString(String name, List<String> values) throws SQLException
Replace repeated indexes with the list of values.- Parameters:
name- Name of the index.values- Values to be replaced.- Throws:
SQLException- SQL Exception.
-
setObject
public void setObject(String name, Object value) throws SQLException
- Throws:
SQLException
-
setTimeStamp
public void setTimeStamp(String name, Timestamp timestamp, Calendar calendar) throws SQLException
SetTimeStampvalue for the named index.- Parameters:
name- Name of the index.timestamp- value to be replaced.calendar- value to be replaced.- Throws:
SQLException- SQL Exception.
-
setBoolean
public void setBoolean(String name, boolean value) throws SQLException
Setbooleanvalue for the named index.- Parameters:
name- Name of the index.value- Value to be replaced.- Throws:
SQLException- SQL Exception.
-
setNString
public void setNString(String name, String value) throws SQLException
Set unicodeStringvalue for the named index.- Parameters:
name- Name of the index.value- Value to be replaced.- Throws:
SQLException- SQL Exception
-
setBinaryStream
public void setBinaryStream(String name, InputStream inputStream, long length) throws SQLException
Sets the designated parameter to the given input stream, which will have the specified number of bytes.- Parameters:
name- Name of the index.inputStream- The java input stream which contains the binary parameter value.length- The number of bytes in the stream.- Throws:
SQLException- If name 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
public void setNull(String name, int sqlType) throws SQLException
Sets the designated parameter to SQL NULL- Parameters:
name- Name of the index.sqlType- The SQL type code defined injava.sql.Types.- Throws:
SQLException- If name 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.
-
executeQuery
public ResultSet executeQuery() throws SQLException
- Specified by:
executeQueryin interfacePreparedStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate() throws SQLException- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int parameterIndex, int sqlType) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setBoolean
public void setBoolean(int parameterIndex, boolean value) throws SQLException- Specified by:
setBooleanin interfacePreparedStatement- Throws:
SQLException
-
setByte
public void setByte(int parameterIndex, byte value) throws SQLException- Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException
-
setShort
public void setShort(int parameterIndex, short value) throws SQLException- Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException
-
setInt
public void setInt(int parameterIndex, int value) throws SQLException- Specified by:
setIntin interfacePreparedStatement- Throws:
SQLException
-
setLong
public void setLong(int parameterIndex, long value) throws SQLException- Specified by:
setLongin interfacePreparedStatement- Throws:
SQLException
-
setFloat
public void setFloat(int parameterIndex, float value) throws SQLException- Specified by:
setFloatin interfacePreparedStatement- Throws:
SQLException
-
setDouble
public void setDouble(int parameterIndex, double value) throws SQLException- Specified by:
setDoublein interfacePreparedStatement- Throws:
SQLException
-
setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal bigDecimal) throws SQLException- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException
-
setString
public void setString(int parameterIndex, String string) throws SQLException- Specified by:
setStringin interfacePreparedStatement- Throws:
SQLException
-
setBytes
public void setBytes(int parameterIndex, byte[] bytes) throws SQLException- Specified by:
setBytesin interfacePreparedStatement- Throws:
SQLException
-
setDate
public void setDate(int parameterIndex, Date date) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int parameterIndex, Time time) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp timestamp) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream inputStream, int length) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setUnicodeStream
public void setUnicodeStream(int parameterIndex, InputStream inputStream, int length) throws SQLException- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream inputStream, int length) 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 parameterIndex, Object object, int targetSqlType) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object object) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
execute
public boolean execute() throws SQLException- Specified by:
executein interfacePreparedStatement- Throws:
SQLException
-
addBatch
public void addBatch() throws SQLException- Specified by:
addBatchin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setRef
public void setRef(int parameterIndex, Ref ref) throws SQLException- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int parameterIndex, Blob blob) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int parameterIndex, Clob clob) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setArray
public void setArray(int parameterIndex, Array array) throws SQLException- Specified by:
setArrayin interfacePreparedStatement- Throws:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- Specified by:
getMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setDate
public void setDate(int parameterIndex, Date date, Calendar cal) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int parameterIndex, Time time, Calendar cal) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp timestamp, Calendar cal) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setURL
public void setURL(int parameterIndex, URL url) throws SQLException- Specified by:
setURLin interfacePreparedStatement- Throws:
SQLException
-
getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLException
- Specified by:
getParameterMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setRowId
public void setRowId(int parameterIndex, RowId rowId) throws SQLException- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException
-
setNString
public void setNString(int parameterIndex, String value) throws SQLException- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int parameterIndex, NClob value) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setSQLXML
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object object, int targetSqlType, int scaleOrLength) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream inputStream, long length) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream inputStream, long length) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream inputStream) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream inputStream) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int parameterIndex, Reader reader) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int parameterIndex, Reader reader) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
executeQuery
public ResultSet executeQuery(String sql) throws SQLException
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String sql) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
close
public void close() throws SQLException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
public int getMaxFieldSize() throws SQLException- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
public void setMaxFieldSize(int max) 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 max) throws SQLException- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable) 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 seconds) 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 name) throws SQLException
- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String sql) throws SQLException
- Specified by:
executein 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
-
setFetchDirection
public void setFetchDirection(int direction) 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 rows) 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
-
addBatch
public void addBatch(String sql) throws SQLException
- Specified by:
addBatchin 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
-
getMoreResults
public boolean getMoreResults(int current) throws SQLException- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
public ResultSet getGeneratedKeys() throws SQLException
- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate(String sql, String[] columnNames) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String sql, int[] columnIndexes) throws SQLException
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
public boolean execute(String sql, String[] columnNames) throws SQLException
- Specified by:
executein 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 poolable) 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
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
-