Class UpdateByIdStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>>

java.lang.Object
tech.ydb.yoj.repository.ydb.statement.YqlStatement<PARAMS,ENTITY,ENTITY>
tech.ydb.yoj.repository.ydb.statement.YqlStatement.Simple<UpdateModel.ById<ID>,ENTITY>
tech.ydb.yoj.repository.ydb.statement.UpdateByIdStatement<ENTITY,ID>
All Implemented Interfaces:
Statement<UpdateModel.ById<ID>,ENTITY>

public final class UpdateByIdStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>> extends YqlStatement.Simple<UpdateModel.ById<ID>,ENTITY>
  • Constructor Details

  • Method Details

    • toQueryParameters

      public Map<String,com.yandex.ydb.ValueProtos.TypedValue> toQueryParameters(UpdateModel.ById<ID> parameters)
      Description copied from interface: Statement
      Returns the query's parameter values as YDB protobuf structures.
      Specified by:
      toQueryParameters in interface Statement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>>
      Overrides:
      toQueryParameters in class YqlStatement<UpdateModel.ById<ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>>,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>>
      Parameters:
      parameters - parameter values Might be null depending on the statement type, e.g. for DELETE statements.
      Returns:
      map: parameter name -> value as protobuf
    • getQueryType

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

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

      protected Collection<YqlStatementParam> getParams()
      Overrides:
      getParams in class YqlStatement<UpdateModel.ById<ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>>,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>>
    • 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