Interface OfBizValueWrapper

All Known Subinterfaces:
Issue, IssueLink, IssueLinkType, MutableIssue
All Known Implementing Classes:
AbstractIssue, AbstractOfBizValueWrapper, Attachment, DocumentIssueImpl, GenericIssueWrapper, GenericMutableIssueWrapper, IssueConstantImpl, IssueImpl, IssueLinkImpl, IssueLinkTypeImpl, IssueTypeImpl, MockIssue, PriorityImpl, RenderParameterHoldingIssueWrapper, ResolutionImpl, StatusImpl, TemplateIssue

@PublicApi public interface OfBizValueWrapper
Deprecated.
Use the Data object getters instead. Since v5.0.
The methods in this interface should not be used. They are here for legacy compatibility with GenericValues
  • Method Summary

    Modifier and Type
    Method
    Description
    org.ofbiz.core.entity.GenericValue
    Deprecated.
    Use the Data object getters instead.
    Deprecated.
    Use the Data object getters instead.
    Deprecated.
    Use the Data object getters instead.
    Deprecated.
    Use the Data object getters instead.
    void
    Deprecated.
    Use the Object's Service or Manager to save values.
  • Method Details

    • getString

      String getString(String name)
      Deprecated.
      Use the Data object getters instead. Since v5.0.
      Retrieve a String field.
      Parameters:
      name - the field name
      Returns:
      the value for the given field.
    • getTimestamp

      Timestamp getTimestamp(String name)
      Deprecated.
      Use the Data object getters instead. Since v5.0.
      Retrieve a timestamp field.
      Parameters:
      name - the field name
      Returns:
      the value for the given field.
    • getLong

      Long getLong(String name)
      Deprecated.
      Use the Data object getters instead. Since v5.0.
      Retrieve a numeric field.
      Parameters:
      name - the field name
      Returns:
      the value for the given field.
    • getGenericValue

      org.ofbiz.core.entity.GenericValue getGenericValue()
      Deprecated.
      Use the Data object getters instead. Since v5.0.
      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.
    • store

      void store()
      Deprecated.
      Use the Object's Service or Manager to save values. Since v5.0.
      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.