public class PreparedQuery extends Object implements YdbPreparedQuery
| Constructor and Description |
|---|
PreparedQuery(YdbQuery query,
Map<String,tech.ydb.table.values.Type> types) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
int |
batchSize() |
void |
clearBatch() |
void |
clearParameters() |
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) |
public String getQueryText(tech.ydb.table.query.Params prms)
getQueryText 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 void clearParameters()
clearParameters in interface YdbPreparedQuerypublic void addBatch()
throws SQLException
addBatch in interface YdbPreparedQuerySQLExceptionpublic void clearBatch()
clearBatch in interface YdbPreparedQuerypublic int parametersCount()
parametersCount in interface YdbPreparedQuerypublic int batchSize()
batchSize in interface YdbPreparedQuerypublic List<tech.ydb.table.query.Params> getBatchParams()
getBatchParams in interface YdbPreparedQuerypublic tech.ydb.table.query.Params getCurrentParams()
throws SQLException
getCurrentParams in interface YdbPreparedQuerySQLExceptionpublic String getNameByIndex(int index) throws SQLException
getNameByIndex in interface YdbPreparedQuerySQLExceptionpublic TypeDescription getDescription(int index) throws SQLException
getDescription in interface YdbPreparedQuerySQLExceptionCopyright © 2024. All rights reserved.