Module org.eclipse.persistence.moxy
Class IDResolverWrapper
java.lang.Object
org.eclipse.persistence.internal.oxm.IDResolver
org.eclipse.persistence.oxm.IDResolver
org.eclipse.persistence.jaxb.IDResolver
org.eclipse.persistence.internal.jaxb.IDResolverWrapper
INTERNAL:
This class provides an implementation of IDResolver that wraps an IDResolver from the Sun JAXB Implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBind the objectobjto the identifierid.voidBind the objectobjto the composite key information specified in theidMap.voidCalled when unmarshalling ends.Callable<?> Resolve the object of Classtype, uniquely identified byid.Callable<?> Resolve the object of Classtype, uniquely identified by the composite key information specified in theidMap.voidstartDocument(ValidationEventHandler eventHandler) Called when unmarshalling begins.Methods inherited from class org.eclipse.persistence.jaxb.IDResolver
startDocument
-
Constructor Details
-
IDResolverWrapper
-
-
Method Details
-
bind
Description copied from class:IDResolverBind the object
objto the identifierid.- Specified by:
bindin classIDResolver- Parameters:
id- The idObjectthat uniquely identifies the object to be bound.obj- The object that will be bound to this id.- Throws:
SAXException
-
endDocument
Description copied from class:IDResolverCalled when unmarshalling ends.
- Overrides:
endDocumentin classIDResolver- Throws:
SAXException
-
startDocument
Description copied from class:IDResolverCalled when unmarshalling begins.
- Overrides:
startDocumentin classIDResolver- Parameters:
eventHandler- Any errors encountered during the unmarshal process should be reported to this handler.- Throws:
SAXException
-
resolve
Description copied from class:IDResolverResolve the object of Class
type, uniquely identified byid.- Specified by:
resolvein classIDResolver- Parameters:
id- TheObjectthat uniquely identifies the object to be found.targetType- TheClassof the object to be found.- Returns:
- a
Callablethat will return the resolved object. - Throws:
SAXException
-
resolve
Description copied from class:IDResolverResolve the object of Class
type, uniquely identified by the composite key information specified in theidMap.- Specified by:
resolvein classIDResolver- Parameters:
id- AMapof id values, keyed on the attribute name.type- TheClassof the object to be found.- Returns:
- a
Callablethat will return the resolved object. - Throws:
SAXException
-
bind
Description copied from class:IDResolverBind the object
objto the composite key information specified in theidMap.- Specified by:
bindin classIDResolver- Parameters:
id- AMapof id values, keyed on attribute name.obj- The object that will be bound to this id.- Throws:
SAXException
-
getResolver
-