Package com.avoka.fc.core.dao
Class ServiceParameterDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.ServiceParameterDao
-
public class ServiceParameterDao extends AbstractDao
Provides a ServiceParameter DAO class.- Since:
- 4.0.0
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description ServiceParameterDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceParameter
getServiceParameterForName(ServiceDefinition service, String name)
Return the parameter with the specified name and service definition.ServiceParameter
getServiceParameterForPK(Object id)
Return the service parameter with the specified OIDList<ServiceParameter>
getServiceParametersForService(ServiceDefinition service)
Return the list of service parameters for the given service definitionList<ServiceParameter>
getUnitTestServiceParametersForService(ServiceDefinition service)
Return the list of unit test service parameters for the given service definitionString
getValueForDefaultServiceAndParamName(String serviceType, String parameterName)
Return the parameter value for the default service type and parameter name, or null if not found.-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
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
-
-