T
- entity class of this adapterpublic class ReferenceAdapterV2<T extends PersistenceWeavedRest>
extends javax.xml.bind.annotation.adapters.XmlAdapter<T,T>
Constructor and Description |
---|
ReferenceAdapterV2() |
ReferenceAdapterV2(PersistenceContext context)
Instantiates a new reference adapter.
|
Modifier and Type | Method and Description |
---|---|
T |
marshal(T o)
Marshal just passes through.
|
T |
unmarshal(T o)
If 'canonical' or 'self' link is present loads entity from the database.
|
public ReferenceAdapterV2()
public ReferenceAdapterV2(PersistenceContext context)
context
- persistent context (mandatory)public T marshal(T o) throws java.lang.Exception
marshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<T extends PersistenceWeavedRest,T extends PersistenceWeavedRest>
o
- java.lang.Exception
public T unmarshal(T o) throws java.lang.Exception
unmarshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<T extends PersistenceWeavedRest,T extends PersistenceWeavedRest>
java.lang.Exception
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference