public abstract class AbstractPreparedStatement extends ClickHouseStatement implements SQLPreparedStatement
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
parameters |
protected ZoneId |
tz |
block, connection, nativeContextCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
AbstractPreparedStatement(ClickHouseConnection connection,
NativeContext nativeContext,
String[] queryParts) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
assembleQueryPartsAndParameters() |
void |
clearParameters() |
ResultSetMetaData |
getMetaData() |
void |
setArray(int index,
Array x) |
void |
setBigDecimal(int index,
BigDecimal x) |
void |
setBoolean(int index,
boolean x) |
void |
setByte(int index,
byte x) |
void |
setBytes(int index,
byte[] x) |
void |
setDate(int index,
Date x) |
void |
setDate(int index,
Date x,
Calendar cal) |
void |
setDouble(int index,
double x) |
void |
setFloat(int index,
float x) |
void |
setInt(int index,
int x) |
void |
setLong(int index,
long x) |
void |
setNull(int index,
int type) |
void |
setObject(int index,
Object x,
int targetSqlType) |
void |
setObject(int index,
Object x,
int targetSqlType,
int scaleOrLength) |
void |
setShort(int index,
short x) |
void |
setString(int index,
String x) |
void |
setTimestamp(int index,
Timestamp x) |
void |
setTimestamp(int index,
Timestamp x,
Calendar cal) |
void |
setURL(int index,
URL x) |
cancel, clearWarnings, close, execute, executeQuery, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxRows, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSampleBlock, getUpdateCount, getWarnings, isClosed, isPoolable, logger, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxRows, setPoolable, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBatch, execute, executeLargeUpdate, executeQuery, executeUpdate, getParameterMetaData, setAsciiStream, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setObject, setObject, setObject, setRef, setRowId, setSQLXML, setTime, setTime, setUnicodeStreamaddBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, 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, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutisWrapperFor, unwrappublic AbstractPreparedStatement(ClickHouseConnection connection, NativeContext nativeContext, String[] queryParts)
public void setBoolean(int index,
boolean x)
throws SQLException
setBoolean in interface SQLPreparedStatementsetBoolean in interface PreparedStatementSQLExceptionpublic void setByte(int index,
byte x)
throws SQLException
setByte in interface SQLPreparedStatementsetByte in interface PreparedStatementSQLExceptionpublic void setShort(int index,
short x)
throws SQLException
setShort in interface SQLPreparedStatementsetShort in interface PreparedStatementSQLExceptionpublic void setInt(int index,
int x)
throws SQLException
setInt in interface SQLPreparedStatementsetInt in interface PreparedStatementSQLExceptionpublic void setLong(int index,
long x)
throws SQLException
setLong in interface SQLPreparedStatementsetLong in interface PreparedStatementSQLExceptionpublic void setFloat(int index,
float x)
throws SQLException
setFloat in interface SQLPreparedStatementsetFloat in interface PreparedStatementSQLExceptionpublic void setDouble(int index,
double x)
throws SQLException
setDouble in interface SQLPreparedStatementsetDouble in interface PreparedStatementSQLExceptionpublic void setNull(int index,
int type)
throws SQLException
setNull in interface SQLPreparedStatementsetNull in interface PreparedStatementSQLExceptionpublic void setTimestamp(int index,
Timestamp x)
throws SQLException
setTimestamp in interface SQLPreparedStatementsetTimestamp in interface PreparedStatementSQLExceptionpublic void setTimestamp(int index,
Timestamp x,
Calendar cal)
throws SQLException
setTimestamp in interface SQLPreparedStatementsetTimestamp in interface PreparedStatementSQLExceptionpublic void setDate(int index,
Date x)
throws SQLException
setDate in interface SQLPreparedStatementsetDate in interface PreparedStatementSQLExceptionpublic void setDate(int index,
Date x,
Calendar cal)
throws SQLException
setDate in interface SQLPreparedStatementsetDate in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int index,
BigDecimal x)
throws SQLException
setBigDecimal in interface SQLPreparedStatementsetBigDecimal in interface PreparedStatementSQLExceptionpublic void setString(int index,
String x)
throws SQLException
setString in interface SQLPreparedStatementsetString in interface PreparedStatementSQLExceptionpublic void setBytes(int index,
byte[] x)
throws SQLException
setBytes in interface SQLPreparedStatementsetBytes in interface PreparedStatementSQLExceptionpublic void setURL(int index,
URL x)
throws SQLException
setURL in interface SQLPreparedStatementsetURL in interface PreparedStatementSQLExceptionpublic void setArray(int index,
Array x)
throws SQLException
setArray in interface SQLPreparedStatementsetArray in interface PreparedStatementSQLExceptionpublic void setObject(int index,
Object x,
int targetSqlType)
throws SQLException
setObject in interface SQLPreparedStatementsetObject in interface PreparedStatementSQLExceptionpublic void setObject(int index,
Object x,
int targetSqlType,
int scaleOrLength)
throws SQLException
setObject in interface SQLPreparedStatementsetObject in interface PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface SQLPreparedStatementgetMetaData in interface PreparedStatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters in interface SQLPreparedStatementclearParameters in interface PreparedStatementSQLExceptionprotected String assembleQueryPartsAndParameters() throws SQLException
SQLExceptionCopyright © 2021. All rights reserved.