Class PdoSelectList

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

public class PdoSelectList extends DbModelWurblet
(@wurblet) Generate code to select a list of entities.

usage:
@wurblet <tag> PdoSelectList [--private] [--noif] [--append=<sqltext>] [--classvar=<classvariables>] [--sort] [--lock] [--resultset] [--cursor] [--bounded] [--limit] [--offset] <expression>

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.
  • --sort: sort according to orderBy()-method.
  • --lock: generates SELECT FOR UPDATE.
  • --limit: adds a parameter to limit the number of objects.
  • --offset: adds a parameter to skip the first objects.
  • --resultset: returns the ResultSetWrapper instead of a List.
  • --cursor: returns a ScrollableResource instead of a List.
  • --bounded: returns a bounded List<? extends mainClass> instead of List<mainClass>.
  • <expression>: see WurbletArgumentParser.
For more options, see DbModelWurblet.
  • Constructor Details

    • PdoSelectList

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