@Override protected void modelToJson( org.slim3.datastore.json.JsonWriter writer, java.lang.Object model, int maxDepth, int currentDepth) { tutorial.global.cool.model.BaseFormObject m = (tutorial.global.cool.model.BaseFormObject) model; writer.beginObject(); org.slim3.datastore.json.Default encoder0 = new org.slim3.datastore.json.Default(); if (m.getEmail() != null) { writer.setNextPropertyName("email"); encoder0.encode(writer, m.getEmail()); } if (m.getInsertDate() != null) { writer.setNextPropertyName("insertDate"); encoder0.encode(writer, m.getInsertDate()); } if (m.getKey() != null) { writer.setNextPropertyName("key"); encoder0.encode(writer, m.getKey()); } if (m.getUpdateDate() != null) { writer.setNextPropertyName("updateDate"); encoder0.encode(writer, m.getUpdateDate()); } if (m.getUserId() != null) { writer.setNextPropertyName("userId"); encoder0.encode(writer, m.getUserId()); } if (m.getVersion() != null) { writer.setNextPropertyName("version"); encoder0.encode(writer, m.getVersion()); } writer.endObject(); }
@Override protected void modelToJson( org.slim3.datastore.json.JsonWriter writer, java.lang.Object model, int maxDepth, int currentDepth) { com.meeetlet.model.event.Participant m = (com.meeetlet.model.event.Participant) model; writer.beginObject(); org.slim3.datastore.json.Default encoder0 = new org.slim3.datastore.json.Default(); if (m.getComment() != null) { writer.setNextPropertyName("comment"); encoder0.encode(writer, m.getComment()); } if (m.getEventRef() != null && m.getEventRef().getKey() != null) { writer.setNextPropertyName("eventRef"); encoder0.encode(writer, m.getEventRef(), maxDepth, currentDepth); } if (m.getKey() != null) { writer.setNextPropertyName("key"); encoder0.encode(writer, m.getKey()); } if (m.getUserRef() != null && m.getUserRef().getKey() != null) { writer.setNextPropertyName("userRef"); encoder0.encode(writer, m.getUserRef(), maxDepth, currentDepth); } if (m.getVersion() != null) { writer.setNextPropertyName("version"); encoder0.encode(writer, m.getVersion()); } writer.endObject(); }
@Override protected void modelToJson( org.slim3.datastore.json.JsonWriter writer, java.lang.Object model, int maxDepth, int currentDepth) { slim3.demo.model.Blog m = (slim3.demo.model.Blog) model; writer.beginObject(); org.slim3.datastore.json.Default encoder0 = new org.slim3.datastore.json.Default(); if (m.getContent() != null) { writer.setNextPropertyName("content"); encoder0.encode(writer, m.getContent()); } if (m.getKey() != null) { writer.setNextPropertyName("key"); encoder0.encode(writer, m.getKey()); } if (m.getTitle() != null) { writer.setNextPropertyName("title"); encoder0.encode(writer, m.getTitle()); } if (m.getVersion() != null) { writer.setNextPropertyName("version"); encoder0.encode(writer, m.getVersion()); } writer.endObject(); }
@Override protected void modelToJson( org.slim3.datastore.json.JsonWriter writer, java.lang.Object model, int maxDepth, int currentDepth) { com.xhills.golf_party.model.course.Area m = (com.xhills.golf_party.model.course.Area) model; writer.beginObject(); org.slim3.datastore.json.Default encoder0 = new org.slim3.datastore.json.Default(); if (m.getKey() != null) { writer.setNextPropertyName("key"); encoder0.encode(writer, m.getKey()); } if (m.getName() != null) { writer.setNextPropertyName("name"); encoder0.encode(writer, m.getName()); } if (m.getVersion() != null) { writer.setNextPropertyName("version"); encoder0.encode(writer, m.getVersion()); } writer.endObject(); }
@Override protected void modelToJson( org.slim3.datastore.json.JsonWriter writer, java.lang.Object model, int maxDepth, int currentDepth) { biz.storebiz.db.entity.product.ProductDepartment m = (biz.storebiz.db.entity.product.ProductDepartment) model; writer.beginObject(); org.slim3.datastore.json.Default encoder0 = new org.slim3.datastore.json.Default(); if (m.getCreationDate() != null) { writer.setNextPropertyName("creationDate"); encoder0.encode(writer, m.getCreationDate()); } if (m.getDepartmentClosingDate() != null) { writer.setNextPropertyName("departmentClosingDate"); encoder0.encode(writer, m.getDepartmentClosingDate()); } if (m.getDepartmentFormationDate() != null) { writer.setNextPropertyName("departmentFormationDate"); encoder0.encode(writer, m.getDepartmentFormationDate()); } if (m.getDepartmentLastUpateDate() != null) { writer.setNextPropertyName("departmentLastUpateDate"); encoder0.encode(writer, m.getDepartmentLastUpateDate()); } writer.setNextPropertyName("operational"); encoder0.encode(writer, m.isOperational()); if (m.getProductDepartmentCode() != null) { writer.setNextPropertyName("productDepartmentCode"); encoder0.encode(writer, m.getProductDepartmentCode()); } if (m.getProductDepartmentKey() != null) { writer.setNextPropertyName("productDepartmentKey"); encoder0.encode(writer, m.getProductDepartmentKey()); } if (m.getProductDepartmentName() != null) { writer.setNextPropertyName("productDepartmentName"); encoder0.encode(writer, m.getProductDepartmentName()); } if (m.getWarehouseLocation() != null) { writer.setNextPropertyName("warehouseLocation"); encoder0.encode(writer, m.getWarehouseLocation()); } if (m.getWarehouseLocationCode() != null) { writer.setNextPropertyName("warehouseLocationCode"); encoder0.encode(writer, m.getWarehouseLocationCode()); } writer.endObject(); }
@Override protected void modelToJson( org.slim3.datastore.json.JsonWriter writer, java.lang.Object model, int maxDepth, int currentDepth) { biz.storebiz.db.entity.customer.Customer m = (biz.storebiz.db.entity.customer.Customer) model; writer.beginObject(); org.slim3.datastore.json.Default encoder0 = new org.slim3.datastore.json.Default(); if (m.getCreationDate() != null) { writer.setNextPropertyName("creationDate"); encoder0.encode(writer, m.getCreationDate()); } if (m.getCustomerId() != null) { writer.setNextPropertyName("customerId"); encoder0.encode(writer, m.getCustomerId()); } if (m.getCustomerKey() != null) { writer.setNextPropertyName("customerKey"); encoder0.encode(writer, m.getCustomerKey()); } if (m.getCustomerLastModificationDate() != null) { writer.setNextPropertyName("customerLastModificationDate"); encoder0.encode(writer, m.getCustomerLastModificationDate()); } if (m.getCustomerRegistrationDate() != null) { writer.setNextPropertyName("customerRegistrationDate"); encoder0.encode(writer, m.getCustomerRegistrationDate()); } if (m.getCustomerRegistrationExpiryDate() != null) { writer.setNextPropertyName("customerRegistrationExpiryDate"); encoder0.encode(writer, m.getCustomerRegistrationExpiryDate()); } if (m.getCustomerType() != null) { writer.setNextPropertyName("customerType"); encoder0.encode(writer, m.getCustomerType()); } if (m.getEmail() != null) { writer.setNextPropertyName("email"); encoder0.encode(writer, m.getEmail()); } if (m.getEmailPreference() != null) { writer.setNextPropertyName("emailPreference"); encoder0.encode(writer, m.getEmailPreference()); } if (m.getEmailSubscription() != null) { writer.setNextPropertyName("emailSubscription"); encoder0.encode(writer, m.getEmailSubscription()); } if (m.getName() != null) { writer.setNextPropertyName("name"); encoder0.encode(writer, m.getName()); } if (m.getPassword() != null) { writer.setNextPropertyName("password"); encoder0.encode(writer, m.getPassword()); } if (m.getPostalAddresses() != null) { writer.setNextPropertyName("postalAddresses"); writer.beginArray(); for (com.google.appengine.api.datastore.Key v : m.getPostalAddresses()) { encoder0.encode(writer, v); } writer.endArray(); } writer.endObject(); }
@Override protected void modelToJson( org.slim3.datastore.json.JsonWriter writer, java.lang.Object model, int maxDepth, int currentDepth) { cz.artique.shared.model.label.Label m = (cz.artique.shared.model.label.Label) model; writer.beginObject(); org.slim3.datastore.json.Default encoder0 = new org.slim3.datastore.json.Default(); if (m.getAppearance() != null) { writer.setNextPropertyName("appearance"); encoder0.encode(writer, m.getAppearance()); } if (m.getBackupLevel() != null) { writer.setNextPropertyName("backupLevel"); encoder0.encode(writer, m.getBackupLevel()); } if (m.getDisplayName() != null) { writer.setNextPropertyName("displayName"); encoder0.encode(writer, m.getDisplayName()); } if (m.getKey() != null) { writer.setNextPropertyName("key"); encoder0.encode(writer, m.getKey()); } if (m.getLabelType() != null) { writer.setNextPropertyName("labelType"); encoder0.encode(writer, m.getLabelType()); } if (m.getName() != null) { writer.setNextPropertyName("name"); encoder0.encode(writer, m.getName()); } writer.setNextPropertyName("priority"); encoder0.encode(writer, m.getPriority()); if (m.getShortcutStroke() != null) { writer.setNextPropertyName("shortcutStroke"); encoder0.encode(writer, m.getShortcutStroke()); } writer.setNextPropertyName("toBeDeleted"); encoder0.encode(writer, m.isToBeDeleted()); if (m.getUserId() != null) { writer.setNextPropertyName("userId"); encoder0.encode(writer, m.getUserId()); } if (m.getVersion() != null) { writer.setNextPropertyName("version"); encoder0.encode(writer, m.getVersion()); } writer.endObject(); }