Class PdoUpdateBy

  • 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 Detail

      • PdoUpdateBy

        public PdoUpdateBy()
    • Method Detail

      • 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 java.lang.String process​(java.lang.String code)
        Specified by:
        process in interface org.wurbelizer.wurblet.Wurblet
        Overrides:
        process in class org.wurbelizer.wurblet.AbstractWurblet