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

com.scalar.db.sql.SqlSessionStrategy Maven / Gradle / Ivy

There is a newer version: 3.14.0
Show newest version
package com.scalar.db.sql;

import com.scalar.db.sql.metadata.Metadata;
import com.scalar.db.sql.statement.Statement;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

interface SqlSessionStrategy {

  Optional getTransactionId();

  String begin();

  String start();

  void join(String transactionId);

  void suspend();

  void resume(String transactionId);

  ResultSet execute(
      String sql, @Nullable List positionalValues, @Nullable String defaultNamespaceName);

  ResultSet execute(
      String sql, @Nullable Map namedValues, @Nullable String defaultNamespaceName);

  ResultSet execute(
      Statement statement,
      @Nullable List positionalValues,
      @Nullable String defaultNamespaceName);

  ResultSet execute(
      Statement statement,
      @Nullable Map namedValues,
      @Nullable String defaultNamespaceName);

  void prepare();

  void validate();

  void commit();

  void rollback();

  void abort();

  boolean isTransactionInProgress();

  Metadata getMetadata();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy