public MithraDataObject copy(boolean withRelationships) { ObjectSequenceData copy = new ObjectSequenceData(); this.copyInto(copy, withRelationships); return copy; }
public void clearRelationships() { clearAllDirectRefs(); }
public void copyNonPkAttributes(MithraDataObject newData) { final ObjectSequenceData objectSequenceData = (ObjectSequenceData) newData; this.setNextValue(objectSequenceData.getNextValue()); if (objectSequenceData.isNextValueNull()) this.setNextValueNull(); }
public boolean zNonPrimaryKeyAttributesChanged(MithraDataObject newData, double toleranceForFloatingPointFields) { final ObjectSequenceData other = (ObjectSequenceData) newData; if ( isNextValueNull() != other.isNextValueNull() || getNextValue() != other.getNextValue()) { return true; } return false; }
public void setInsertAttributes(PreparedStatement stm, MithraDataObject dataObj, TimeZone databaseTimeZone, int pos, DatabaseType dt) throws SQLException { ObjectSequenceData data = (ObjectSequenceData)dataObj; TimeZone conversionTimeZone = null; if(data.isSimulatedSequenceNameNull()) { throwNullAttribute("simulatedSequenceName"); } stm.setString(pos++, data.getSimulatedSequenceName()); if (data.isNextValueNull()) { stm.setNull(pos++, java.sql.Types.BIGINT); } else { stm.setLong(pos++, data.getNextValue()); } }
public String zGetPrintablePrimaryKey() { String result = ""; result += "simulatedSequenceName: "+"'"+getSimulatedSequenceName()+"'"+ " / "; return result; }
public ObjectSequenceData inflateObjectSequencePkData(ResultSet _rs, DatabaseType _dt) throws SQLException { ObjectSequenceData _data = new ObjectSequenceData(); int _pos = 1; _data.setSimulatedSequenceName(trimString(_rs.getString(_pos++))); return _data; }
public void inflateNonPkObjectSequenceData(int _pos, ObjectSequenceData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { ObjectSequenceData _data = _datax; _data.setNextValue(_rs.getLong(_pos++)); if (_rs.wasNull()) { _data.setNextValueNull(); } } }
public MithraObject deserializeForRefresh(ObjectInput in) throws IOException, ClassNotFoundException { ObjectSequenceData data = new ObjectSequenceData(); data.zDeserializePrimaryKey(in); return this.createObject(data); }
public boolean hasSamePrimaryKeyIgnoringAsOfAttributes(MithraDataObject other) { if (this == other) return true; final ObjectSequenceData otherData = (ObjectSequenceData) other; if (!isSimulatedSequenceNameNull() ? !getSimulatedSequenceName().equals(otherData.getSimulatedSequenceName()) : !otherData.isSimulatedSequenceNameNull()) { return false; } return true; }
public MithraDataObject zAllocateData() { return new ObjectSequenceData(); }
public boolean isNextValueNull() { return ((ObjectSequenceData) this.zSynchronizedGetData()).isNextValueNull(); }
public void setSimulatedSequenceNameNull() { this.setSimulatedSequenceName(null); }
public boolean isSimulatedSequenceNameNull() { return ((ObjectSequenceData) this.zSynchronizedGetData()).isSimulatedSequenceNameNull(); }
public void setInsertAttributes(PreparedStatement stm, MithraDataObject dataObj, TimeZone databaseTimeZone, int pos, DatabaseType dt) throws SQLException { ObjectSequenceData data = (ObjectSequenceData)dataObj; TimeZone conversionTimeZone = null; if(data.isSimulatedSequenceNameNull()) { throwNullAttribute("simulatedSequenceName"); } stm.setString(pos++, data.getSimulatedSequenceName()); if (data.isNextValueNull()) { stm.setNull(pos++, java.sql.Types.BIGINT); } else { stm.setLong(pos++, data.getNextValue()); } }
public boolean zNonPrimaryKeyAttributesChanged(MithraDataObject newData, double toleranceForFloatingPointFields) { final ObjectSequenceData other = (ObjectSequenceData) newData; if ( isNextValueNull() != other.isNextValueNull() || getNextValue() != other.getNextValue()) { return true; } return false; }
public String zGetPrintablePrimaryKey() { String result = ""; result += "simulatedSequenceName: "+"'"+getSimulatedSequenceName()+"'"+ " / "; return result; }
public ObjectSequenceData inflateObjectSequencePkData(ResultSet _rs, DatabaseType _dt) throws SQLException { ObjectSequenceData _data = new ObjectSequenceData(); int _pos = 1; _data.setSimulatedSequenceName(trimString(_rs.getString(_pos++))); return _data; }
public void inflateNonPkObjectSequenceData(int _pos, ObjectSequenceData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { ObjectSequenceData _data = _datax; _data.setNextValue(_rs.getLong(_pos++)); if (_rs.wasNull()) { _data.setNextValueNull(); } } }
public MithraObject deserializeForRefresh(ObjectInput in) throws IOException, ClassNotFoundException { ObjectSequenceData data = new ObjectSequenceData(); data.zDeserializePrimaryKey(in); return this.createObject(data); }