public AccountBalanceAbstract(Timestamp businessDate , Timestamp processingDate ) { this.businessDate = TimestampPool.getInstance().getOrAddToCache(businessDate, AccountBalanceFinder.isFullCache()); this.processingDate = TimestampPool.getInstance().getOrAddToCache(processingDate, AccountBalanceFinder.isFullCache()); this.persistenceState = MEMORY_STATE; }
public void setProcessingDateFrom(Timestamp value) { this.processingDateFrom = TimestampPool.getInstance().getOrAddToCache(value, AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); }
public void setBusinessDateFrom(Timestamp value) { this.businessDateFrom = TimestampPool.getInstance().getOrAddToCache(value, AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); }
protected void zDeserializeAsOfAttributes(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { this.businessDate = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), AccountBalanceFinder.isFullCache()); this.processingDate = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), AccountBalanceFinder.isFullCache()); }
public void deserializeAsOfAttributes(ObjectInput in, Timestamp[] asof) throws IOException, ClassNotFoundException { asof[0] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), AccountBalanceFinder.isFullCache()); asof[1] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), AccountBalanceFinder.isFullCache()); }
public void zDeserializePrimaryKey(ObjectInput in) throws IOException, ClassNotFoundException { this.accountId = in.readInt(); this.businessDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); this.businessDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, AccountBalanceFinder.businessDate().getInfinityDate()), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); this.processingDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); this.processingDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, AccountBalanceFinder.processingDate().getInfinityDate()), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); }
public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException { this.isNullBits0 = in.readByte(); this.accountId = in.readInt(); this.balance = in.readDouble(); this.businessDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); this.businessDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, AccountBalanceFinder.businessDate().getInfinityDate()), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); this.processingDateFrom = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestamp(in), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); this.processingDateTo = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, AccountBalanceFinder.processingDate().getInfinityDate()), AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); }
public void setBusinessDateTo(Timestamp value) { if (!value.equals(this.businessDateTo)) { zIncrementDataVersion(); } this.businessDateTo = TimestampPool.getInstance().getOrAddToCache(value, AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); }
public void setProcessingDateTo(Timestamp value) { if (!value.equals(this.processingDateTo)) { zIncrementDataVersion(); } this.processingDateTo = TimestampPool.getInstance().getOrAddToCache(value, AccountBalanceFinder.isFullCache(), AccountBalanceFinder.isOffHeap()); }
public MithraObject deserializeForRefresh(ObjectInput in) throws IOException, ClassNotFoundException { AccountBalanceData data = new AccountBalanceData(); data.zDeserializePrimaryKey(in); Timestamp[] asof = new Timestamp[2]; asof[0] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), AccountBalanceFinder.isFullCache()); asof[1] = TimestampPool.getInstance().getOrAddToCache(MithraTimestamp.readTimezoneInsensitiveTimestampWithInfinity(in, kata.util.TimestampProvider.getInfinityDate()), AccountBalanceFinder.isFullCache()); return this.createObject(data, asof); }