All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ydb.jdbc.query.YdbPreparedQuery Maven / Gradle / Ivy

There is a newer version: 2.3.5
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy