public EmployeeAbstract(Timestamp businessDate , Timestamp processingDate ) { this.businessDate = TimestampPool.getInstance().getOrAddToCache(businessDate, EmployeeFinder.isFullCache()); this.processingDate = TimestampPool.getInstance().getOrAddToCache(processingDate, EmployeeFinder.isFullCache()); this.persistenceState = MEMORY_STATE; }
public void setFirstName(String value) { this.firstName = StringPool.getInstance().getOrAddToCache(value, EmployeeFinder.isFullCache()); }
public void setLastName(String value) { this.lastName = StringPool.getInstance().getOrAddToCache(value, EmployeeFinder.isFullCache()); }
public void setBusinessDateFrom(Timestamp value) { this.businessDateFrom = TimestampPool.getInstance().getOrAddToCache(value, EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); }
public void setProcessingDateFrom(Timestamp value) { this.processingDateFrom = TimestampPool.getInstance().getOrAddToCache(value, EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); }
public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException { this.age = in.readInt(); this.businessDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); this.businessDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, EmployeeFinder.businessDate().getInfinityDate()), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); this.employeeId = in.readInt(); this.firstName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), EmployeeFinder.isFullCache()); this.lastName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), EmployeeFinder.isFullCache()); this.processingDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); this.processingDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, EmployeeFinder.processingDate().getInfinityDate()), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); }
public void deserializeAsOfAttributes(ObjectInput in, Timestamp[] asof) throws IOException, ClassNotFoundException { asof[0] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), EmployeeFinder.isFullCache()); asof[1] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), EmployeeFinder.isFullCache()); }
protected void zDeserializeAsOfAttributes(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { this.businessDate = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), EmployeeFinder.isFullCache()); this.processingDate = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), EmployeeFinder.isFullCache()); }
public void zDeserializePrimaryKey(ObjectInput in) throws IOException, ClassNotFoundException { this.businessDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); this.businessDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, EmployeeFinder.businessDate().getInfinityDate()), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); this.employeeId = in.readInt(); this.processingDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); this.processingDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, EmployeeFinder.processingDate().getInfinityDate()), EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); }
public void setBusinessDateTo(Timestamp value) { if (!value.equals(this.businessDateTo)) { zIncrementDataVersion(); } this.businessDateTo = TimestampPool.getInstance().getOrAddToCache(value, EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); }
public void setProcessingDateTo(Timestamp value) { if (!value.equals(this.processingDateTo)) { zIncrementDataVersion(); } this.processingDateTo = TimestampPool.getInstance().getOrAddToCache(value, EmployeeFinder.isFullCache(), EmployeeFinder.isOffHeap()); }
public MithraObject deserializeForRefresh(ObjectInput in) throws IOException, ClassNotFoundException { EmployeeData data = new EmployeeData(); data.zDeserializePrimaryKey(in); Timestamp[] asof = new Timestamp[2]; asof[0] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), EmployeeFinder.isFullCache()); asof[1] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), EmployeeFinder.isFullCache()); return this.createObject(data, asof); }