Package com.clickhouse.jdbc.internal
Class AbstractPreparedStatement
java.lang.Object
com.clickhouse.jdbc.JdbcWrapper
com.clickhouse.jdbc.internal.ClickHouseStatementImpl
com.clickhouse.jdbc.internal.AbstractPreparedStatement
- All Implemented Interfaces:
ClickHouseConfigChangeListener<ClickHouseRequest<?>>,ClickHouseStatement,AutoCloseable,PreparedStatement,Statement,Wrapper
- Direct Known Subclasses:
InputBasedPreparedStatement,SqlBasedPreparedStatement,StreamBasedPreparedStatement,TableBasedPreparedStatement
public abstract class AbstractPreparedStatement
extends ClickHouseStatementImpl
implements PreparedStatement
-
Field Summary
Fields inherited from class com.clickhouse.jdbc.internal.ClickHouseStatementImpl
mapper, parsedStmtsFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractPreparedStatement(ClickHouseConnectionImpl connection, ClickHouseRequest<?> request, int resultSetType, int resultSetConcurrency, int resultSetHoldability) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal booleanfinal booleanfinal booleanfinal booleanprotected abstract long[]executeAny(boolean asBatch) long[]final longexecuteLargeUpdate(String sql) final longexecuteLargeUpdate(String sql, int autoGeneratedKeys) final longexecuteLargeUpdate(String sql, int[] columnIndexes) final longexecuteLargeUpdate(String sql, String[] columnNames) final ResultSetexecuteQuery(String sql) final intfinal intexecuteUpdate(String sql) final intexecuteUpdate(String sql, int autoGeneratedKeys) final intexecuteUpdate(String sql, int[] columnIndexes) final intexecuteUpdate(String sql, String[] columnNames) protected abstract intprotected inttoArrayIndex(int parameterIndex) Methods inherited from class com.clickhouse.jdbc.internal.ClickHouseStatementImpl
cancel, clearBatch, clearWarnings, close, closeOnCompletion, ensureOpen, executeBatch, executeInsert, executeStatement, executeStatement, getConfig, getConnection, getDataProcessor, getDataProcessor, getFetchDirection, getFetchSize, getFile, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getLastStatement, getMaxFieldSize, getMaxRows, getMirroredOutput, getMoreResults, getMoreResults, getNullAsDefault, getQueryTimeout, getRequest, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, newEmptyResultSet, optionChanged, parseSqlStatements, processSqlStatement, resetDataProcessor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setLastStatement, setMaxFieldSize, setMaxRows, setMirroredOutput, setNullAsDefault, setPoolable, setQueryTimeout, settingChanged, unwrap, updateResultMethods 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.PreparedStatement
addBatch, clearParameters, execute, executeLargeUpdate, executeQuery, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLMethods inherited from interface java.sql.Statement
cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeBatch, 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
-
Constructor Details
-
AbstractPreparedStatement
protected AbstractPreparedStatement(ClickHouseConnectionImpl connection, ClickHouseRequest<?> request, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Throws:
SQLException
-
-
Method Details
-
executeAny
- Throws:
SQLException
-
getMaxParameterIndex
protected abstract int getMaxParameterIndex() -
toArrayIndex
- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfaceStatement- Overrides:
addBatchin classClickHouseStatementImpl- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classClickHouseStatementImpl- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classClickHouseStatementImpl- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classClickHouseStatementImpl- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classClickHouseStatementImpl- Throws:
SQLException
-
executeLargeBatch
- Specified by:
executeLargeBatchin interfaceStatement- Overrides:
executeLargeBatchin classClickHouseStatementImpl- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Overrides:
executeLargeUpdatein classClickHouseStatementImpl- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Throws:
SQLException
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Overrides:
executeQueryin classClickHouseStatementImpl- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classClickHouseStatementImpl- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classClickHouseStatementImpl- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classClickHouseStatementImpl- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classClickHouseStatementImpl- Throws:
SQLException
-