Class FormQueryGenerator

  • All Implemented Interfaces:
    java.io.Serializable

    public class FormQueryGenerator
    extends BaseQueryGenerator
    Helper class to generate a query based on values entered in a form.
    See Also:
    Serialized Form
    • Constructor Detail

      • FormQueryGenerator

        @Deprecated
        public FormQueryGenerator​(java.util.List<FieldResultBean> fields,
                                  java.lang.String ddcName,
                                  java.lang.String dbType,
                                  boolean hasAnOutliner)
        Deprecated.
        Use FormQueryGenerator(List, DDC, boolean) instead. Will be removed in 8.1.
        Constructor.
        Parameters:
        fields - fields
        ddcName - ddc name
        dbType - type of the database in use
        hasAnOutliner - flag to notify the query generator that the ddc might contain outliner-elements
      • FormQueryGenerator

        public FormQueryGenerator​(java.util.List<FieldResultBean> fields,
                                  com.saperion.intf.DDC ddc,
                                  boolean hasAnOutliner)
        Constructor.
        Parameters:
        fields - fields
        ddc - the main-ddc of the form
        hasAnOutliner - flag to notify the query generator that the ddc might contain outliner-elements
      • FormQueryGenerator

        @Deprecated
        public FormQueryGenerator​(java.lang.String ddcName,
                                  java.lang.String dbType)
        Deprecated.
        Use FormQueryGenerator(DDC) instead. Will be removed in 8.1.
        Constructor.
        Parameters:
        ddcName - ddc name
        dbType - type of the database in use
      • FormQueryGenerator

        public FormQueryGenerator​(com.saperion.intf.DDC ddc)
        Constructor.
        Parameters:
        ddc - the main-ddc of the form
    • Method Detail

      • addField

        public void addField​(IntelligentField field)
        Adds a field to the list. The fields are used to generate the query.
        Parameters:
        field - field to add
      • generateQuery

        public com.saperion.rmi.SaQueryInfo generateQuery()
        Generates a query string.
        Specified by:
        generateQuery in class BaseQueryGenerator
        Returns:
        query