Module org.eclipse.persistence.core
Class ExpressionOperatorConverter
java.lang.Object
org.eclipse.persistence.mappings.converters.ObjectTypeConverter
org.eclipse.persistence.internal.expressions.ExpressionOperatorConverter
- All Implemented Interfaces:
Serializable
,CoreConverter<DatabaseMapping,
,Session> ClassNameConversionRequired
,Converter
INTERNAL:
Used by function operators in deployment xml generation to accomodate custom functions.
There is no more validation on read because any custom function has to be accepted.
The custom function is assumed to be a normal prefix function. The first element in the
databaseStrings of the operator is in the format of databaseString(, e.g. AVG(. "(" will
be removed on write and attached back on read.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.converters.ObjectTypeConverter
addToAttributeOnlyConversionValueStrings, attributeToFieldValues, conversionValueStrings, converterName, dataType, dataTypeName, defaultAttributeValue, defaultAttributeValueString, fieldClassification, fieldClassificationName, fieldToAttributeValues, mapping, objectType, objectTypeName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertDataValueToObjectValue
(Object fieldValue, Session session) INTERNAL: Returns the corresponding attribute value for the specified field value.convertObjectValueToDataValue
(Object attributeValue, Session session) INTERNAL: Convert to the data value.Methods inherited from class org.eclipse.persistence.mappings.converters.ObjectTypeConverter
addConversionValue, addConversionValueStrings, addToAttributeOnlyConversionValue, addToAttributeOnlyConversionValueStrings, convertClassNamesToClasses, getAttributeToFieldValues, getDefaultAttributeValue, getFieldClassification, getFieldClassification, getFieldClassificationName, getFieldToAttributeValueAssociations, getFieldToAttributeValues, getMapping, initialize, initializeFieldClassification, isMutable, loadClass, mapBooleans, mapGenders, mapResponses, setAttributeToFieldValues, setConverterName, setDataTypeName, setDefaultAttributeValue, setDefaultAttributeValueString, setFieldClassification, setFieldClassificationName, setFieldToAttributeValueAssociations, setFieldToAttributeValues, setMapping, setObjectTypeName, throwInitObjectException
-
Constructor Details
-
ExpressionOperatorConverter
public ExpressionOperatorConverter()
-
-
Method Details
-
convertObjectValueToDataValue
INTERNAL: Convert to the data value.- Specified by:
convertObjectValueToDataValue
in interfaceConverter
- Specified by:
convertObjectValueToDataValue
in interfaceCoreConverter<DatabaseMapping,
Session> - Overrides:
convertObjectValueToDataValue
in classObjectTypeConverter
-
convertDataValueToObjectValue
INTERNAL: Returns the corresponding attribute value for the specified field value.- Specified by:
convertDataValueToObjectValue
in interfaceConverter
- Specified by:
convertDataValueToObjectValue
in interfaceCoreConverter<DatabaseMapping,
Session> - Overrides:
convertDataValueToObjectValue
in classObjectTypeConverter
-