public class BatchedQuery extends Object implements YdbPreparedQuery
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
int |
batchSize() |
void |
clearBatch() |
void |
clearParameters() |
static BatchedQuery |
createAutoBatched(YqlBatcher batcher,
Map<String,tech.ydb.table.values.Type> tableColumns) |
List<tech.ydb.table.query.Params> |
getBatchParams() |
tech.ydb.table.query.Params |
getCurrentParams() |
TypeDescription |
getDescription(int index) |
String |
getNameByIndex(int index) |
String |
getQueryText(tech.ydb.table.query.Params prms) |
int |
parametersCount() |
void |
setParam(int index,
Object obj,
int sqlType) |
void |
setParam(String name,
Object obj,
int sqlType) |
static BatchedQuery |
tryCreateBatched(YdbQuery query,
Map<String,tech.ydb.table.values.Type> types) |
public String getQueryText(tech.ydb.table.query.Params prms)
getQueryText in interface YdbPreparedQuerypublic int parametersCount()
parametersCount in interface YdbPreparedQuerypublic int batchSize()
batchSize in interface YdbPreparedQuerypublic void clearParameters()
clearParameters in interface YdbPreparedQuerypublic void addBatch()
throws SQLException
addBatch in interface YdbPreparedQuerySQLExceptionpublic void clearBatch()
clearBatch in interface YdbPreparedQuerypublic tech.ydb.table.query.Params getCurrentParams()
throws SQLException
getCurrentParams in interface YdbPreparedQuerySQLExceptionpublic List<tech.ydb.table.query.Params> getBatchParams()
getBatchParams in interface YdbPreparedQuerypublic void setParam(int index,
Object obj,
int sqlType)
throws SQLException
setParam in interface YdbPreparedQuerySQLExceptionpublic void setParam(String name, Object obj, int sqlType) throws SQLException
setParam in interface YdbPreparedQuerySQLExceptionpublic String getNameByIndex(int index) throws SQLException
getNameByIndex in interface YdbPreparedQuerySQLExceptionpublic TypeDescription getDescription(int index) throws SQLException
getDescription in interface YdbPreparedQuerySQLExceptionpublic static BatchedQuery tryCreateBatched(YdbQuery query, Map<String,tech.ydb.table.values.Type> types)
public static BatchedQuery createAutoBatched(YqlBatcher batcher, Map<String,tech.ydb.table.values.Type> tableColumns)
Copyright © 2024. All rights reserved.