Class UpdateSetBuilder

java.lang.Object
net.tirasa.connid.commons.db.OperationBuilder
net.tirasa.connid.commons.db.UpdateSetBuilder

public class UpdateSetBuilder extends OperationBuilder
The update set builder create the database update statement.

The main functionality is create set part of update statement from Attribute set

Since:
1.0
Version:
$Revision 1.0$
  • Constructor Details

    • UpdateSetBuilder

      public UpdateSetBuilder()
  • Method Details

    • addBind

      public UpdateSetBuilder addBind(SQLParam param)
      Add column name and value pair.
      Specified by:
      addBind in class OperationBuilder
      Parameters:
      param - value
      Returns:
      self
    • addBind

      public UpdateSetBuilder addBind(SQLParam param, String expression)
      Add column name and expression value pair.
      Parameters:
      param - the value to bind
      expression - the expression
      Returns:
      self
    • getSQL

      public String getSQL()
      Build the set SQL.
      Returns:
      The update set clause
    • addValue

      public void addValue(SQLParam param)
      Add the update value.
      Parameters:
      param - SQL parameter
    • getParams

      public List<SQLParam> getParams()
      Returns:
      the param values