Class LookupQueryGenerator

java.lang.Object
com.saperion.ngc.resultset.generator.BaseQueryGenerator
com.saperion.ngc.resultset.generator.LookupQueryGenerator
All Implemented Interfaces:
Serializable

public class LookupQueryGenerator extends BaseQueryGenerator
Query-generator for lookup-fields.
See Also:
  • Constructor Details

    • LookupQueryGenerator

      public LookupQueryGenerator(com.saperion.intf.DDC lookupDdc)
      Instantiates a new lookup query generator.
      Parameters:
      lookupDdc - the DDC of the lookup-field
  • Method Details

    • addValue

      public void addValue(String fieldName, Object value, int fieldType)
      Adds a value that will be contained in the query.
      Parameters:
      fieldName - the column name
      value - the value
      fieldType - the type of the field
    • addValue

      public void addValue(String fieldName, Object value, int fieldType, boolean multiValue)
      Adds a value that will be contained in the query.
      Parameters:
      fieldName - the column name
      value - the value
      fieldType - the type of the field
      multiValue - whether the field is multi-value or not
    • addCustomValue

      public void addCustomValue(String fieldName, Object value, int fieldType)
      Adds a custom-value that will be contained in the query. Used by scripts to add custom conditions.
      Parameters:
      fieldName - the column name
      value - the value
      fieldType - the type of the field
    • addCustomValue

      public void addCustomValue(String fieldName, Object value, int fieldType, boolean multiValue)
      Adds a custom-value that will be contained in the query. Used by scripts to add custom conditions.
      Parameters:
      fieldName - the column name
      value - the value
      fieldType - the type of the field
      multiValue - whether the field is multi-value or not
    • removeCustomValue

      public void removeCustomValue(String fieldName)
      Removes a custom-value.
      Parameters:
      fieldName - name of the value (field) to remove
    • clearValues

      public void clearValues()
      Clears all values.
    • generateQuery

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