@Internal public abstract class

AbstractOfBizValueWrapper

extends Object
implements OfBizValueWrapper
java.lang.Object
   ↳ com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
Known Direct Subclasses
Known Indirect Subclasses

@Internal

This class is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Class Overview

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.

Summary

Fields
protected final GenericValue genericValue
Protected Constructors
AbstractOfBizValueWrapper(GenericValue genericValue)
Public Methods
boolean equals(Object o)
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.ofbiz.OfBizValueWrapper

Fields

protected final GenericValue genericValue

Protected Constructors

protected AbstractOfBizValueWrapper (GenericValue genericValue)

Public Methods

public boolean equals (Object o)

public GenericValue getGenericValue ()

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.

Returns
  • a GenericValue representing the data in this object.

public Long getLong (String name)

Retrieve a numeric field.

Parameters
name the field name
Returns
  • the value for the given field.

public String getString (String name)

Retrieve a String field.

Parameters
name the field name
Returns
  • the value for the given field.

public Timestamp getTimestamp (String name)

Retrieve a timestamp field.

Parameters
name the field name
Returns
  • the value for the given field.

public int hashCode ()

public void store ()

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.