Class UpsertYqlStatement<IN,T extends tech.ydb.yoj.repository.db.Entity<T>>

All Implemented Interfaces:
Statement<IN,T>

public class UpsertYqlStatement<IN,T extends tech.ydb.yoj.repository.db.Entity<T>> extends MultipleVarsYqlStatement.Simple<IN,T>
  • Constructor Details

    • UpsertYqlStatement

      public UpsertYqlStatement(Class<T> type)
    • UpsertYqlStatement

      public UpsertYqlStatement(Class<T> type, String tableName)
  • Method Details

    • getQueryType

      public Statement.QueryType getQueryType()
      Description copied from interface: Statement
      Returns query type (for query merging purposes).
      Returns:
      query type
    • toDebugString

      public String toDebugString(IN in)
      Description copied from interface: Statement
      Returns debug representation of this query with the specified parameter values.
      Parameters:
      in - parameter values. Might be null depending on the statement type, e.g. for DELETE statements.
      Returns:
      debug representation of the query parameterized with params
    • getQuery

      public String getQuery(String tablespace)
      Description copied from interface: Statement
      Returns parameterized YQL for this query.
      Parameters:
      tablespace - base path for all tables referenced in the query
      Returns:
      YQL
    • flattenInputVariables

      protected Function<IN,Map<String,Object>> flattenInputVariables()
      Specified by:
      flattenInputVariables in class MultipleVarsYqlStatement<IN,T extends tech.ydb.yoj.repository.db.Entity<T>,T extends tech.ydb.yoj.repository.db.Entity<T>>