Class RefDataQuery


  • public class RefDataQuery
    extends Object

    Provides a Reference Data Query class.

    Examples

    Query Example

    This Groovy example shows how to get the value of a reference data set.

     import com.avoka.tm.svc.RefDataQuery
    
     String value = new RefDataQuery()
         .setName("Addresses")
         .setLocale("en_US")
         .getValue() 
    Since:
    17.10.0
    • Method Detail

      • setClientCode

        public RefDataQuery setClientCode​(String clientCode)
        Set the reference data set organization client code. Generally this is not required as the service executes in a client organization security context.
        Parameters:
        clientCode - reference data organization client code
        Returns:
        the query object
      • setName

        public RefDataQuery setName​(String name)
        Set the name of the reference data set.
        Parameters:
        name - the name of the reference data
        Returns:
        the query object
      • setLocale

        public RefDataQuery setLocale​(String locale)
        Set the locale of the reference data set.
        Parameters:
        locale - the locale of the reference data
        Returns:
        the query object
      • getValue

        public String getValue()
        Return the value for the reference data set if found, or null otherwise.
        Returns:
        the value for the reference data set if found, or null otherwise