Search in sources :

Example 1 with SDOXMLHelperLoadOptionsType

use of org.eclipse.persistence.sdo.types.SDOXMLHelperLoadOptionsType in project eclipselink by eclipse-ee4j.

the class SDOHelperTestCases method testUnwrapTypeToSDOXMLHelperLoadOptionsType.

public void testUnwrapTypeToSDOXMLHelperLoadOptionsType() {
    Type loType = new SDOXMLHelperLoadOptionsType((SDOTypeHelper) typeHelper, SDOHelper.getType(teamType));
    assertTrue(SDOHelper.unwrap(loType, SDOXMLHelperLoadOptionsType.class) instanceof SDOXMLHelperLoadOptionsType);
}
Also used : SDOChangeSummaryType(org.eclipse.persistence.sdo.types.SDOChangeSummaryType) SDOOpenSequencedType(org.eclipse.persistence.sdo.types.SDOOpenSequencedType) SDOXMLHelperLoadOptionsType(org.eclipse.persistence.sdo.types.SDOXMLHelperLoadOptionsType) SDOPropertyType(org.eclipse.persistence.sdo.types.SDOPropertyType) SDOObjectType(org.eclipse.persistence.sdo.types.SDOObjectType) SDOWrapperType(org.eclipse.persistence.sdo.types.SDOWrapperType) Type(commonj.sdo.Type) SDODataType(org.eclipse.persistence.sdo.types.SDODataType) SDODataObjectType(org.eclipse.persistence.sdo.types.SDODataObjectType) SDOTypeType(org.eclipse.persistence.sdo.types.SDOTypeType) SDOType(org.eclipse.persistence.sdo.SDOType) SDOXMLHelperLoadOptionsType(org.eclipse.persistence.sdo.types.SDOXMLHelperLoadOptionsType)

Example 2 with SDOXMLHelperLoadOptionsType

use of org.eclipse.persistence.sdo.types.SDOXMLHelperLoadOptionsType in project eclipselink by eclipse-ee4j.

the class SDOTypeHelperDelegate method initTypesHashMap.

/**
 * initializes HashMap typesHashMap.
 */
