Class ValueHelper
java.lang.Object
com.polarion.platform.persistence.spi.ValueHelper
FOR INTERNAL USE ONLY!
- Author:
- dobisekm
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectUnwraps the high-level value found inIPObjectinto the low-level value to be set into the data object.static ObjectunwrapCustomField(IType sourceType, Object value) Unwraps the high-level value found inIPObjectCUSTOM FIELD into the low-level vlaue to be set into the data object.static ObjectWraps the low-level value from data object into the high-level value returned byIPObjectstatic ObjectwrapCustomField(IPObject pobject, String key, IType targetType, Object value) Wraps the low-level value of CUSTOM FIELD from data object into the high-level value returned byIPObject
-
Method Details
-
wrap
Wraps the low-level value from data object into the high-level value returned byIPObject- Parameters:
pobject- (notnull)key- name of pobject's field with which the value is associated (to guard against infinite loops; can benull)targetType-value-- Returns:
- the high-level value
- Since:
- 3.1.1
-
wrapCustomField
Wraps the low-level value of CUSTOM FIELD from data object into the high-level value returned byIPObject- Parameters:
pobject- (notnull)key- name of pobject's field with which the value is associated (to guard against infinite loops; can benull)targetType-value-- Returns:
- the high-level value
- Since:
- 3.1.1
-
unwrap
Unwraps the high-level value found inIPObjectinto the low-level value to be set into the data object.- Parameters:
sourceType-value-- Returns:
- the low-level value
-
unwrapCustomField
Unwraps the high-level value found inIPObjectCUSTOM FIELD into the low-level vlaue to be set into the data object.- Parameters:
sourceType-value-- Returns:
- the low-level value
-