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
public class ExpressionOperatorConverter extends ObjectTypeConverter
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:
- Serialized Form
-
-
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
Constructors Constructor Description ExpressionOperatorConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
convertDataValueToObjectValue(Object fieldValue, Session session)
INTERNAL: Returns the corresponding attribute value for the specified field value.Object
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
-
-
-
-
Method Detail
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object attributeValue, Session session)
INTERNAL: Convert to the data value.- Specified by:
convertObjectValueToDataValue
in interfaceConverter
- Specified by:
convertObjectValueToDataValue
in interfaceCoreConverter<DatabaseMapping,Session>
- Overrides:
convertObjectValueToDataValue
in classObjectTypeConverter
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object fieldValue, Session session)
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
-
-