Class ServiceParameterDao


  • public class ServiceParameterDao
    extends AbstractDao
    Provides a ServiceParameter DAO class.
    Since:
    4.0.0
    • Constructor Detail

      • ServiceParameterDao

        public ServiceParameterDao()
    • Method Detail

      • getServiceParameterForPK

        public ServiceParameter getServiceParameterForPK​(Object id)
        Return the service parameter with the specified OID
        Parameters:
        id - the OID
        Returns:
        the matching service parameter , or null if not found
        Since:
        4.3.0
      • getValueForDefaultServiceAndParamName

        public String getValueForDefaultServiceAndParamName​(String serviceType,
                                                            String parameterName)
        Return the parameter value for the default service type and parameter name, or null if not found.
        Parameters:
        serviceType - the default service type (required)
        parameterName - the parameter name (required)
        Returns:
        the parameter value for the default service type and parameter name, or null if not found
      • getServiceParametersForService

        public List<ServiceParameter> getServiceParametersForService​(ServiceDefinition service)
        Return the list of service parameters for the given service definition
        Parameters:
        service - the service definition
        Returns:
        the list of service parameters for the given service definition
        Since:
        4.0.0
      • getUnitTestServiceParametersForService

        public List<ServiceParameter> getUnitTestServiceParametersForService​(ServiceDefinition service)
        Return the list of unit test service parameters for the given service definition
        Parameters:
        service - the service definition
        Returns:
        the list of unit test service parameters for the given service definition
        Since:
        4.3.0
      • getServiceParameterForName

        public ServiceParameter getServiceParameterForName​(ServiceDefinition service,
                                                           String name)
        Return the parameter with the specified name and service definition. This combination uniquely identifies a service parameter.
        Parameters:
        service - the service definition (required)
        name - the exact parameter name (required)
        Returns:
        the matching service parameter, or null if none was found
        Since:
        4.3.0