Interface ApiOutputRecordWrapperInterface<C,A extends ApiOutputRecordWrapperInterface<C,A>>

All Known Implementing Classes:
ApiOutputMapWrapper, ApiOutputQRecordWrapper

public interface ApiOutputRecordWrapperInterface<C,A extends ApiOutputRecordWrapperInterface<C,A>>
interface to define wrappers for either a Map of values (e.g., the original/native return type for the API), or a QRecord. Built for use by QRecordApiAdapter - not clear ever useful outside of there. Type params are: C: the wrapped Contents A: the child-type... e.g: class Child implements ApiOutputRecordInterface(Something, Child)
  • Method Details

    • putValue

      void putValue(String key, Serializable value)
      put a value in the wrapped object
    • putAssociation

      void putAssociation(String key, List<C> values)
      put associated objects in the wrapped object
    • newSibling

      ApiOutputRecordWrapperInterface<C,A> newSibling(String tableName)
      create a new "sibling" object to this - e.g., a wrapper around a new instance of the contents object
    • getContents

      C getContents()
      get the wrapped contents object
    • unwrap

      default A unwrap()
      return this, but as the `A` type...