tech.ydb.jdbc.query.YdbPreparedQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-jdbc-driver Show documentation
Show all versions of ydb-jdbc-driver Show documentation
JDBC Driver over YDB Java SDK
package tech.ydb.jdbc.query;
import java.sql.SQLException;
import java.util.List;
import javax.annotation.Nullable;
import tech.ydb.jdbc.common.TypeDescription;
import tech.ydb.table.query.Params;
/**
*
* @author Aleksandr Gorshenin
*/
public interface YdbPreparedQuery {
String getQueryText(Params prms) throws SQLException;
void clearParameters();
void setParam(int index, @Nullable Object obj, int sqlType) throws SQLException;
void setParam(String name, @Nullable Object obj, int sqlType) throws SQLException;
String getNameByIndex(int index) throws SQLException;
void addBatch() throws SQLException;
void clearBatch();
int batchSize();
int parametersCount();
TypeDescription getDescription(int index) throws SQLException;
List getBatchParams() throws SQLException;
Params getCurrentParams() throws SQLException;
}