public MithraDataObject copy() { CustomerData copy = new CustomerData(); this.copyInto(copy, true); return copy; }
public void clearRelationships() { clearAllDirectRefs(); }
public boolean zNonPrimaryKeyAttributesChanged(MithraDataObject newData, double toleranceForFloatingPointFields) { final CustomerData other = (CustomerData) newData; if (!isCountryNull() ? !getCountry().equals(other.getCountry()) : !other.isCountryNull()) { return true; } if (!isNameNull() ? !getName().equals(other.getName()) : !other.isNameNull()) { return true; } return false; }
public void copyNonPkAttributes(MithraDataObject newData) { final CustomerData customerData = (CustomerData) newData; this.setCountry(customerData.getCountry()); this.setName(customerData.getName()); }
public MithraObject deserializeForRefresh(ObjectInput in) throws IOException, ClassNotFoundException { CustomerData data = new CustomerData(); data.zDeserializePrimaryKey(in); return this.createObject(data); }
public CustomerData inflateCustomerPkData(ResultSet _rs, DatabaseType _dt) throws SQLException { CustomerData _data = new CustomerData(); int _pos = 1; _data.setCustomerId(_rs.getInt(_pos++)); checkNullPrimitive(_rs, _data, "customerId"); return _data; }
public boolean hasSamePrimaryKeyIgnoringAsOfAttributes(MithraDataObject other) { if (this == other) return true; final CustomerData otherData = (CustomerData) other; if (getCustomerId() != otherData.getCustomerId()) { return false; } return true; }
public void inflateNonPkCustomerData(int _pos, CustomerData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { CustomerData _data = _datax; _data.setName(trimString(_rs.getString(_pos++))); _data.setCountry(trimString(_rs.getString(_pos++))); } }
public static CustomerData allocateOnHeapData() { return new CustomerData(); }
public boolean isCountryNull() { return this.getCountry() == null; }
public boolean isNameNull() { return this.getName() == null; }
public void setCountryNull() { this.setCountry(null); }
public boolean isCountryNull() { return ((CustomerData) this.zSynchronizedGetData()).isCountryNull(); }
public boolean isCustomerIdNull() { return ((CustomerData) this.zSynchronizedGetData()).isCustomerIdNull(); }
public boolean isNameNull() { return ((CustomerData) this.zSynchronizedGetData()).isNameNull(); }
public String zGetPrintablePrimaryKey() { String result = ""; result += "customerId: "+(""+getCustomerId())+ " / "; return result; }
public MithraDataObject zAllocateData() { return new CustomerData(); }
public String getCountry() { CustomerData data = (CustomerData) this.zSynchronizedGetData(); return data.getCountry(); }
public String getName() { CustomerData data = (CustomerData) this.zSynchronizedGetData(); return data.getName(); }
public void setInsertAttributes(PreparedStatement stm, MithraDataObject dataObj, TimeZone databaseTimeZone, int pos, DatabaseType dt) throws SQLException { CustomerData data = (CustomerData)dataObj; TimeZone conversionTimeZone = null; stm.setInt(pos++, data.getCustomerId()); if(data.isNameNull()) { throwNullAttribute("name"); } stm.setString(pos++, data.getName()); if(data.isCountryNull()) { throwNullAttribute("country"); } stm.setString(pos++, data.getCountry()); }