Class UpdateAction

java.lang.Object
me.lucko.luckperms.common.bulkupdate.action.UpdateAction
All Implemented Interfaces:
Action

public class UpdateAction extends Object implements Action
  • Method Details

    • of

      public static UpdateAction of(QueryField field, String value)
    • getName

      public String getName()
      Description copied from interface: Action
      Gets the name of this action
      Specified by:
      getName in interface Action
      Returns:
      the name of the action
    • apply

      public net.luckperms.api.node.Node apply(net.luckperms.api.node.Node from)
      Description copied from interface: Action
      Applies this action to the given NodeModel, and returns the result.
      Specified by:
      apply in interface Action
      Parameters:
      from - the node to base changes from
      Returns:
      the new nodemodel instance, or null if the node should be deleted.
    • appendSql

      public void appendSql(PreparedStatementBuilder builder)
      Description copied from interface: Action
      Gets this action in SQL form. Will include a placeholder for the table, as "{table}".
      Specified by:
      appendSql in interface Action
      Parameters:
      builder - the statement builder