Package com.atlassian.jira.ofbiz
Class AbstractOfBizValueWrapper
java.lang.Object
com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
- All Implemented Interfaces:
OfBizValueWrapper
- Direct Known Subclasses:
Attachment
,IssueConstantImpl
,IssueLinkImpl
,IssueLinkTypeImpl
@Internal
public abstract class AbstractOfBizValueWrapper
extends Object
implements OfBizValueWrapper
The methods in these class should not be used. They are here for backwards compatibility with GenericValues
Use debug to determine what still uses these methods and change the code to uses the actual getter/setter
methods of the bean.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractOfBizValueWrapper
(org.ofbiz.core.entity.GenericValue genericValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.ofbiz.core.entity.GenericValue
Returns a GenericValue representing this object.Retrieve a numeric field.Retrieve a String field.getTimestamp
(String name) Retrieve a timestamp field.int
hashCode()
void
store()
Persist this object's immediate fields.
-
Field Details
-
genericValue
protected final org.ofbiz.core.entity.GenericValue genericValue
-
-
Constructor Details
-
AbstractOfBizValueWrapper
protected AbstractOfBizValueWrapper(org.ofbiz.core.entity.GenericValue genericValue)
-
-
Method Details
-
getString
Description copied from interface:OfBizValueWrapper
Retrieve a String field.- Specified by:
getString
in interfaceOfBizValueWrapper
- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getTimestamp
Description copied from interface:OfBizValueWrapper
Retrieve a timestamp field.- Specified by:
getTimestamp
in interfaceOfBizValueWrapper
- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getLong
Description copied from interface:OfBizValueWrapper
Retrieve a numeric field.- Specified by:
getLong
in interfaceOfBizValueWrapper
- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()Description copied from interface:OfBizValueWrapper
Returns a GenericValue representing this object.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.- Specified by:
getGenericValue
in interfaceOfBizValueWrapper
- Returns:
- a GenericValue representing the data in this object.
-
store
public void store()Description copied from interface:OfBizValueWrapper
Persist this object's immediate fields.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.- Specified by:
store
in interfaceOfBizValueWrapper
-
equals
-
hashCode
public int hashCode()
-