private void initTypesHashMap() {
    typesHashMap = new HashMap();
    SDOType typeType = this.getType(SDOConstants.SDO_URL, SDOConstants.TYPE);
    SDOType xmlHelperLoadOptionsType = new SDOXMLHelperLoadOptionsType(this, typeType);
    typesHashMap.put(xmlHelperLoadOptionsType.getQName(), xmlHelperLoadOptionsType);
    SDOType openSequencedType = new SDOOpenSequencedType(this);
    typesHashMap.put(openSequencedType.getQName(), openSequencedType);
    implClassesToSDOType.put(openSequencedType.getImplClass(), openSequencedType);
    typesHashMap.put(SDO_BOOLEAN_WRAPPER.getQName(), SDO_BOOLEAN_WRAPPER);
    typesHashMap.put(SDO_BYTE_WRAPPER.getQName(), SDO_BYTE_WRAPPER);
    typesHashMap.put(SDO_BYTES_WRAPPER.getQName(), SDO_BYTES_WRAPPER);
    typesHashMap.put(SDO_CHARACTER_WRAPPER.getQName(), SDO_CHARACTER_WRAPPER);
    typesHashMap.put(SDO_DATE_WRAPPER.getQName(), SDO_DATE_WRAPPER);
    typesHashMap.put(SDO_DATETIME_WRAPPER.getQName(), SDO_DATETIME_WRAPPER);
    typesHashMap.put(SDO_DAY_WRAPPER.getQName(), SDO_DAY_WRAPPER);
    typesHashMap.put(SDO_DECIMAL_WRAPPER.getQName(), SDO_DECIMAL_WRAPPER);
    typesHashMap.put(SDO_DOUBLE_WRAPPER.getQName(), SDO_DOUBLE_WRAPPER);
    typesHashMap.put(SDO_DURATION_WRAPPER.getQName(), SDO_DURATION_WRAPPER);
    typesHashMap.put(SDO_FLOAT_WRAPPER.getQName(), SDO_FLOAT_WRAPPER);
    typesHashMap.put(SDO_INT_WRAPPER.getQName(), SDO_INT_WRAPPER);
    typesHashMap.put(SDO_INTEGER_WRAPPER.getQName(), SDO_INTEGER_WRAPPER);
    typesHashMap.put(SDO_LONG_WRAPPER.getQName(), SDO_LONG_WRAPPER);
    typesHashMap.put(SDO_MONTH_WRAPPER.getQName(), SDO_MONTH_WRAPPER);
    typesHashMap.put(SDO_MONTHDAY_WRAPPER.getQName(), SDO_MONTHDAY_WRAPPER);
    typesHashMap.put(SDO_OBJECT_WRAPPER.getQName(), SDO_OBJECT_WRAPPER);
    typesHashMap.put(SDO_SHORT_WRAPPER.getQName(), SDO_SHORT_WRAPPER);
    typesHashMap.put(SDO_STRING_WRAPPER.getQName(), SDO_STRING_WRAPPER);
    typesHashMap.put(SDO_STRINGS_WRAPPER.getQName(), SDO_STRINGS_WRAPPER);
    typesHashMap.put(SDO_TIME_WRAPPER.getQName(), SDO_TIME_WRAPPER);
    typesHashMap.put(SDO_URI_WRAPPER.getQName(), SDO_URI_WRAPPER);
    typesHashMap.put(SDO_YEAR_WRAPPER.getQName(), SDO_YEAR_WRAPPER);
    typesHashMap.put(SDO_YEARMONTH_WRAPPER.getQName(), SDO_YEARMONTH_WRAPPER);
    typesHashMap.put(SDO_YEARMONTHDAY_WRAPPER.getQName(), SDO_YEARMONTHDAY_WRAPPER);
    typesHashMap.put(SDO_BOOLEANOBJECT_WRAPPER.getQName(), SDO_BOOLEANOBJECT_WRAPPER);
    typesHashMap.put(SDO_BYTEOBJECT_WRAPPER.getQName(), SDO_BYTEOBJECT_WRAPPER);
    typesHashMap.put(SDO_CHARACTEROBJECT_WRAPPER.getQName(), SDO_CHARACTEROBJECT_WRAPPER);
    typesHashMap.put(SDO_DOUBLEOBJECT_WRAPPER.getQName(), SDO_DOUBLEOBJECT_WRAPPER);
    typesHashMap.put(SDO_FLOATOBJECT_WRAPPER.getQName(), SDO_FLOATOBJECT_WRAPPER);
    typesHashMap.put(SDO_INTOBJECT_WRAPPER.getQName(), SDO_INTOBJECT_WRAPPER);
    typesHashMap.put(SDO_LONGOBJECT_WRAPPER.getQName(), SDO_LONGOBJECT_WRAPPER);
    typesHashMap.put(SDO_SHORTOBJECT_WRAPPER.getQName(), SDO_SHORTOBJECT_WRAPPER);
}
Also used : HashMap(java.util.HashMap) SDOXMLHelperLoadOptionsType(org.eclipse.persistence.sdo.types.SDOXMLHelperLoadOptionsType) SDOType(org.eclipse.persistence.sdo.SDOType)

Aggregations

SDOType (org.eclipse.persistence.sdo.SDOType)2 SDOXMLHelperLoadOptionsType (org.eclipse.persistence.sdo.types.SDOXMLHelperLoadOptionsType)2 Type (commonj.sdo.Type)1 HashMap (java.util.HashMap)1 SDOChangeSummaryType (org.eclipse.persistence.sdo.types.SDOChangeSummaryType)1 SDODataObjectType (org.eclipse.persistence.sdo.types.SDODataObjectType)1 SDODataType (org.eclipse.persistence.sdo.types.SDODataType)1 SDOObjectType (org.eclipse.persistence.sdo.types.SDOObjectType)1 SDOOpenSequencedType (org.eclipse.persistence.sdo.types.SDOOpenSequencedType)1 SDOPropertyType (org.eclipse.persistence.sdo.types.SDOPropertyType)1 SDOTypeType (org.eclipse.persistence.sdo.types.SDOTypeType)1 SDOWrapperType (org.eclipse.persistence.sdo.types.SDOWrapperType)1