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 Summary
Modifier and TypeMethodDescriptionget the wrapped contents objectnewSibling
(String tableName) create a new "sibling" object to this - e.g., a wrapper around a new instance of the contents objectvoid
putAssociation
(String key, List<C> values) put associated objects in the wrapped objectvoid
putValue
(String key, Serializable value) put a value in the wrapped objectdefault A
unwrap()
return this, but as the `A` type...
-
Method Details
-
putValue
put a value in the wrapped object -
putAssociation
-
newSibling
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
return this, but as the `A` type...
-