Package org.apache.ignite.internal.jdbc2
Class JdbcPreparedStatement
- java.lang.Object
-
- org.apache.ignite.internal.jdbc2.JdbcStatement
-
- org.apache.ignite.internal.jdbc2.JdbcPreparedStatement
-
- All Implemented Interfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
public class JdbcPreparedStatement extends JdbcStatement implements PreparedStatement
JDBC prepared statement implementation.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.jdbc2.JdbcStatement
args, conn, curRes, results
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch()voidaddBatch(String sql)voidclearBatch()voidclearParameters()booleanexecute()int[]executeBatch()ResultSetexecuteQuery()intexecuteUpdate()ResultSetMetaDatagetMetaData()ParameterMetaDatagetParameterMetaData()Implementation note: If this prepared statement is a multi-statement, returned meta contains meta of parameters from the all statements.voidsetArray(int paramIdx, Array x)voidsetAsciiStream(int paramIdx, InputStream x)voidsetAsciiStream(int paramIdx, InputStream x, int len)voidsetAsciiStream(int paramIdx, InputStream x, long len)voidsetBigDecimal(int paramIdx, BigDecimal x)voidsetBinaryStream(int paramIdx, InputStream x)voidsetBinaryStream(int paramIdx, InputStream x, int len)voidsetBinaryStream(int paramIdx, InputStream x, long len)voidsetBlob(int paramIdx, InputStream inputStream)voidsetBlob(int paramIdx, InputStream inputStream, long len)voidsetBlob(int paramIdx, Blob x)voidsetBoolean(int paramIdx, boolean x)voidsetByte(int paramIdx, byte x)voidsetBytes(int paramIdx, byte[] x)voidsetCharacterStream(int paramIdx, Reader x)voidsetCharacterStream(int paramIdx, Reader x, int len)voidsetCharacterStream(int paramIdx, Reader x, long len)voidsetClob(int paramIdx, Reader reader)voidsetClob(int paramIdx, Reader reader, long len)voidsetClob(int paramIdx, Clob x)voidsetDate(int paramIdx, Date x)voidsetDate(int paramIdx, Date x, Calendar cal)voidsetDouble(int paramIdx, double x)voidsetFloat(int paramIdx, float x)voidsetInt(int paramIdx, int x)voidsetLong(int paramIdx, long x)voidsetNCharacterStream(int paramIdx, Reader val)voidsetNCharacterStream(int paramIdx, Reader val, long len)voidsetNClob(int paramIdx, Reader reader)voidsetNClob(int paramIdx, Reader reader, long len)voidsetNClob(int paramIdx, NClob val)voidsetNString(int paramIdx, String val)voidsetNull(int paramIdx, int sqlType)voidsetNull(int paramIdx, int sqlType, String typeName)voidsetObject(int paramIdx, Object x)voidsetObject(int paramIdx, Object x, int targetSqlType)voidsetObject(int paramIdx, Object x, int targetSqlType, int scaleOrLen)voidsetRef(int paramIdx, Ref x)voidsetRowId(int paramIdx, RowId x)voidsetShort(int paramIdx, short x)voidsetSQLXML(int paramIdx, SQLXML xmlObj)voidsetString(int paramIdx, String x)voidsetTime(int paramIdx, Time x)voidsetTime(int paramIdx, Time x, Calendar cal)voidsetTimestamp(int paramIdx, Timestamp x)voidsetTimestamp(int paramIdx, Timestamp x, Calendar cal)voidsetUnicodeStream(int paramIdx, InputStream x, int len)voidsetURL(int paramIdx, URL x)-
Methods inherited from class org.apache.ignite.internal.jdbc2.JdbcStatement
cancel, clearWarnings, close, closeOnCompletion, doBatchUpdate, execute, execute, execute, execute, execute0, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getArgs, 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, setupQuery, unwrap
-
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
cancel, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, 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, setQueryTimeout
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
Method Detail
-
addBatch
public void addBatch(String sql) throws SQLException
- Specified by:
addBatchin interfaceStatement- Overrides:
addBatchin classJdbcStatement- Throws:
SQLException
-
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 paramIdx, int sqlType) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setBoolean
public void setBoolean(int paramIdx, boolean x) throws SQLException- Specified by:
setBooleanin interfacePreparedStatement- Throws:
SQLException
-
setByte
public void setByte(int paramIdx, byte x) throws SQLException- Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException
-
setShort
public void setShort(int paramIdx, short x) throws SQLException- Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException
-
setInt
public void setInt(int paramIdx, int x) throws SQLException- Specified by:
setIntin interfacePreparedStatement- Throws:
SQLException
-
setLong
public void setLong(int paramIdx, long x) throws SQLException- Specified by:
setLongin interfacePreparedStatement- Throws:
SQLException
-
setFloat
public void setFloat(int paramIdx, float x) throws SQLException- Specified by:
setFloatin interfacePreparedStatement- Throws:
SQLException
-
setDouble
public void setDouble(int paramIdx, double x) throws SQLException- Specified by:
setDoublein interfacePreparedStatement- Throws:
SQLException
-
setBigDecimal
public void setBigDecimal(int paramIdx, BigDecimal x) throws SQLException- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException
-
setString
public void setString(int paramIdx, String x) throws SQLException- Specified by:
setStringin interfacePreparedStatement- Throws:
SQLException
-
setBytes
public void setBytes(int paramIdx, byte[] x) throws SQLException- Specified by:
setBytesin interfacePreparedStatement- Throws:
SQLException
-
setDate
public void setDate(int paramIdx, Date x) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int paramIdx, Time x) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int paramIdx, Timestamp x) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int paramIdx, InputStream x, int len) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setUnicodeStream
public void setUnicodeStream(int paramIdx, InputStream x, int len) throws SQLException- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int paramIdx, InputStream x, int len) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
clearParameters
public void clearParameters() throws SQLException- Specified by:
clearParametersin interfacePreparedStatement- Throws:
SQLException
-
clearBatch
public void clearBatch() throws SQLException- Specified by:
clearBatchin interfaceStatement- Overrides:
clearBatchin classJdbcStatement- Throws:
SQLException
-
setObject
public void setObject(int paramIdx, Object x, int targetSqlType) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int paramIdx, Object x) 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
-
executeBatch
public int[] executeBatch() throws SQLException- Specified by:
executeBatchin interfaceStatement- Overrides:
executeBatchin classJdbcStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int paramIdx, Reader x, int len) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setRef
public void setRef(int paramIdx, Ref x) throws SQLException- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int paramIdx, Blob x) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int paramIdx, Clob x) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setArray
public void setArray(int paramIdx, Array x) 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 paramIdx, Date x, Calendar cal) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int paramIdx, Time x, Calendar cal) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int paramIdx, Timestamp x, Calendar cal) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int paramIdx, int sqlType, String typeName) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setURL
public void setURL(int paramIdx, URL x) throws SQLException- Specified by:
setURLin interfacePreparedStatement- Throws:
SQLException
-
getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLException
Implementation note: If this prepared statement is a multi-statement, returned meta contains meta of parameters from the all statements.- Specified by:
getParameterMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setRowId
public void setRowId(int paramIdx, RowId x) throws SQLException- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException
-
setNString
public void setNString(int paramIdx, String val) throws SQLException- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int paramIdx, Reader val, long len) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int paramIdx, NClob val) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int paramIdx, Reader reader, long len) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int paramIdx, InputStream inputStream, long len) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int paramIdx, Reader reader, long len) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setSQLXML
public void setSQLXML(int paramIdx, SQLXML xmlObj) throws SQLException- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int paramIdx, Object x, int targetSqlType, int scaleOrLen) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int paramIdx, InputStream x, long len) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int paramIdx, InputStream x, long len) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int paramIdx, Reader x, long len) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int paramIdx, InputStream x) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int paramIdx, InputStream x) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int paramIdx, Reader x) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int paramIdx, Reader val) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int paramIdx, Reader reader) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int paramIdx, InputStream inputStream) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int paramIdx, Reader reader) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
-