public class Reference
extends java.lang.Object
Purpose: Holds mapping reference info. The info held in this class will be used after unmarshal to resolve 1-1 and 1-M mapping references. This is necessary to ensure that all related objects have been created before attempting to set instance values in related objects.
Constructor and Description |
---|
Reference(Mapping mapping,
java.lang.Object source,
java.lang.Class target,
java.util.HashMap primaryKeyMap,
java.lang.Object container)
Constructor typically used in the collection case.
|
Reference(Mapping mapping,
java.lang.Object source,
java.lang.Class target,
java.lang.Object primaryKey)
Constructor typically used in the single case.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContainer()
Get the container this reference should be added to if it was from a collection mapping
|
Mapping |
getMapping()
Return the XMLMapping associated with this reference.
|
java.lang.Object |
getPrimaryKey()
Return the list of primary key values required to lookup
the reference class in the cache.
|
java.util.HashMap |
getPrimaryKeyMap()
Return the map of primary key/values required to lookup
the reference class in the cache.
|
Setting |
getSetting() |
java.lang.Object |
getSourceObject()
Return the source object for this reference.
|
java.lang.Class |
getTargetClass()
Return the target (reference) class for this reference.
|
void |
setPrimaryKey(java.lang.Object primaryKey)
Set the primary key value required to lookup
the reference class in the cache.
|
void |
setSetting(Setting setting) |
public Reference(Mapping mapping, java.lang.Object source, java.lang.Class target, java.util.HashMap primaryKeyMap, java.lang.Object container)
public Reference(Mapping mapping, java.lang.Object source, java.lang.Class target, java.lang.Object primaryKey)
public java.lang.Object getContainer()
public Setting getSetting()
public void setSetting(Setting setting)
public Mapping getMapping()
public java.util.HashMap getPrimaryKeyMap()
public java.lang.Object getPrimaryKey()
public java.lang.Object getSourceObject()
public java.lang.Class getTargetClass()
public void setPrimaryKey(java.lang.Object primaryKey)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference