Package com.github.jmkgreen.morphia.converters

Examples of com.github.jmkgreen.morphia.converters.IntegerConverter


    public CharacterToByteConverter() { super(Character.class, char.class); }
   
    @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());
    }
View Full Code Here

TOP

Related Classes of com.github.jmkgreen.morphia.converters.IntegerConverter

Copyright © 2018 www.massapicom. 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.