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 Details

    • genericValue

      protected final org.ofbiz.core.entity.GenericValue genericValue
  • Constructor Details

    • AbstractOfBizValueWrapper

      protected AbstractOfBizValueWrapper(org.ofbiz.core.entity.GenericValue genericValue)
  • Method Details

    • getString

      public String getString(String name)
      Description copied from interface: OfBizValueWrapper
      Retrieve a String field.
      Specified by:
      getString in interface OfBizValueWrapper
      Parameters:
      name - the field name
      Returns:
      the value for the given field.
    • getTimestamp

      public Timestamp getTimestamp(String name)
      Description copied from interface: OfBizValueWrapper
      Retrieve a timestamp field.
      Specified by:
      getTimestamp in interface OfBizValueWrapper
      Parameters:
      name - the field name
      Returns:
      the value for the given field.
    • getLong

      public Long getLong(String name)
      Description copied from interface: OfBizValueWrapper
      Retrieve a numeric field.
      Specified by:
      getLong in interface OfBizValueWrapper
      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 interface OfBizValueWrapper
      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 interface OfBizValueWrapper
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object