Package com.clickhouse.jdbc
Interface ClickHouseStatement
- All Superinterfaces:
AutoCloseable,Statement,Wrapper
- All Known Implementing Classes:
AbstractPreparedStatement,ClickHouseStatementImpl,InputBasedPreparedStatement,SqlBasedPreparedStatement,StreamBasedPreparedStatement,TableBasedPreparedStatement
-
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
Modifier and TypeMethodDescriptionGets mirrored output stream.intvoidSets mirrored output stream, which will be later used for dumping allResultSetgenerated by this statement, viaClickHouseInputStream.setCopyToTarget(OutputStream).voidsetNullAsDefault(int level) default ClickHouseRequest.Mutationwrite()Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, 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, setQueryTimeoutMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceStatement- Throws:
SQLException
-
getConfig
ClickHouseConfig getConfig() -
getMirroredOutput
OutputStream getMirroredOutput()Gets mirrored output stream.- Returns:
- mirrored output stream, could be null
-
setMirroredOutput
Sets mirrored output stream, which will be later used for dumping allResultSetgenerated by this statement, viaClickHouseInputStream.setCopyToTarget(OutputStream).- Parameters:
out- mirrored output stream, could be null
-
getNullAsDefault
int getNullAsDefault() -
setNullAsDefault
void setNullAsDefault(int level) -
getRequest
ClickHouseRequest<?> getRequest() -
write
-