@Internal public abstract class AbstractOfBizValueWrapper extends Object implements OfBizValueWrapper
| Modifier and Type | Field and Description |
|---|---|
protected org.ofbiz.core.entity.GenericValue |
genericValue |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOfBizValueWrapper(org.ofbiz.core.entity.GenericValue genericValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.ofbiz.core.entity.GenericValue |
getGenericValue()
Returns a GenericValue representing this object.
|
Long |
getLong(String name)
Retrieve a numeric field.
|
String |
getString(String name)
Retrieve a String field.
|
Timestamp |
getTimestamp(String name)
Retrieve a timestamp field.
|
int |
hashCode() |
void |
store()
Persist this object's immediate fields.
|
protected AbstractOfBizValueWrapper(org.ofbiz.core.entity.GenericValue genericValue)
public String getString(String name)
OfBizValueWrappergetString in interface OfBizValueWrappername - the field namepublic Timestamp getTimestamp(String name)
OfBizValueWrappergetTimestamp in interface OfBizValueWrappername - the field namepublic Long getLong(String name)
OfBizValueWrappergetLong in interface OfBizValueWrappername - the field namepublic org.ofbiz.core.entity.GenericValue getGenericValue()
OfBizValueWrapperPrior 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.
getGenericValue in interface OfBizValueWrapperpublic void store()
OfBizValueWrapper
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.
store in interface OfBizValueWrapperCopyright © 2002-2024 Atlassian. All Rights Reserved.