Top Description Constructors Methods
org.eclipse.persistence.internal.jpa.metadata.xml

public Class EmptyElementConverter

extends Object
implements Converter
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.mappings.converters.Converter, java.io.Serializable, org.eclipse.persistence.core.mappings.converters.CoreConverter
Imports
org.eclipse.persistence.mappings.DatabaseMapping, org.eclipse.persistence.mappings.converters.Converter, org.eclipse.persistence.sessions.Session

Converts from empty node to true or false
Author
Gordon Yorke
Since
EclipseLink 2.2

Constructor Summary

AccessConstructor and Description
public
EmptyElementConverter()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public Object
convertDataValueToObjectValue(Object dataValue, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.convertDataValueToObjectValue.

PUBLIC: Convert the databases' data representation of the value to the object's representation.
public Object
convertObjectValueToDataValue(Object objectValue, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.convertObjectValueToDataValue.

PUBLIC: Convert the object's representation of the value to the databases' data representation.
public void
initialize(DatabaseMapping mapping, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.initialize.

PUBLIC: Allow for any initialization.
public boolean
isMutable()

Implements org.eclipse.persistence.mappings.converters.Converter.isMutable.

PUBLIC: If the converter converts the value to a mutable value, i.e. a value that can have its' parts changed without being replaced, then it must return true.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EmptyElementConverterback to summary
public EmptyElementConverter()

Default constructor.

Method Detail

convertDataValueToObjectValueback to summary
public Object convertDataValueToObjectValue(Object dataValue, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.convertDataValueToObjectValue.

Doc from org.eclipse.persistence.mappings.converters.Converter.convertDataValueToObjectValue.

PUBLIC: Convert the databases' data representation of the value to the object's representation. For example this could convert between an sql.Time datatype and the Java Calendar type.

Annotations
@Override
convertObjectValueToDataValueback to summary
public Object convertObjectValueToDataValue(Object objectValue, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.convertObjectValueToDataValue.

Doc from org.eclipse.persistence.mappings.converters.Converter.convertObjectValueToDataValue.

PUBLIC: Convert the object's representation of the value to the databases' data representation. For example this could convert between a Calendar Java type and the sql.Time datatype.

Annotations
@Override
initializeback to summary
public void initialize(DatabaseMapping mapping, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.initialize.

Doc from org.eclipse.persistence.mappings.converters.Converter.initialize.

PUBLIC: Allow for any initialization.

Annotations
@Override
isMutableback to summary
public boolean isMutable()

Implements org.eclipse.persistence.mappings.converters.Converter.isMutable.

Doc from org.eclipse.persistence.mappings.converters.Converter.isMutable.

PUBLIC: If the converter converts the value to a mutable value, i.e. a value that can have its' parts changed without being replaced, then it must return true. If the value is not mutable, cannot be changed without replacing the whole value then false must be returned. This is used within the UnitOfWork to determine how to clone.

Annotations
@Override