public class JAXBTypesafeEnumConverter extends Object implements Converter
| Constructor and Description |
|---|
JAXBTypesafeEnumConverter()
PUBLIC:
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convertDataValueToObjectValue(Object dataValue,
Session session)
INTERNAL:
The fromString value on the enum class must be invoked with the field value
specified as an argument.
|
Object |
convertObjectValueToDataValue(Object objectValue,
Session session)
INTERNAL:
Return the attribute value.
|
Class |
getEnumClass()
PUBLIC:
Get the class which was set as the enum class which contains the fromValue method.
|
String |
getEnumClassName()
PUBLIC:
Get the name of the enum class which contains the fromValue method.
|
void |
initialize(DatabaseMapping mapping,
Session session)
INTERNAL:
Set the enum class.
|
boolean |
isMutable()
PUBLIC:
If the converter converts the value to a mutable value, i.e.
|
void |
setEnumClass(Class enumClass)
PUBLIC:
Set the enum class to know which class to invoke the fromValue method on.
|
void |
setEnumClassName(String newClassName)
PUBLIC:
Set the name of the enum class to know which class to invoke the fromValue method on.
|
public JAXBTypesafeEnumConverter()
public Object convertObjectValueToDataValue(Object objectValue, Session session)
convertObjectValueToDataValue in interface CoreConverter<DatabaseMapping,Session>convertObjectValueToDataValue in interface Converterpublic Object convertDataValueToObjectValue(Object dataValue, Session session)
convertDataValueToObjectValue in interface CoreConverter<DatabaseMapping,Session>convertDataValueToObjectValue in interface Converterpublic boolean isMutable()
Converterpublic void initialize(DatabaseMapping mapping, Session session)
initialize in interface CoreConverter<DatabaseMapping,Session>initialize in interface Converterpublic String getEnumClassName()
public void setEnumClassName(String newClassName)
public void setEnumClass(Class enumClass)
public Class getEnumClass()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.