Class ByteArrayConverterImpl
- java.lang.Object
-
- science.aist.neo4j.reflective.converter.arrayprimitive.ByteArrayConverterImpl
-
- All Implemented Interfaces:
FieldConverter<String,Object>
public class ByteArrayConverterImpl extends Object implements FieldConverter<String,Object>
Converter that works on simple datatype array byte[], which can't be cast to Object[].- Since:
- 1.0
- Author:
- Oliver Krauss
-
-
Constructor Summary
Constructors Constructor Description ByteArrayConverterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmapForDb(String name, Object uncastValue, Map<String,Object> map)Adds the value to the map for database processingObjecttoJavaValue(Object uncastCurrentValue, Object newValue)Transforms from db value to value understood by the java class
-
-
-
Method Detail
-
mapForDb
public void mapForDb(String name, Object uncastValue, Map<String,Object> map)
Description copied from interface:FieldConverterAdds the value to the map for database processing- Specified by:
mapForDbin interfaceFieldConverter<String,Object>- Parameters:
name- of fielduncastValue- to be pushed to dbmap- map the value will be entered in
-
toJavaValue
public Object toJavaValue(Object uncastCurrentValue, Object newValue)
Description copied from interface:FieldConverterTransforms from db value to value understood by the java class- Specified by:
toJavaValuein interfaceFieldConverter<String,Object>- Parameters:
uncastCurrentValue- value the java object has right nownewValue- db to be transformed- Returns:
- Java value
-
-