Class InsertYqlStatement<PARAMS,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>>

java.lang.Object
tech.ydb.yoj.repository.ydb.statement.YqlStatement<PARAMS,ENTITY,RESULT>
tech.ydb.yoj.repository.ydb.statement.MultipleVarsYqlStatement<PARAMS,ENTITY,ENTITY>
tech.ydb.yoj.repository.ydb.statement.MultipleVarsYqlStatement.Simple<PARAMS,ENTITY>
tech.ydb.yoj.repository.ydb.statement.InsertYqlStatement<PARAMS,ENTITY>
All Implemented Interfaces:
Statement<PARAMS,ENTITY>

public class InsertYqlStatement<PARAMS,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>> extends MultipleVarsYqlStatement.Simple<PARAMS,ENTITY>
  • Constructor Details

    • InsertYqlStatement

      public InsertYqlStatement(Class<ENTITY> type)
  • 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(PARAMS params)
      Description copied from interface: Statement
      Returns debug representation of this query with the specified parameter values.
      Parameters:
      params - 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<PARAMS,Map<String,Object>> flattenInputVariables()
      Specified by:
      flattenInputVariables in class MultipleVarsYqlStatement<PARAMS,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>>