commonj.sdo.impl.HelperProviderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eclipselink Show documentation
Show all versions of eclipselink Show documentation
EclipseLink build based upon Git transaction f2b9fc5
The newest version!
/*
* Copyright (c) 1998, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package commonj.sdo.impl;
import org.eclipse.persistence.sdo.SDOResolvable;
import org.eclipse.persistence.sdo.helper.SDOCopyHelper;
import org.eclipse.persistence.sdo.helper.SDODataFactory;
import org.eclipse.persistence.sdo.helper.SDODataHelper;
import org.eclipse.persistence.sdo.helper.SDOEqualityHelper;
import org.eclipse.persistence.sdo.helper.SDOTypeHelper;
import org.eclipse.persistence.sdo.helper.SDOXMLHelper;
import org.eclipse.persistence.sdo.helper.SDOXSDHelper;
import org.eclipse.persistence.sdo.helper.delegates.SDODataFactoryDelegator;
import org.eclipse.persistence.sdo.helper.delegates.SDOTypeHelperDelegator;
import org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegator;
import org.eclipse.persistence.sdo.helper.delegates.SDOXSDHelperDelegator;
import commonj.sdo.helper.CopyHelper;
import commonj.sdo.helper.DataFactory;
import commonj.sdo.helper.DataHelper;
import commonj.sdo.helper.EqualityHelper;
import commonj.sdo.helper.TypeHelper;
import commonj.sdo.helper.XMLHelper;
import commonj.sdo.helper.XSDHelper;
public class HelperProviderImpl extends HelperProvider {
private static final SDOXMLHelper xmlHelper = new SDOXMLHelperDelegator();
private static final SDOTypeHelper typeHelper = new SDOTypeHelperDelegator();
private static final SDOXSDHelper xsdHelper = new SDOXSDHelperDelegator();
private static final SDODataFactory dataFactory = new SDODataFactoryDelegator();
private static final SDODataHelper dataHelper = new SDODataHelper();
private static final SDOCopyHelper copyHelper = new SDOCopyHelper();
private static final SDOEqualityHelper equalityHelper = new SDOEqualityHelper();
public HelperProviderImpl() {
super();
}
@Override
public CopyHelper copyHelper() {
return copyHelper;
}
@Override
public DataFactory dataFactory() {
return dataFactory;
}
@Override
public DataHelper dataHelper() {
return dataHelper;
}
@Override
public EqualityHelper equalityHelper() {
return equalityHelper;
}
@Override
public TypeHelper typeHelper() {
return typeHelper;
}
@Override
public XMLHelper xmlHelper() {
return xmlHelper;
}
@Override
public XSDHelper xsdHelper() {
return xsdHelper;
}
/**
* This class handles resolving objects from a deserialized stream for
* Reading
*/
@Override
public ExternalizableDelegator.Resolvable resolvable() {
return new SDOResolvable(HelperProvider.getDefaultContext());
}
/**
* This class handles custom serialization of target objects for
* Writing
*/
@Override
public ExternalizableDelegator.Resolvable resolvable(Object target) {
return new SDOResolvable(target, HelperProvider.getDefaultContext());
}
}