Package com.clickhouse.jdbc
Class WriterStatementImpl
java.lang.Object
com.clickhouse.jdbc.StatementImpl
com.clickhouse.jdbc.PreparedStatementImpl
com.clickhouse.jdbc.WriterStatementImpl
- All Implemented Interfaces:
JdbcV2Wrapper,AutoCloseable,PreparedStatement,Statement,Wrapper
Implements data streaming through Client Writer API.
See
PreparedStatementImpl-
Field Summary
Fields inherited from class com.clickhouse.jdbc.PreparedStatementImpl
DATETIME_FORMATTER, NULL_LITERAL, TIME_FORMATTERFields inherited from class com.clickhouse.jdbc.StatementImpl
batch, currentResultSet, currentUpdateCount, isPoolable, lastQueryId, localSettings, queryTimeoutFields 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
ConstructorsConstructorDescriptionWriterStatementImpl(ConnectionImpl connection, String originalSql, TableSchema tableSchema, com.clickhouse.jdbc.internal.ParsedPreparedStatement parsedStatement) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()voidcancel()voidvoidclose()booleanexecute()int[]long[]longintbooleanvoidvoidsetAsciiStream(int parameterIndex, InputStream x) voidsetAsciiStream(int parameterIndex, InputStream x, int length) voidsetAsciiStream(int parameterIndex, InputStream x, long length) voidsetBigDecimal(int parameterIndex, BigDecimal x) voidsetBinaryStream(int parameterIndex, InputStream x) voidsetBinaryStream(int parameterIndex, InputStream x, int length) voidsetBinaryStream(int parameterIndex, InputStream x, long length) voidsetBlob(int parameterIndex, InputStream inputStream) voidsetBlob(int parameterIndex, InputStream x, long length) voidvoidsetBoolean(int parameterIndex, boolean x) voidsetByte(int parameterIndex, byte x) voidsetBytes(int parameterIndex, byte[] x) voidsetCharacterStream(int parameterIndex, Reader x) voidsetCharacterStream(int parameterIndex, Reader x, int length) voidsetCharacterStream(int parameterIndex, Reader x, long length) voidvoidvoidvoidvoidvoidsetDouble(int parameterIndex, double x) voidsetFloat(int parameterIndex, float x) voidsetInt(int parameterIndex, int x) voidsetLong(int parameterIndex, long x) voidsetNCharacterStream(int parameterIndex, Reader x) voidsetNCharacterStream(int parameterIndex, Reader x, long length) voidvoidvoidvoidsetNString(int parameterIndex, String value) voidsetNull(int parameterIndex, int sqlType) voidvoidvoidvoidvoidvoidvoidvoidsetShort(int parameterIndex, short x) voidvoidvoidvoidvoidsetTimestamp(int parameterIndex, Timestamp x) voidsetTimestamp(int parameterIndex, Timestamp x, Calendar cal) voidsetUnicodeStream(int parameterIndex, InputStream x, int length) voidMethods inherited from class com.clickhouse.jdbc.PreparedStatementImpl
addBatch, execute, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getMetaData, getParameterMetaData, replaceQuestionMarks, setRef, sqlDateToInstant, sqlTimestampToZDT, sqlTimeToInstantMethods inherited from class com.clickhouse.jdbc.StatementImpl
clearBatch, clearWarnings, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, ensureOpen, executeQueryImpl, executeUpdateImpl, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getLastQueryId, getLastStatementSql, getLocalSettings, getMaxFieldSize, getMaxRows, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, onResultSetClosed, postUpdateActions, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.clickhouse.jdbc.JdbcV2Wrapper
isWrapperFor, unwrapMethods inherited from interface java.sql.PreparedStatement
getMetaData, getParameterMetaData, setRefMethods inherited from interface java.sql.Statement
addBatch, clearBatch, clearWarnings, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
-
Constructor Details
-
WriterStatementImpl
public WriterStatementImpl(ConnectionImpl connection, String originalSql, TableSchema tableSchema, com.clickhouse.jdbc.internal.ParsedPreparedStatement parsedStatement) throws SQLException - Throws:
SQLException
-
-
Method Details
-
executeQuery
- Specified by:
executeQueryin interfacePreparedStatement- Overrides:
executeQueryin classPreparedStatementImpl- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfacePreparedStatement- Overrides:
executeUpdatein classPreparedStatementImpl- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Overrides:
getMoreResultsin classStatementImpl- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceStatement- Overrides:
getResultSetin classStatementImpl- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfacePreparedStatement- Overrides:
executeLargeUpdatein classPreparedStatementImpl- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Overrides:
setNullin classPreparedStatementImpl- Throws:
SQLException
-
setBoolean
- Specified by:
setBooleanin interfacePreparedStatement- Overrides:
setBooleanin classPreparedStatementImpl- Throws:
SQLException
-
setByte
- Specified by:
setBytein interfacePreparedStatement- Overrides:
setBytein classPreparedStatementImpl- Throws:
SQLException
-
setShort
- Specified by:
setShortin interfacePreparedStatement- Overrides:
setShortin classPreparedStatementImpl- Throws:
SQLException
-
setInt
- Specified by:
setIntin interfacePreparedStatement- Overrides:
setIntin classPreparedStatementImpl- Throws:
SQLException
-
setLong
- Specified by:
setLongin interfacePreparedStatement- Overrides:
setLongin classPreparedStatementImpl- Throws:
SQLException
-
setFloat
- Specified by:
setFloatin interfacePreparedStatement- Overrides:
setFloatin classPreparedStatementImpl- Throws:
SQLException
-
setDouble
- Specified by:
setDoublein interfacePreparedStatement- Overrides:
setDoublein classPreparedStatementImpl- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimalin interfacePreparedStatement- Overrides:
setBigDecimalin classPreparedStatementImpl- Throws:
SQLException
-
setString
- Specified by:
setStringin interfacePreparedStatement- Overrides:
setStringin classPreparedStatementImpl- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfacePreparedStatement- Overrides:
setBytesin classPreparedStatementImpl- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Overrides:
setDatein classPreparedStatementImpl- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Overrides:
setTimein classPreparedStatementImpl- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Overrides:
setTimestampin classPreparedStatementImpl- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Overrides:
setAsciiStreamin classPreparedStatementImpl- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Overrides:
setAsciiStreamin classPreparedStatementImpl- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Overrides:
setAsciiStreamin classPreparedStatementImpl- Throws:
SQLException
-
setUnicodeStream
- Specified by:
setUnicodeStreamin interfacePreparedStatement- Overrides:
setUnicodeStreamin classPreparedStatementImpl- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Overrides:
setBinaryStreamin classPreparedStatementImpl- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Overrides:
setBinaryStreamin classPreparedStatementImpl- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Overrides:
setBinaryStreamin classPreparedStatementImpl- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Overrides:
setCharacterStreamin classPreparedStatementImpl- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Overrides:
setCharacterStreamin classPreparedStatementImpl- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Overrides:
setCharacterStreamin classPreparedStatementImpl- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Overrides:
setNCharacterStreamin classPreparedStatementImpl- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Overrides:
setNCharacterStreamin classPreparedStatementImpl- Throws:
SQLException
-
clearParameters
- Specified by:
clearParametersin interfacePreparedStatement- Overrides:
clearParametersin classPreparedStatementImpl- Throws:
SQLException
-
execute
- Specified by:
executein interfacePreparedStatement- Overrides:
executein classPreparedStatementImpl- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfacePreparedStatement- Overrides:
addBatchin classPreparedStatementImpl- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Overrides:
setClobin classPreparedStatementImpl- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Overrides:
setClobin classPreparedStatementImpl- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Overrides:
setClobin classPreparedStatementImpl- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Overrides:
setBlobin classPreparedStatementImpl- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Overrides:
setBlobin classPreparedStatementImpl- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Overrides:
setBlobin classPreparedStatementImpl- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Overrides:
setNClobin classPreparedStatementImpl- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Overrides:
setNClobin classPreparedStatementImpl- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Overrides:
setNClobin classPreparedStatementImpl- Throws:
SQLException
-
setSQLXML
- Specified by:
setSQLXMLin interfacePreparedStatement- Overrides:
setSQLXMLin classPreparedStatementImpl- Throws:
SQLException
-
setArray
- Specified by:
setArrayin interfacePreparedStatement- Overrides:
setArrayin classPreparedStatementImpl- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Overrides:
setDatein classPreparedStatementImpl- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Overrides:
setTimein classPreparedStatementImpl- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Overrides:
setTimestampin classPreparedStatementImpl- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Overrides:
setNullin classPreparedStatementImpl- Throws:
SQLException
-
setURL
- Specified by:
setURLin interfacePreparedStatement- Overrides:
setURLin classPreparedStatementImpl- Throws:
SQLException
-
setRowId
- Specified by:
setRowIdin interfacePreparedStatement- Overrides:
setRowIdin classPreparedStatementImpl- Throws:
SQLException
-
setNString
- Specified by:
setNStringin interfacePreparedStatement- Overrides:
setNStringin classPreparedStatementImpl- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException - Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classPreparedStatementImpl- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classPreparedStatementImpl- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classPreparedStatementImpl- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classPreparedStatementImpl- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException - Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classPreparedStatementImpl- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Overrides:
closein classStatementImpl- Throws:
SQLException
-
cancel
- Specified by:
cancelin interfaceStatement- Overrides:
cancelin classStatementImpl- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Overrides:
executeBatchin classPreparedStatementImpl- Throws:
SQLException
-
executeLargeBatch
- Specified by:
executeLargeBatchin interfaceStatement- Overrides:
executeLargeBatchin classPreparedStatementImpl- Throws:
SQLException
-