org.eclipse.jpt.jpa.eclipselink.core.context
Interface EclipseLinkConvert
- All Superinterfaces:
- Converter, IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, Model
public interface EclipseLinkConvert
- extends Converter
EclipseLink convert (not to be confused with EclipseLink converter)
Provisional API: This interface is part of an interim API that is still
under development and expected to change significantly before reaching
stability. It is available at this early stage to solicit feedback from
pioneering adopters on the understanding that any code that uses this API
will almost certainly be broken (repeatedly) as the API evolves.
- Since:
- 2.1
SPECIFIED_CONVERTER_NAME_PROPERTY
static final String SPECIFIED_CONVERTER_NAME_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_CONVERTER_NAME_PROPERTY
static final String DEFAULT_CONVERTER_NAME_PROPERTY
- See Also:
- Constant Field Values
SERIALIZED_CONVERTER
static final String SERIALIZED_CONVERTER
- Reserved name for specifying a serialized object converter.
In this case a corresponding @CustomConverter is unnecessary.
- See Also:
- Constant Field Values
CLASS_INSTANCE_CONVERTER
static final String CLASS_INSTANCE_CONVERTER
- Reserved name for specifying a class instance converter.
Will use a ClassInstanceConverter
on the associated mapping. When using a ClassInstanceConverter the database representation is a
String representing the Class name and the object-model representation is an instance
of that class built with the zero-argument constructor.
In this case a corresponding @CustomConverter is unnecessary.
- See Also:
- Constant Field Values
NO_CONVERTER
static final String NO_CONVERTER
- Reserved name for specifying no converter.
This can be used to override a situation where either
another converter is defaulted or another converter is set.
In this case a corresponding @CustomConverter is unnecessary.
- See Also:
- Constant Field Values
RESERVED_CONVERTER_NAMES
static final String[] RESERVED_CONVERTER_NAMES
DEFAULT_CONVERTER_NAME
static final String DEFAULT_CONVERTER_NAME
- See Also:
- Constant Field Values
CONVERTER_TRANSFORMER
static final org.eclipse.jpt.common.utility.transformer.Transformer<Converter,EclipseLinkConvert> CONVERTER_TRANSFORMER
- A transformer that returns an
EclipseLinkConvert if the passed
in Converter can be cast as such;
otherwise, it returns null.
getConverterType
Class<EclipseLinkConvert> getConverterType()
- Description copied from interface:
Converter
- Return the converter's type.
- Specified by:
getConverterType in interface Converter
getPersistenceUnit
EclipseLinkPersistenceUnit getPersistenceUnit()
- Description copied from interface:
JpaContextModel
- Return the persistence unit if the context model is within a
persistence unit. Otherwise throw an exception.
- Specified by:
getPersistenceUnit in interface JpaContextModel
getConverterName
String getConverterName()
getSpecifiedConverterName
String getSpecifiedConverterName()
setSpecifiedConverterName
void setSpecifiedConverterName(String converterName)
getDefaultConverterName
String getDefaultConverterName()
Copyright (c) 2012 Oracle. All rights reserved.