@PublicApi
public interface OfBizValueWrapper
Modifier and Type | Method and Description |
---|---|
org.ofbiz.core.entity.GenericValue |
getGenericValue()
Deprecated.
Use the Data object getters instead. Since v5.0.
|
Long |
getLong(String name)
Deprecated.
Use the Data object getters instead. Since v5.0.
|
String |
getString(String name)
Deprecated.
Use the Data object getters instead. Since v5.0.
|
Timestamp |
getTimestamp(String name)
Deprecated.
Use the Data object getters instead. Since v5.0.
|
void |
store()
Deprecated.
Use the Object's Service or Manager to save values. Since v5.0.
|
String getString(String name)
name
- the field nameTimestamp getTimestamp(String name)
name
- the field nameLong getLong(String name)
name
- the field nameorg.ofbiz.core.entity.GenericValue getGenericValue()
Prior to JIRA 7.0, this method returned "the backing GenericValue object" - meaning that this object was forced to be mutable (and not thread safe or suitable for caching). As of JIRA 7.0 this is no longer guaranteed to be true.
If this object wants to be immutable, then it can choose to return a "detached" instance of GenericValue.
In this case mutating the GenericValue will have no effect on the values in this object, and calling
getGenericValue()
twice will return two separate GenericValue instances.
void store()
As of JIRA 7.0 this method is considered optional.
If this object is actually immutable, then it will throw UnsupportedOperationException
because there
are no possible mutations to store.
Copyright © 2002-2019 Atlassian. All Rights Reserved.