Package com.github.jmkgreen.morphia.converters

Examples of com.github.jmkgreen.morphia.converters.IntegerConverter.decode()


   
    @Override
    public Object decode(Class targetClass, Object fromDBObject, MappedField optionalExtraInfo) throws MappingException {
      if (fromDBObject == null) return null;
      IntegerConverter intConv = new IntegerConverter();
      Integer i = (Integer)intConv.decode(targetClass, fromDBObject, optionalExtraInfo);
      return new Character((char)i.intValue());
    }
   
    @Override
    public Object encode(Object value, MappedField optionalExtraInfo) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.