Class ValueHelper
java.lang.Object
com.polarion.platform.persistence.spi.ValueHelper
FOR INTERNAL USE ONLY!
- Author:
- dobisekm
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
Unwraps the high-level value found inIPObject
into the low-level value to be set into the data object.static Object
unwrapCustomField
(IType sourceType, Object value) Unwraps the high-level value found inIPObject
CUSTOM FIELD into the low-level vlaue to be set into the data object.static Object
Wraps the low-level value from data object into the high-level value returned byIPObject
static Object
wrapCustomField
(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 inIPObject
into 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 inIPObject
CUSTOM FIELD into the low-level vlaue to be set into the data object.- Parameters:
sourceType
-value
-- Returns:
- the low-level value
-