Package org.springframework.data.convert
Enum Class PropertyValueConverter.ObjectToObjectPropertyValueConverter
java.lang.Object
java.lang.Enum<PropertyValueConverter.ObjectToObjectPropertyValueConverter>
org.springframework.data.convert.PropertyValueConverter.ObjectToObjectPropertyValueConverter
- All Implemented Interfaces:
Serializable
,Comparable<PropertyValueConverter.ObjectToObjectPropertyValueConverter>
,Constable
,PropertyValueConverter
- Enclosing interface:
- PropertyValueConverter<DV,
SV, C extends ValueConversionContext<? extends PersistentProperty<?>>>
public static enum PropertyValueConverter.ObjectToObjectPropertyValueConverter
extends Enum<PropertyValueConverter.ObjectToObjectPropertyValueConverter>
implements PropertyValueConverter
No-op
PropertyValueConverter
implementation.- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.springframework.data.convert.PropertyValueConverter
PropertyValueConverter.FunctionPropertyValueConverter<DV,
SV, P extends PersistentProperty<P>>, PropertyValueConverter.ObjectToObjectPropertyValueConverter -
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(Object value, ValueConversionContext context) Convert the given store specific value into it's domain value representation.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.write
(Object value, ValueConversionContext context) Convert the given domain-specific value into it's native store representation.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.springframework.data.convert.PropertyValueConverter
readNull, writeNull
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
read
Description copied from interface:PropertyValueConverter
Convert the given store specific value into it's domain value representation. Typically, a read operation.- Specified by:
read
in interfacePropertyValueConverter
- Parameters:
value
- value to read.context
-ValueConversionContext
containing store-specific metadata used in the value conversion; never null.- Returns:
- the converted value. Can be null.
-
write
Description copied from interface:PropertyValueConverter
Convert the given domain-specific value into it's native store representation. Typically, a write operation.- Specified by:
write
in interfacePropertyValueConverter
- Parameters:
value
- value to write; can be null.context
-ValueConversionContext
containing store-specific metadata used in the value conversion; never null.- Returns:
- the converted value. Can be null.
-