Package com.clickhouse.jdbc.internal
Class ClickHouseStatementImpl
java.lang.Object
com.clickhouse.jdbc.JdbcWrapper
com.clickhouse.jdbc.internal.ClickHouseStatementImpl
- All Implemented Interfaces:
ClickHouseConfigChangeListener<ClickHouseRequest<?>>,ClickHouseStatement,AutoCloseable,Statement,Wrapper
- Direct Known Subclasses:
AbstractPreparedStatement
@Deprecated
public class ClickHouseStatementImpl
extends JdbcWrapper
implements ClickHouseConfigChangeListener<ClickHouseRequest<?>>, ClickHouseStatement
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JdbcTypeMappingDeprecated.protected ClickHouseSqlStatement[]Deprecated.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
ConstructorsModifierConstructorDescriptionprotectedClickHouseStatementImpl(ClickHouseConnectionImpl connection, ClickHouseRequest<?> request, int resultSetType, int resultSetConcurrency, int resultSetHoldability) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidcancel()Deprecated.voidDeprecated.voidDeprecated.voidclose()Deprecated.voidDeprecated.protected voidDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.int[]Deprecated.protected intexecuteInsert(String sql, InputStream input) Deprecated.long[]Deprecated.longexecuteLargeUpdate(String sql) Deprecated.executeQuery(String sql) Deprecated.protected ClickHouseResponseexecuteStatement(ClickHouseSqlStatement stmt, Map<ClickHouseOption, Serializable> options, List<ClickHouseExternalTable> tables, Map<String, String> settings) Deprecated.protected ClickHouseResponseexecuteStatement(String stmt, Map<ClickHouseOption, Serializable> options, List<ClickHouseExternalTable> tables, Map<String, String> settings) Deprecated.intexecuteUpdate(String sql) Deprecated.intexecuteUpdate(String sql, int autoGeneratedKeys) Deprecated.intexecuteUpdate(String sql, int[] columnIndexes) Deprecated.intexecuteUpdate(String sql, String[] columnNames) Deprecated.Deprecated.Deprecated.protected ClickHouseDataProcessorgetDataProcessor(ClickHouseInputStream input, Map<String, Serializable> settings, ClickHouseColumn[] columns) Deprecated.protected ClickHouseDataProcessorgetDataProcessor(ClickHouseOutputStream output, Map<String, Serializable> settings, ClickHouseColumn[] columns) Deprecated.intDeprecated.intDeprecated.protected ClickHouseFilegetFile(ClickHouseFile f, ClickHouseSqlStatement stmt) Deprecated.Deprecated.longDeprecated.longDeprecated.protected ClickHouseSqlStatementDeprecated.intDeprecated.intDeprecated.Deprecated.Gets mirrored output stream.booleanDeprecated.booleangetMoreResults(int current) Deprecated.intDeprecated.intDeprecated.Deprecated.Deprecated.intDeprecated.intDeprecated.intDeprecated.intDeprecated.Deprecated.booleanisClosed()Deprecated.booleanDeprecated.booleanDeprecated.booleanisWrapperFor(Class<?> iface) Deprecated.protected ClickHouseResultSetDeprecated.voidoptionChanged(ClickHouseRequest<?> source, ClickHouseOption option, Serializable oldValue, Serializable newValue) Deprecated.protected ClickHouseSqlStatementparseSqlStatements(String sql) Deprecated.protected ClickHouseResponseDeprecated.protected voidDeprecated.voidsetCursorName(String name) Deprecated.voidsetEscapeProcessing(boolean enable) Deprecated.voidsetFetchDirection(int direction) Deprecated.voidsetFetchSize(int rows) Deprecated.voidsetLargeMaxRows(long max) Deprecated.protected voidDeprecated.voidsetMaxFieldSize(int max) Deprecated.voidsetMaxRows(int max) Deprecated.voidDeprecated.Sets mirrored output stream, which will be later used for dumping allResultSetgenerated by this statement, viaClickHouseInputStream.setCopyToTarget(OutputStream).voidsetNullAsDefault(int level) Deprecated.voidsetPoolable(boolean poolable) Deprecated.voidsetQueryTimeout(int seconds) Deprecated.voidsettingChanged(ClickHouseRequest<?> source, String setting, Serializable oldValue, Serializable newValue) Deprecated.<T> TDeprecated.protected ResultSetupdateResult(ClickHouseSqlStatement stmt, ClickHouseResponse response) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.clickhouse.config.ClickHouseConfigChangeListener
propertyChangedMethods inherited from interface com.clickhouse.jdbc.ClickHouseStatement
writeMethods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, isSimpleIdentifier
-
Field Details
-
mapper
Deprecated. -
parsedStmts
Deprecated.
-
-
Constructor Details
-
ClickHouseStatementImpl
protected ClickHouseStatementImpl(ClickHouseConnectionImpl connection, ClickHouseRequest<?> request, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Deprecated.- Throws:
SQLException
-
-
Method Details
-
ensureOpen
Deprecated.- Throws:
SQLException
-
getFile
Deprecated. -
processSqlStatement
Deprecated.- Throws:
SQLException
-
executeStatement
protected ClickHouseResponse executeStatement(String stmt, Map<ClickHouseOption, Serializable> options, List<ClickHouseExternalTable> tables, Map<String, throws SQLExceptionString> settings) Deprecated.- Throws:
SQLException
-
executeStatement
protected ClickHouseResponse executeStatement(ClickHouseSqlStatement stmt, Map<ClickHouseOption, Serializable> options, List<ClickHouseExternalTable> tables, Map<String, throws SQLExceptionString> settings) Deprecated.- Throws:
SQLException
-
executeInsert
Deprecated.- Throws:
SQLException
-
getDataProcessor
protected ClickHouseDataProcessor getDataProcessor(ClickHouseInputStream input, Map<String, Serializable> settings, ClickHouseColumn[] columns) throws SQLExceptionDeprecated.- Throws:
SQLException
-
getDataProcessor
protected ClickHouseDataProcessor getDataProcessor(ClickHouseOutputStream output, Map<String, Serializable> settings, ClickHouseColumn[] columns) throws SQLExceptionDeprecated.- Throws:
SQLException
-
resetDataProcessor
protected void resetDataProcessor()Deprecated. -
getLastStatement
Deprecated. -
setLastStatement
Deprecated. -
parseSqlStatements
Deprecated. -
newEmptyResultSet
Deprecated.- Throws:
SQLException
-
updateResult
protected ResultSet updateResult(ClickHouseSqlStatement stmt, ClickHouseResponse response) throws SQLException Deprecated.- Throws:
SQLException
-
optionChanged
public void optionChanged(ClickHouseRequest<?> source, ClickHouseOption option, Serializable oldValue, Serializable newValue) Deprecated.- Specified by:
optionChangedin interfaceClickHouseConfigChangeListener<ClickHouseRequest<?>>
-
settingChanged
public void settingChanged(ClickHouseRequest<?> source, String setting, Serializable oldValue, Serializable newValue) Deprecated.- Specified by:
settingChangedin interfaceClickHouseConfigChangeListener<ClickHouseRequest<?>>
-
execute
Deprecated.- Specified by:
executein interfaceStatement- Throws:
SQLException
-
executeQuery
Deprecated.- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
Deprecated.- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
Deprecated.- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
Deprecated.- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
Deprecated.- Specified by:
setMaxFieldSizein interfaceStatement- Throws:
SQLException
-
getLargeMaxRows
Deprecated.- Specified by:
getLargeMaxRowsin interfaceStatement- Throws:
SQLException
-
getMaxRows
Deprecated.- Specified by:
getMaxRowsin interfaceStatement- Throws:
SQLException
-
setLargeMaxRows
Deprecated.- Specified by:
setLargeMaxRowsin interfaceStatement- Throws:
SQLException
-
setMaxRows
Deprecated.- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
Deprecated.- Specified by:
setEscapeProcessingin interfaceStatement- Throws:
SQLException
-
getQueryTimeout
Deprecated.- Specified by:
getQueryTimeoutin interfaceStatement- Throws:
SQLException
-
setQueryTimeout
Deprecated.- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
SQLException
-
cancel
Deprecated.- Specified by:
cancelin interfaceStatement- Throws:
SQLException
-
getWarnings
Deprecated.- Specified by:
getWarningsin interfaceStatement- Throws:
SQLException
-
clearWarnings
Deprecated.- Specified by:
clearWarningsin interfaceStatement- Throws:
SQLException
-
setCursorName
Deprecated.- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
getResultSet
Deprecated.- Specified by:
getResultSetin interfaceStatement- Throws:
SQLException
-
getLargeUpdateCount
Deprecated.- Specified by:
getLargeUpdateCountin interfaceStatement- Throws:
SQLException
-
getUpdateCount
Deprecated.- Specified by:
getUpdateCountin interfaceStatement- Throws:
SQLException
-
getMoreResults
Deprecated.- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
setFetchDirection
Deprecated.- Specified by:
setFetchDirectionin interfaceStatement- Throws:
SQLException
-
getFetchDirection
Deprecated.- Specified by:
getFetchDirectionin interfaceStatement- Throws:
SQLException
-
setFetchSize
Deprecated.- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
getFetchSize
Deprecated.- Specified by:
getFetchSizein interfaceStatement- Throws:
SQLException
-
getResultSetConcurrency
Deprecated.- Specified by:
getResultSetConcurrencyin interfaceStatement- Throws:
SQLException
-
getResultSetType
Deprecated.- Specified by:
getResultSetTypein interfaceStatement- Throws:
SQLException
-
addBatch
Deprecated.- Specified by:
addBatchin interfaceStatement- Throws:
SQLException
-
clearBatch
Deprecated.- Specified by:
clearBatchin interfaceStatement- Throws:
SQLException
-
executeBatch
Deprecated.- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
executeLargeBatch
Deprecated.- Specified by:
executeLargeBatchin interfaceStatement- Throws:
SQLException
-
getMoreResults
Deprecated.- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
Deprecated.- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
executeUpdate
Deprecated.- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
Deprecated.- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
Deprecated.- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
execute
Deprecated.- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
Deprecated.- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
Deprecated.- Specified by:
executein interfaceStatement- Throws:
SQLException
-
getResultSetHoldability
Deprecated.- Specified by:
getResultSetHoldabilityin interfaceStatement- Throws:
SQLException
-
isClosed
Deprecated.- Specified by:
isClosedin interfaceStatement- Throws:
SQLException
-
setPoolable
Deprecated.- Specified by:
setPoolablein interfaceStatement- Throws:
SQLException
-
isPoolable
Deprecated.- Specified by:
isPoolablein interfaceStatement- Throws:
SQLException
-
closeOnCompletion
Deprecated.- Specified by:
closeOnCompletionin interfaceStatement- Throws:
SQLException
-
isCloseOnCompletion
Deprecated.- Specified by:
isCloseOnCompletionin interfaceStatement- Throws:
SQLException
-
getConnection
Deprecated.- Specified by:
getConnectionin interfaceClickHouseStatement- Specified by:
getConnectionin interfaceStatement- Throws:
SQLException
-
getConfig
Deprecated.- Specified by:
getConfigin interfaceClickHouseStatement
-
getMirroredOutput
Deprecated.Description copied from interface:ClickHouseStatementGets mirrored output stream.- Specified by:
getMirroredOutputin interfaceClickHouseStatement- Returns:
- mirrored output stream, could be null
-
setMirroredOutput
Deprecated.Description copied from interface:ClickHouseStatementSets mirrored output stream, which will be later used for dumping allResultSetgenerated by this statement, viaClickHouseInputStream.setCopyToTarget(OutputStream).- Specified by:
setMirroredOutputin interfaceClickHouseStatement- Parameters:
out- mirrored output stream, could be null
-
getNullAsDefault
public int getNullAsDefault()Deprecated.- Specified by:
getNullAsDefaultin interfaceClickHouseStatement
-
setNullAsDefault
public void setNullAsDefault(int level) Deprecated.- Specified by:
setNullAsDefaultin interfaceClickHouseStatement
-
getRequest
Deprecated.- Specified by:
getRequestin interfaceClickHouseStatement
-
isWrapperFor
Deprecated.- Specified by:
isWrapperForin interfaceWrapper- Overrides:
isWrapperForin classJdbcWrapper- Throws:
SQLException
-
unwrap
Deprecated.- Specified by:
unwrapin interfaceWrapper- Overrides:
unwrapin classJdbcWrapper- Throws:
SQLException
-