Package org.bgerp.cache
Class ParameterCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
flush
(Connection con) getListParamValues
(int paramId) List of values for parameter with type 'list'.getListParamValues
(Parameter param) List of values for parameter with type 'list'.getListParamValuesMap
(int paramId) Map of list parameter values.getObjectTypeParameterIds
(String objectType) Parameter IDs forobjectType
, position sorted.getObjectTypeParameterList
(String objectType) Parameters forobjectType
, position sorted.getObjectTypeParameterList
(String objectType, int parameterGroupId) Parameters forobjectType
, position sorted.static Parameter
getParameter
(int id) getParameterList
(List<Integer> pids) Parameters with defined IDs.static IdStringTitleTreeItem
getTreeParamRootNode
(Parameter param) getTreeParamValues
(int paramId) Map of tree parameter values.protected ParameterCache
Creates a new cache instance
-
Constructor Details
-
ParameterCache
public ParameterCache()
-
-
Method Details
-
getParameter
-
getObjectTypeParameterList
Parameters forobjectType
, position sorted.- Parameters:
objectType
-Process.OBJECT_TYPE
,Customer.OBJECT_TYPE
,User.OBJECT_TYPE
,AddressHouse.OBJECT_TYPE
- Returns:
-
getObjectTypeParameterList
Parameters forobjectType
, position sorted.- Parameters:
objectType
-Process.OBJECT_TYPE
,Customer.OBJECT_TYPE
,User.OBJECT_TYPE
,AddressHouse.OBJECT_TYPE
- Returns:
-
getObjectTypeParameterIds
Parameter IDs forobjectType
, position sorted.- Parameters:
objectType
-Process.OBJECT_TYPE
,Customer.OBJECT_TYPE
,User.OBJECT_TYPE
,AddressHouse.OBJECT_TYPE
- Returns:
-
getParameterList
Parameters with defined IDs.- Parameters:
pids
- - IDs.- Returns:
-
getListParamValuesMap
Map of list parameter values. Key - value ID, value - value.- Parameters:
paramId
-- Returns:
-
getListParamValues
List of values for parameter with type 'list'.- Parameters:
param
-- Returns:
-
getListParamValues
List of values for parameter with type 'list'.- Parameters:
param
-- Returns:
-
getTreeParamRootNode
-
getTreeParamValues
Map of tree parameter values. Key - value ID, value - title.- Parameters:
paramId
- the parameter ID.- Returns:
- a map with entries sorted by keys.
-
getParameterMap
-
flush
-
newInstance
Description copied from class:Cache
Creates a new cache instance- Specified by:
newInstance
in classCache<ParameterCache>
- Returns:
- the instance
-