Class LookupQueryGenerator

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      LookupQueryGenerator​(com.saperion.intf.DDC lookupDdc)
      Instantiates a new lookup query generator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCustomValue​(java.lang.String fieldName, java.lang.Object value, int fieldType)
      Adds a custom-value that will be contained in the query.
      void addCustomValue​(java.lang.String fieldName, java.lang.Object value, int fieldType, boolean multiValue)
      Adds a custom-value that will be contained in the query.
      void addValue​(java.lang.String fieldName, java.lang.Object value, int fieldType)
      Adds a value that will be contained in the query.
      void addValue​(java.lang.String fieldName, java.lang.Object value, int fieldType, boolean multiValue)
      Adds a value that will be contained in the query.
      void clearValues()
      Clears all values.
      com.saperion.rmi.SaQueryInfo generateQuery()
      Generates a query string.
      void removeCustomValue​(java.lang.String fieldName)
      Removes a custom-value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LookupQueryGenerator

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

      • addValue

        public void addValue​(java.lang.String fieldName,
                             java.lang.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​(java.lang.String fieldName,
                             java.lang.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​(java.lang.String fieldName,
                                   java.lang.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​(java.lang.String fieldName,
                                   java.lang.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​(java.lang.String fieldName)
        Removes a custom-value.
        Parameters:
        fieldName - name of the value (field) to remove
      • clearValues

        public void clearValues()
        Clears all values.