Examples of SerializeAs


Examples of com.foundationdb.server.types.texpressions.SerializeAs

            try {
                attributeField = enumClass.getField(attribute.name());
            } catch (NoSuchFieldException e) {
                throw new AssertionError(e);
            }
            SerializeAs serializeAs = attributeField.getAnnotation(SerializeAs.class);
            Serialization serialization;
            if (serializeAs != null) {
                serialization = serializeAs.value();
                if (!seenSerializations.add(serialization))
                    throw new RuntimeException("duplicate serialization policy in " + enumClass);
            }
            else {
                serialization = null;
View Full Code Here

Examples of de.kumpelblase2.remoteentities.persistence.SerializeAs

        membersLooked.add(field.getName());
        for(Annotation an : field.getAnnotations())
        {
          if(an instanceof SerializeAs)
          {
            SerializeAs sas = (SerializeAs)an;
            try
            {
              Object value = field.get(inClass);
              parameters.add(new ParameterData(Math.max(0, sas.pos() - 1), field.getType().getName(), value, sas.special()));
              break;
            }
            catch(Exception e)
            {
              RemoteEntities.getInstance().getLogger().warning("Unable to add desire parameter. " + e.getMessage());
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.