Class PdoUpdateBy

java.lang.Object
org.wurbelizer.wurblet.AbstractWurblet
org.wurbelizer.wurblet.AbstractJavaWurblet
All Implemented Interfaces:
org.wurbelizer.wurblet.Wurblet

public class PdoUpdateBy extends DbModelWurblet
(@wurblet) Generate code to update entities.

usage:
@wurblet <tag> PdoUpdateBy [--private] [--noif] [--append=<sqltext>] [--classvar=<classvariables>] <expression> | <values>

arguments:

  • --private: makes the method private (default is public).
  • --noif: there is no interface (don't generate @Override).
  • --append=<sqltext>: appends an sql-string.
  • --classvar=<classvariables>: reference to classvariables, if pick the statement-IDs from there.
  • <expression>: see WurbletArgumentParser.
  • <values>: the attributes to be updated.
For more options, see DbModelWurblet.
  • Constructor Details

    • PdoUpdateBy

      public PdoUpdateBy()
  • Method Details

    • run

      public void run() throws org.wurbelizer.wurbel.WurbelException
      Specified by:
      run in interface org.wurbelizer.wurblet.Wurblet
      Overrides:
      run in class DbModelWurblet
      Throws:
      org.wurbelizer.wurbel.WurbelException
    • process

      public String process(String code)
      Specified by:
      process in interface org.wurbelizer.wurblet.Wurblet
      Overrides:
      process in class org.wurbelizer.wurblet.AbstractWurblet