/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.mzdb;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.joda.time.DateTime;
import java.io.IOException;
import java.lang.ClassNotFoundException;
/**
* Properties of the EntityContainer within a specific tenant and site.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class EntityContainer implements Serializable
{
// Default Serial Version UID
private static final long serialVersionUID = 1L;
/**
* The unique identifier for the product catalog. Catalogs are part of a master catalog.
*/
protected Integer catalogId;
public Integer getCatalogId() {
return this.catalogId;
}
public void setCatalogId(Integer catalogId) {
this.catalogId = catalogId;
}
/**
* Identifier of the user that created the object. System created and read only.
*/
protected String createBy;
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
/**
* The date time in UTC format set when the object was created.
*/
protected DateTime createDate;
public DateTime getCreateDate() {
return this.createDate;
}
public void setCreateDate(DateTime createDate) {
this.createDate = createDate;
}
/**
* Unique identifier of the source product property. For a product field it will be the name of the field. For a product attribute it will be the Attribute FQN.
*/
protected String id;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
/**
* The nameSpace and name for the EntityList in the format name@nameSpace.
*/
protected String listFullName;
public String getListFullName() {
return this.listFullName;
}
public void setListFullName(String listFullName) {
this.listFullName = listFullName;
}
/**
* Language used for the entity. Currently, only "en-US" is supported.
*/
protected String localeCode;
public String getLocaleCode() {
return this.localeCode;
}
public void setLocaleCode(String localeCode) {
this.localeCode = localeCode;
}
/**
* Unique identifier for the master catalog.
*/
protected Integer masterCatalogId;
public Integer getMasterCatalogId() {
return this.masterCatalogId;
}
public void setMasterCatalogId(Integer masterCatalogId) {
this.masterCatalogId = masterCatalogId;
}
/**
* Unique identifier for the site. This ID is used at all levels of a store, catalog, and tenant to associate objects to a site.
*/
protected Integer siteId;
public Integer getSiteId() {
return this.siteId;
}
public void setSiteId(Integer siteId) {
this.siteId = siteId;
}
/**
* Unique identifier of the Mozu tenant.
*/
protected Integer tenantId;
public Integer getTenantId() {
return this.tenantId;
}
public void setTenantId(Integer tenantId) {
this.tenantId = tenantId;
}
/**
* Identifier of the user that updated the entity most recently.
*/
protected String updateBy;
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
/**
* The date and time the object was updated most recently. The date is in UTC format.
*/
protected DateTime updateDate;
public DateTime getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(DateTime updateDate) {
this.updateDate = updateDate;
}
/**
* Unique identifier of the customer account (shopper or system user). System-supplied and read-only. If the shopper user is anonymous, the user ID represents a system-generated user ID string.
*/
protected String userId;
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
/**
* The entity in JSON format.
*/
protected transient com.fasterxml.jackson.databind.JsonNode item;
public com.fasterxml.jackson.databind.JsonNode getItem() {
return this.item;
}
public void setItem(com.fasterxml.jackson.databind.JsonNode item) {
this.item = item;
}
private void writeObject(java.io.ObjectOutputStream out) throws IOException {
out.defaultWriteObject();
if(item == null){
out.writeBoolean(false);
} else {
out.writeBoolean(true);
new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonGenerator.Feature.AUTO_CLOSE_TARGET, false).writeValue(out, item);
}
}
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
if(in.readBoolean()){
this.item = new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonParser.Feature.AUTO_CLOSE_SOURCE, false).readValue(in, com.fasterxml.jackson.databind.JsonNode.class);
}
}
}