org.eclipse.jpt.eclipselink.core.context
Interface EclipseLinkObjectTypeConverter

All Superinterfaces:
EclipseLinkConverter, org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model

public interface EclipseLinkObjectTypeConverter
extends EclipseLinkConverter

Corresponds to a ObjectTypeConverter resource model object 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
Version:
2.1

Field Summary
static java.lang.String CONVERSION_VALUES_LIST
           
static java.lang.String DATA_TYPE_PROPERTY
           
static java.lang.String DEFAULT_OBJECT_VALUE_PROPERTY
           
static java.lang.String OBJECT_TYPE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.eclipselink.core.context.EclipseLinkConverter
CUSTOM_CONVERTER, NAME_PROPERTY, NO_CONVERTER, OBJECT_TYPE_CONVERTER, STRUCT_CONVERTER, TYPE_CONVERTER
 
Method Summary
 EclipseLinkConversionValue addConversionValue()
          Add a conversion value to the object type mapping return the object representing it.
 EclipseLinkConversionValue addConversionValue(int index)
          Add a conversion value to the object type mapping return the object representing it.
<T extends EclipseLinkConversionValue>
java.util.ListIterator<T>
conversionValues()
          Return a list iterator of the conversion values.
 int conversionValuesSize()
          Return the number of conversion values.
 java.util.ListIterator<java.lang.String> dataValues()
          Returns a ListIterator of the ConversionValue dataValues.
 java.lang.String getDataType()
           
 java.lang.String getDefaultObjectValue()
           
 java.lang.String getObjectType()
           
 void moveConversionValue(int targetIndex, int sourceIndex)
          Move the conversion values from the source index to the target index.
 void removeConversionValue(EclipseLinkConversionValue conversionValue)
          Remove the conversion value from the entity.
 void removeConversionValue(int index)
          Remove the conversion value at the given index from the entity.
 void setDataType(java.lang.String dataType)
           
 void setDefaultObjectValue(java.lang.String defaultObjectValue)
           
 void setObjectType(java.lang.String objectType)
           
 
Methods inherited from interface org.eclipse.jpt.eclipselink.core.context.EclipseLinkConverter
duplicates, getEnclosingTypeSeparator, getName, getType, overrides, setName
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 

Field Detail

DATA_TYPE_PROPERTY

static final java.lang.String DATA_TYPE_PROPERTY
See Also:
Constant Field Values

OBJECT_TYPE_PROPERTY

static final java.lang.String OBJECT_TYPE_PROPERTY
See Also:
Constant Field Values

CONVERSION_VALUES_LIST

static final java.lang.String CONVERSION_VALUES_LIST
See Also:
Constant Field Values

DEFAULT_OBJECT_VALUE_PROPERTY

static final java.lang.String DEFAULT_OBJECT_VALUE_PROPERTY
See Also:
Constant Field Values
Method Detail

getDataType

java.lang.String getDataType()

setDataType

void setDataType(java.lang.String dataType)

getObjectType

java.lang.String getObjectType()

setObjectType

void setObjectType(java.lang.String objectType)

conversionValues

<T extends EclipseLinkConversionValue> java.util.ListIterator<T> conversionValues()
Return a list iterator of the conversion values. This will not be null.


conversionValuesSize

int conversionValuesSize()
Return the number of conversion values.


addConversionValue

EclipseLinkConversionValue addConversionValue(int index)
Add a conversion value to the object type mapping return the object representing it.


addConversionValue

EclipseLinkConversionValue addConversionValue()
Add a conversion value to the object type mapping return the object representing it.


removeConversionValue

void removeConversionValue(int index)
Remove the conversion value at the given index from the entity.


removeConversionValue

void removeConversionValue(EclipseLinkConversionValue conversionValue)
Remove the conversion value from the entity.


moveConversionValue

void moveConversionValue(int targetIndex,
                         int sourceIndex)
Move the conversion values from the source index to the target index.


dataValues

java.util.ListIterator<java.lang.String> dataValues()
Returns a ListIterator of the ConversionValue dataValues.

Returns:

getDefaultObjectValue

java.lang.String getDefaultObjectValue()

setDefaultObjectValue

void setDefaultObjectValue(java.lang.String defaultObjectValue)