@Override
 protected biz.storebiz.db.entity.product.ProductDepartment jsonToModel(
     org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) {
   biz.storebiz.db.entity.product.ProductDepartment m =
       new biz.storebiz.db.entity.product.ProductDepartment();
   org.slim3.datastore.json.JsonReader reader = null;
   org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default();
   reader = rootReader.newObjectReader("creationDate");
   m.setCreationDate(decoder0.decode(reader, m.getCreationDate()));
   reader = rootReader.newObjectReader("departmentClosingDate");
   m.setDepartmentClosingDate(decoder0.decode(reader, m.getDepartmentClosingDate()));
   reader = rootReader.newObjectReader("departmentFormationDate");
   m.setDepartmentFormationDate(decoder0.decode(reader, m.getDepartmentFormationDate()));
   reader = rootReader.newObjectReader("departmentLastUpateDate");
   m.setDepartmentLastUpateDate(decoder0.decode(reader, m.getDepartmentLastUpateDate()));
   reader = rootReader.newObjectReader("operational");
   m.setOperational(decoder0.decode(reader, m.isOperational()));
   reader = rootReader.newObjectReader("productDepartmentCode");
   m.setProductDepartmentCode(decoder0.decode(reader, m.getProductDepartmentCode()));
   reader = rootReader.newObjectReader("productDepartmentKey");
   m.setProductDepartmentKey(decoder0.decode(reader, m.getProductDepartmentKey()));
   reader = rootReader.newObjectReader("productDepartmentName");
   m.setProductDepartmentName(decoder0.decode(reader, m.getProductDepartmentName()));
   reader = rootReader.newObjectReader("warehouseLocation");
   m.setWarehouseLocation(decoder0.decode(reader, m.getWarehouseLocation()));
   reader = rootReader.newObjectReader("warehouseLocationCode");
   m.setWarehouseLocationCode(decoder0.decode(reader, m.getWarehouseLocationCode()));
   return m;
 }
Example #2
0
 @Override
 protected com.xhills.golf_party.model.course.Area jsonToModel(
     org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) {
   com.xhills.golf_party.model.course.Area m = new com.xhills.golf_party.model.course.Area();
   org.slim3.datastore.json.JsonReader reader = null;
   org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default();
   reader = rootReader.newObjectReader("key");
   m.setKey(decoder0.decode(reader, m.getKey()));
   reader = rootReader.newObjectReader("name");
   m.setName(decoder0.decode(reader, m.getName()));
   reader = rootReader.newObjectReader("version");
   m.setVersion(decoder0.decode(reader, m.getVersion()));
   return m;
 }
Example #3
0
 @Override
 protected slim3.demo.model.Blog jsonToModel(
     org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) {
   slim3.demo.model.Blog m = new slim3.demo.model.Blog();
   org.slim3.datastore.json.JsonReader reader = null;
   org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default();
   reader = rootReader.newObjectReader("content");
   m.setContent(decoder0.decode(reader, m.getContent()));
   reader = rootReader.newObjectReader("key");
   m.setKey(decoder0.decode(reader, m.getKey()));
   reader = rootReader.newObjectReader("title");
   m.setTitle(decoder0.decode(reader, m.getTitle()));
   reader = rootReader.newObjectReader("version");
   m.setVersion(decoder0.decode(reader, m.getVersion()));
   return m;
 }
Example #4
0
 @Override
 protected com.meeetlet.model.event.Participant jsonToModel(
     org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) {
   com.meeetlet.model.event.Participant m = new com.meeetlet.model.event.Participant();
   org.slim3.datastore.json.JsonReader reader = null;
   org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default();
   reader = rootReader.newObjectReader("comment");
   m.setComment(decoder0.decode(reader, m.getComment()));
   reader = rootReader.newObjectReader("eventRef");
   decoder0.decode(reader, m.getEventRef(), maxDepth, currentDepth);
   reader = rootReader.newObjectReader("key");
   m.setKey(decoder0.decode(reader, m.getKey()));
   reader = rootReader.newObjectReader("userRef");
   decoder0.decode(reader, m.getUserRef(), maxDepth, currentDepth);
   reader = rootReader.newObjectReader("version");
   m.setVersion(decoder0.decode(reader, m.getVersion()));
   return m;
 }
Example #5
0
 @Override
 protected tutorial.global.cool.model.BaseFormObject jsonToModel(
     org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) {
   tutorial.global.cool.model.BaseFormObject m = new tutorial.global.cool.model.BaseFormObject();
   org.slim3.datastore.json.JsonReader reader = null;
   org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default();
   reader = rootReader.newObjectReader("email");
   m.setEmail(decoder0.decode(reader, m.getEmail()));
   reader = rootReader.newObjectReader("insertDate");
   m.setInsertDate(decoder0.decode(reader, m.getInsertDate()));
   reader = rootReader.newObjectReader("key");
   m.setKey(decoder0.decode(reader, m.getKey()));
   reader = rootReader.newObjectReader("updateDate");
   m.setUpdateDate(decoder0.decode(reader, m.getUpdateDate()));
   reader = rootReader.newObjectReader("userId");
   m.setUserId(decoder0.decode(reader, m.getUserId()));
   reader = rootReader.newObjectReader("version");
   m.setVersion(decoder0.decode(reader, m.getVersion()));
   return m;
 }
