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

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

public interface EclipseLinkObjectTypeConverter
extends EclipseLinkConverter

EclipseLink object type 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
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.jpa.eclipselink.core.context.EclipseLinkConverter
ECLIPSELINK_CONVERTER_CLASS_NAME, NAME_PROPERTY, TYPES
 
Method Summary
 EclipseLinkConversionValue addConversionValue()
          Add a conversion value to the converter and return it.
 EclipseLinkConversionValue addConversionValue(int index)
          Add a conversion value to the converter at the specified index and return it.
<T extends EclipseLinkConversionValue>
java.util.ListIterator<T>
conversionValues()
          Return the converter's conversion values.
 int conversionValuesSize()
          Return the number of conversion values.
 java.lang.String getDataType()
           
 java.lang.Iterable<java.lang.String> getDataValues()
          Return the converter's data values.
 int getDataValuesSize()
          Return the number of data values.
 java.lang.String getDefaultObjectValue()
           
 java.lang.String getObjectType()
           
 void moveConversionValue(int targetIndex, int sourceIndex)
          Move the conversion value from the specified source index to the specified target index.
 void removeConversionValue(EclipseLinkConversionValue conversionValue)
          Remove the specified conversion value.
 void removeConversionValue(int index)
          Remove the conversion value at the specified index.
 void setDataType(java.lang.String dataType)
           
 void setDefaultObjectValue(java.lang.String value)
           
 void setObjectType(java.lang.String objectType)
           
 
Methods inherited from interface org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkConverter
duplicates, getEnclosingTypeSeparator, getName, getType, overrides, setName
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaProject, getParent, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.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.common.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 the converter's conversion values.


conversionValuesSize

int conversionValuesSize()
Return the number of conversion values.


addConversionValue

EclipseLinkConversionValue addConversionValue(int index)
Add a conversion value to the converter at the specified index and return it.


addConversionValue

EclipseLinkConversionValue addConversionValue()
Add a conversion value to the converter and return it.


removeConversionValue

void removeConversionValue(int index)
Remove the conversion value at the specified index.


removeConversionValue

void removeConversionValue(EclipseLinkConversionValue conversionValue)
Remove the specified conversion value.


moveConversionValue

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


getDataValues

java.lang.Iterable<java.lang.String> getDataValues()
Return the converter's data values.


getDataValuesSize

int getDataValuesSize()
Return the number of data values.


getDefaultObjectValue

java.lang.String getDefaultObjectValue()

setDefaultObjectValue

void setDefaultObjectValue(java.lang.String value)