Package com.databend.jdbc
Class DatabendPreparedStatement
- java.lang.Object
-
- com.databend.jdbc.DatabendStatement
-
- com.databend.jdbc.DatabendPreparedStatement
-
- All Implemented Interfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
public class DatabendPreparedStatement extends DatabendStatement 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch()voidclearBatch()voidclearParameters()voidclose()static StringconvertArrayListToString(ArrayList<?> arrayList)static StringconvertArrayToString(Array array)static StringconvertToJsonString(Map<?,?> map)booleanexecute()int[]executeBatch()ResultSetexecuteQuery()intexecuteUpdate()ResultSetMetaDatagetMetaData()ParameterMetaDatagetParameterMetaData()voidsetArray(int i, Array array)voidsetAsciiStream(int i, InputStream inputStream)voidsetAsciiStream(int i, InputStream inputStream, int i1)voidsetAsciiStream(int i, InputStream inputStream, long l)voidsetBigDecimal(int i, BigDecimal v)voidsetBinaryStream(int i, InputStream inputStream)voidsetBinaryStream(int i, InputStream inputStream, int i1)voidsetBinaryStream(int i, InputStream inputStream, long l)voidsetBlob(int i, InputStream inputStream)voidsetBlob(int i, InputStream inputStream, long l)voidsetBlob(int i, Blob x)voidsetBoolean(int i, boolean b)voidsetByte(int i, byte b)voidsetBytes(int i, byte[] v)voidsetCharacterStream(int i, Reader reader)voidsetCharacterStream(int i, Reader reader, int i1)voidsetCharacterStream(int i, Reader reader, long l)voidsetClob(int i, Reader reader)voidsetClob(int i, Reader reader, long l)voidsetClob(int i, Clob x)voidsetDate(int i, Date date)voidsetDate(int i, Date date, Calendar calendar)voidsetDouble(int i, double v)voidsetFloat(int i, float v)voidsetInt(int i, int i1)voidsetLong(int i, long l)voidsetNCharacterStream(int i, Reader reader)voidsetNCharacterStream(int i, Reader reader, long l)voidsetNClob(int i, Reader reader)voidsetNClob(int i, Reader reader, long l)voidsetNClob(int i, NClob nClob)voidsetNString(int i, String s)voidsetNull(int i, int i1)voidsetNull(int i, int i1, String s)voidsetObject(int parameterIndex, Object x)voidsetObject(int parameterIndex, Object x, int targetSqlType)voidsetObject(int i, Object o, int i1, int i2)voidsetRef(int i, Ref ref)voidsetRowId(int i, RowId rowId)voidsetShort(int i, short i1)voidsetSQLXML(int i, SQLXML sqlxml)voidsetString(int i, String s)voidsetTime(int i, Time v)voidsetTime(int i, Time time, Calendar calendar)voidsetTimestamp(int i, Timestamp v)voidsetTimestamp(int i, Timestamp timestamp, Calendar calendar)voidsetUnicodeStream(int i, InputStream inputStream, int i1)voidsetURL(int i, URL url)-
Methods inherited from class com.databend.jdbc.DatabendStatement
addBatch, cancel, checkOpen, clearWarnings, closeOnCompletion, connection, execute, execute, execute, execute, 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, 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
addBatch, cancel, clearWarnings, 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
-
close
public void close() throws SQLException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Overrides:
closein classDatabendStatement- 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
-
execute
public boolean execute() throws SQLException- Specified by:
executein interfacePreparedStatement- Throws:
SQLException
-
executeBatch
public int[] executeBatch() throws SQLException- Specified by:
executeBatchin interfaceStatement- Overrides:
executeBatchin classDatabendStatement- Throws:
SQLException
-
setNull
public void setNull(int i, int i1) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setBoolean
public void setBoolean(int i, boolean b) throws SQLException- Specified by:
setBooleanin interfacePreparedStatement- Throws:
SQLException
-
setByte
public void setByte(int i, byte b) throws SQLException- Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException
-
setShort
public void setShort(int i, short i1) throws SQLException- Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException
-
setInt
public void setInt(int i, int i1) throws SQLException- Specified by:
setIntin interfacePreparedStatement- Throws:
SQLException
-
setLong
public void setLong(int i, long l) throws SQLException- Specified by:
setLongin interfacePreparedStatement- Throws:
SQLException
-
setFloat
public void setFloat(int i, float v) throws SQLException- Specified by:
setFloatin interfacePreparedStatement- Throws:
SQLException
-
setDouble
public void setDouble(int i, double v) throws SQLException- Specified by:
setDoublein interfacePreparedStatement- Throws:
SQLException
-
setBigDecimal
public void setBigDecimal(int i, BigDecimal v) throws SQLException- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException
-
setString
public void setString(int i, String s) throws SQLException- Specified by:
setStringin interfacePreparedStatement- Throws:
SQLException
-
setBytes
public void setBytes(int i, byte[] v) throws SQLException- Specified by:
setBytesin interfacePreparedStatement- Throws:
SQLException
-
setDate
public void setDate(int i, Date date) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int i, Time v) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int i, Timestamp v) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int i, InputStream inputStream, int i1) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setUnicodeStream
public void setUnicodeStream(int i, InputStream inputStream, int i1) throws SQLException- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int i, InputStream inputStream, int i1) 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 x, int targetSqlType) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
addBatch
public void addBatch() throws SQLException- Specified by:
addBatchin interfacePreparedStatement- Throws:
SQLException
-
clearBatch
public void clearBatch() throws SQLException- Specified by:
clearBatchin interfaceStatement- Overrides:
clearBatchin classDatabendStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int i, Reader reader, int i1) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setRef
public void setRef(int i, Ref ref) throws SQLException- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int i, Blob x) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int i, Clob x) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setArray
public void setArray(int i, 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 i, Date date, Calendar calendar) throws SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int i, Time time, Calendar calendar) throws SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int i, Timestamp timestamp, Calendar calendar) throws SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int i, int i1, String s) throws SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setURL
public void setURL(int i, 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 i, RowId rowId) throws SQLException- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException
-
setNString
public void setNString(int i, String s) throws SQLException- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int i, Reader reader, long l) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int i, NClob nClob) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int i, Reader reader, long l) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int i, InputStream inputStream, long l) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int i, Reader reader, long l) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setSQLXML
public void setSQLXML(int i, SQLXML sqlxml) throws SQLException- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int i, Object o, int i1, int i2) throws SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int i, InputStream inputStream, long l) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int i, InputStream inputStream, long l) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int i, Reader reader, long l) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int i, InputStream inputStream) throws SQLException- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int i, InputStream inputStream) throws SQLException- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int i, Reader reader) throws SQLException- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int i, Reader reader) throws SQLException- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int i, Reader reader) throws SQLException- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int i, InputStream inputStream) throws SQLException- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int i, Reader reader) throws SQLException- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
-