Example #6
0
 @Override
 protected biz.storebiz.db.entity.customer.Customer jsonToModel(
     org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) {
   biz.storebiz.db.entity.customer.Customer m = new biz.storebiz.db.entity.customer.Customer();
   org.slim3.datastore.json.JsonReader reader = null;
   org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default();
   reader = rootReader.newObjectReader("creationDate");
   m.setCreationDate(decoder0.decode(reader, m.getCreationDate()));
   reader = rootReader.newObjectReader("customerId");
   m.setCustomerId(decoder0.decode(reader, m.getCustomerId()));
   reader = rootReader.newObjectReader("customerKey");
   m.setCustomerKey(decoder0.decode(reader, m.getCustomerKey()));
   reader = rootReader.newObjectReader("customerLastModificationDate");
   m.setCustomerLastModificationDate(decoder0.decode(reader, m.getCustomerLastModificationDate()));
   reader = rootReader.newObjectReader("customerRegistrationDate");
   m.setCustomerRegistrationDate(decoder0.decode(reader, m.getCustomerRegistrationDate()));
   reader = rootReader.newObjectReader("customerRegistrationExpiryDate");
   m.setCustomerRegistrationExpiryDate(
       decoder0.decode(reader, m.getCustomerRegistrationExpiryDate()));
   reader = rootReader.newObjectReader("customerType");
   m.setCustomerType(decoder0.decode(reader, m.getCustomerType()));
   reader = rootReader.newObjectReader("email");
   m.setEmail(decoder0.decode(reader, m.getEmail()));
   reader = rootReader.newObjectReader("emailPreference");
   m.setEmailPreference(
       decoder0.decode(
           reader, m.getEmailPreference(), biz.storebiz.db.entity.customer.EmailPreference.class));
   reader = rootReader.newObjectReader("emailSubscription");
   m.setEmailSubscription(
       decoder0.decode(
           reader,
           m.getEmailSubscription(),
           biz.storebiz.db.entity.customer.EmailSubscription.class));
   reader = rootReader.newObjectReader("name");
   m.setName(decoder0.decode(reader, m.getName()));
   reader = rootReader.newObjectReader("password");
   m.setPassword(
       decoder0.decode(reader, m.getPassword(), biz.storebiz.db.entity.customer.Password.class));
   reader = rootReader.newObjectReader("postalAddresses");
   {
     java.util.ArrayList<com.google.appengine.api.datastore.Key> elements =
         new java.util.ArrayList<com.google.appengine.api.datastore.Key>();
     org.slim3.datastore.json.JsonArrayReader r = rootReader.newArrayReader("postalAddresses");
     if (r != null) {
       reader = r;
       int n = r.length();
       for (int i = 0; i < n; i++) {
         r.setIndex(i);
         com.google.appengine.api.datastore.Key v =
             decoder0.decode(reader, (com.google.appengine.api.datastore.Key) null);
         if (v != null) {
           elements.add(v);
         }
       }
       m.setPostalAddresses(elements);
     }
   }
   return m;
 }
Example #7
0
 @Override
 protected cz.artique.shared.model.label.Label jsonToModel(
     org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) {
   cz.artique.shared.model.label.Label m = new cz.artique.shared.model.label.Label();
   org.slim3.datastore.json.JsonReader reader = null;
   org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default();
   reader = rootReader.newObjectReader("appearance");
   m.setAppearance(
       decoder0.decode(
           reader, m.getAppearance(), cz.artique.shared.model.label.LabelAppearance.class));
   reader = rootReader.newObjectReader("backupLevel");
   m.setBackupLevel(
       decoder0.decode(
           reader, m.getBackupLevel(), cz.artique.shared.model.label.BackupLevel.class));
   reader = rootReader.newObjectReader("displayName");
   m.setDisplayName(decoder0.decode(reader, m.getDisplayName()));
   reader = rootReader.newObjectReader("key");
   m.setKey(decoder0.decode(reader, m.getKey()));
   reader = rootReader.newObjectReader("labelType");
   m.setLabelType(
       decoder0.decode(reader, m.getLabelType(), cz.artique.shared.model.label.LabelType.class));
   reader = rootReader.newObjectReader("name");
   m.setName(decoder0.decode(reader, m.getName()));
   reader = rootReader.newObjectReader("priority");
   m.setPriority(decoder0.decode(reader, m.getPriority()));
   reader = rootReader.newObjectReader("shortcutStroke");
   m.setShortcutStroke(decoder0.decode(reader, m.getShortcutStroke()));
   reader = rootReader.newObjectReader("toBeDeleted");
   m.setToBeDeleted(decoder0.decode(reader, m.isToBeDeleted()));
   reader = rootReader.newObjectReader("userId");
   m.setUserId(decoder0.decode(reader, m.getUserId()));
   reader = rootReader.newObjectReader("version");
   m.setVersion(decoder0.decode(reader, m.getVersion()));
   return m;
 }