|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.SDOHelper
public class SDOHelper
This class provides a mechanism to obtain the EclipseLink implementation of various SDO runtime classes based on a given SDO class/interface. This is useful for accessing extended EclipseLink features. Using this helper class will alleviate the need for consumers of EclipseLink SDO to perform casts where their code makes use of the standard SDO API. In addition, a given SDO class/interface can be unwrapped based on a user-specified class. This will allow access - in certain cases - to a given SDO implementation class' underlying class(es). For example, an XMLHelper could be unwrapped resulting in an EclipseLink SDOXMLHelper or its underlying XMLContext.
Constructor Summary | |
---|---|
SDOHelper()
|
Method Summary | ||
---|---|---|
static SDOChangeSummary |
getChangeSummary(ChangeSummary changeSummary)
Return the EclipseLink implementation of ChangeSummary. |
|
static SDOCopyHelper |
getCopyHelper(CopyHelper copyHelper)
Return the EclipseLink implementation of CopyHelper. |
|
static SDODataFactory |
getDataFactory(DataFactory dataFactory)
Return the EclipseLink implementation of DataFactory. |
|
static SDODataHelper |
getDataHelper(DataHelper dataHelper)
Return the EclipseLink implementation of DataHelper. |
|
static SDODataObject |
getDataObject(DataObject dataObject)
Return the EclipseLink implementation of DataObject. |
|
static SDOEqualityHelper |
getEqualityHelper(EqualityHelper equalityHelper)
Return the EclipseLink implementation of EqualityHelper. |
|
static SDOHelperContext |
getHelperContext(HelperContext helperContext)
Return the EclipseLink implementation of HelperContext. |
|
static SDOProperty |
getProperty(Property property)
Return the EclipseLink implementation of Property. |
|
static SDOSequence |
getSequence(Sequence sequence)
Return the EclipseLink implementation of Sequence. |
|
static SDOType |
getType(Type type)
Return the EclipseLink implementation of Type. |
|
static SDOTypeHelper |
getTypeHelper(TypeHelper typeHelper)
Return the EclipseLink implementation of TypeHelper. |
|
static SDOXMLHelper |
getXMLHelper(XMLHelper xmlHelper)
Return the EclipseLink implementation of XMLHelper. |
|
static SDOXSDHelper |
getXSDHelper(XSDHelper xsdHelper)
Return the EclipseLink implementation of XSDHelper. |
|
static
|
unwrap(ChangeSummary changeSummary,
java.lang.Class<T> clazz)
Unwraps a given ChangeSummary resulting in an EclipseLink SDOChangeSummary. |
|
static
|
unwrap(CopyHelper copyHelper,
java.lang.Class<T> clazz)
Unwraps a given CopyHelper resulting in an EclipseLink SDOCopyHelper. |
|
static
|
unwrap(DataFactory dataFactory,
java.lang.Class<T> clazz)
Unwraps a given DataFactory resulting in an EclipseLink SDODataFactory. |
|
static
|
unwrap(DataHelper dataHelper,
java.lang.Class<T> clazz)
Unwraps a given DataHelper resulting in an EclipseLink SDODataHelper. |
|
static
|
unwrap(DataObject dataObject,
java.lang.Class<T> clazz)
Unwraps a given DataObject resulting in an EclipseLink SDODataObject. |
|
static
|
unwrap(EqualityHelper equalityHelper,
java.lang.Class<T> clazz)
Unwraps a given EqualityHelper resulting in an EclipseLink SDOEqualityHelper. |
|
static
|
unwrap(HelperContext helperContext,
java.lang.Class<T> clazz)
Unwraps a given HelperContext resulting in an EclipseLink SDOHelperContext. |
|
static
|
unwrap(Property property,
java.lang.Class<T> clazz)
Unwraps a given Property resulting in an EclipseLink SDOProperty. |
|
static
|
unwrap(Sequence sequence,
java.lang.Class<T> clazz)
Unwraps a given Sequence resulting in an EclipseLink SDOSequence. |
|
static
|
unwrap(Type type,
java.lang.Class<T> clazz)
Unwraps a given Type resulting in an EclipseLink SDOType. |
|
static
|
unwrap(TypeHelper typeHelper,
java.lang.Class<T> clazz)
Unwraps a given TypeHelper resulting in an EclipseLink SDOTypeHelper. |
|
static
|
unwrap(XMLHelper xmlHelper,
java.lang.Class<T> clazz)
Unwraps a given XMLHelper resulting in an EclipseLink SDOXMLHelper or an EclipseLink XMLContext depending on clazz. |
|
static
|
unwrap(XSDHelper xsdHelper,
java.lang.Class<T> clazz)
Unwraps a given XSDHelper resulting in an EclipseLink SDOXSDHelper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDOHelper()
Method Detail |
---|
public static SDOType getType(Type type) throws java.lang.IllegalArgumentException
SDOType
. If not, an exception will be thrown.
type
-
java.lang.IllegalArgumentException
public static SDOProperty getProperty(Property property) throws java.lang.IllegalArgumentException
SDOProperty
. If not, an exception will be
thrown.
property
-
java.lang.IllegalArgumentException
public static SDODataObject getDataObject(DataObject dataObject) throws java.lang.IllegalArgumentException
SDODataObject
. If not, an exception will be
thrown.
dataObject
-
java.lang.IllegalArgumentException
public static SDOChangeSummary getChangeSummary(ChangeSummary changeSummary) throws java.lang.IllegalArgumentException
SDOChangeSummary
. If not, an exception
will be thrown.
changeSummary
-
java.lang.IllegalArgumentException
public static SDOSequence getSequence(Sequence sequence) throws java.lang.IllegalArgumentException
SDOSequence
. If not, an exception will be
thrown.
sequence
-
java.lang.IllegalArgumentException
public static SDOHelperContext getHelperContext(HelperContext helperContext) throws java.lang.IllegalArgumentException
SDOHelperContext
. If not, an exception
will be thrown.
helperContext
-
java.lang.IllegalArgumentException
public static SDOCopyHelper getCopyHelper(CopyHelper copyHelper) throws java.lang.IllegalArgumentException
SDOCopyHelper
. If not, an exception
will be thrown.
copyHelper
-
java.lang.IllegalArgumentException
public static SDODataFactory getDataFactory(DataFactory dataFactory) throws java.lang.IllegalArgumentException
SDODataFactory
. If not, an exception
will be thrown.
dataFactory
-
java.lang.IllegalArgumentException
public static SDODataHelper getDataHelper(DataHelper dataHelper) throws java.lang.IllegalArgumentException
SDODataHelper
. If not, an exception
will be thrown.
dataHelper
-
java.lang.IllegalArgumentException
public static SDOEqualityHelper getEqualityHelper(EqualityHelper equalityHelper) throws java.lang.IllegalArgumentException
SDOEqualityHelper
. If not, an exception
will be thrown.
equalityHelper
-
java.lang.IllegalArgumentException
public static SDOTypeHelper getTypeHelper(TypeHelper typeHelper) throws java.lang.IllegalArgumentException
SDOTypeHelper
. If not, an exception
will be thrown.
typeHelper
-
java.lang.IllegalArgumentException
public static SDOXMLHelper getXMLHelper(XMLHelper xmlHelper) throws java.lang.IllegalArgumentException
SDOXMLHelper
. If not, an exception
will be thrown.
xmlHelper
-
java.lang.IllegalArgumentException
public static SDOXSDHelper getXSDHelper(XSDHelper xsdHelper) throws java.lang.IllegalArgumentException
SDOXSDHelper
. If not, an exception
will be thrown.
xsdHelper
-
java.lang.IllegalArgumentException
public static <T> T unwrap(Type type, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- type
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(Property property, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- property
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(DataObject dataObject, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- dataObject
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(ChangeSummary changeSummary, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- changeSummary
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(Sequence sequence, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- sequence
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(HelperContext helperContext, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- helperContext
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(CopyHelper copyHelper, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- copyHelper
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(DataFactory dataFactory, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- dataFactory
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(DataHelper dataHelper, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- dataHelper
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(EqualityHelper equalityHelper, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- equalityHelper
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(TypeHelper typeHelper, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- typeHelper
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(XMLHelper xmlHelper, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- xmlHelper
- clazz
-
java.lang.IllegalArgumentException
public static <T> T unwrap(XSDHelper xsdHelper, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- xsdHelper
- clazz
-
java.lang.IllegalArgumentException
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |