Examples of toMemberType()


Examples of org.datanucleus.store.types.converters.TypeConverter.toMemberType()

        }

        if (mmd.getTypeConverterName() != null) {
          // User-defined TypeConverter
          TypeConverter conv = ec.getTypeManager().getTypeConverterForName(mmd.getTypeConverterName());
          value = conv.toMemberType(value);
        } else {
          // Perform any conversions from the stored-type to the field type
          TypeManager typeMgr = ec.getNucleusContext().getTypeManager();
          value = ((DatastoreManager) ec.getStoreManager()).getTypeConversionUtils()
              .datastoreValueToPojoValue(typeMgr, clr, value, mmd);
View Full Code Here

Examples of org.datanucleus.store.types.converters.TypeConverter.toMemberType()

            value = getDatastoreToPojoTypeFunc(Utils.identity(), ammd.getType()).apply(value);
          } else if (value instanceof String) {
            TypeConverter conv = typeMgr.getTypeConverterForType(ammd.getType(), String.class);
            if (conv != null) {
              // Persisted as String, so convert back
              value = conv.toMemberType((String)value);
            }
          } else if (value instanceof Long) {
            TypeConverter conv = typeMgr.getTypeConverterForType(ammd.getType(), Long.class);
            if (conv != null) {
              // Persisted as Long, so convert back
View Full Code Here

Examples of org.datanucleus.store.types.converters.TypeConverter.toMemberType()

            }
          } else if (value instanceof Long) {
            TypeConverter conv = typeMgr.getTypeConverterForType(ammd.getType(), Long.class);
            if (conv != null) {
              // Persisted as Long, so convert back
              value = conv.toMemberType((Long)value);
            }
          } else {
            // Unsupported type on GAE/J ?
            value = getDatastoreToPojoTypeFunc(Utils.identity(), ammd.getType()).apply(value);
          }
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.