Class DbUpdateBy

  • All Implemented Interfaces:
    org.wurbelizer.wurblet.Wurblet

    public class DbUpdateBy
    extends DbModelWurblet
    (@wurblet) Generate code to update low-level persistent objects.

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

    arguments:

    • --private: makes the method private (default is public).
    • --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

      • DbUpdateBy

        public DbUpdateBy()
    • 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