@GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) public Serialized<Customer> getCustomerById(@PathParam("id") int customerId, @QueryParam("businessDate") String businessDate) throws JsonProcessingException { Timestamp businessDateTS = parse(businessDate); Operation op1 = CustomerFinder.businessDate().eq(businessDateTS); Operation op2 = CustomerFinder.customerId().eq(customerId); Customer customer = CustomerFinder.findOne(op1.and(op2)); return new Serialized<>(customer, serializationConfig); }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { AccountBalanceData data = (AccountBalanceData) this.currentData; Operation op = AccountBalanceFinder.businessDate().eq(this.businessDate); op = op.and(AccountBalanceFinder.processingDate().eq(this.processingDate)); op = op.and(AccountBalanceFinder.accountId().eq(data.getAccountId())); return AccountBalanceFinder.findOne(op); } return this; }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { EmployeeData data = (EmployeeData) this.currentData; Operation op = EmployeeFinder.businessDate().eq(this.businessDate); op = op.and(EmployeeFinder.processingDate().eq(this.processingDate)); op = op.and(EmployeeFinder.employeeId().eq(data.getEmployeeId())); return EmployeeFinder.findOne(op); } return this; }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { CustomerData data = (CustomerData) this.currentData; Operation op = CustomerFinder.businessDate().eq(this.businessDate); op = op.and(CustomerFinder.processingDate().eq(this.processingDate)); op = op.and(CustomerFinder.customerId().eq(data.getCustomerId())); return CustomerFinder.findOne(op); } return this; }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { CustomerAccountData data = (CustomerAccountData) this.currentData; Operation op = CustomerAccountFinder.businessDate().eq(this.businessDate); op = op.and(CustomerAccountFinder.processingDate().eq(this.processingDate)); op = op.and(CustomerAccountFinder.accountId().eq(data.getAccountId())); return CustomerAccountFinder.findOne(op); } return this; }
public Employee zFindOriginal() { EmployeeData data = (EmployeeData) this.currentData; Operation op; op = EmployeeFinder.employeeId().eq(data.getEmployeeId()); op = op.and(EmployeeFinder.businessDate().eq(this.getBusinessDate())); op = op.and(EmployeeFinder.processingDate().eq(this.getProcessingDate())); return EmployeeFinder.findOne(op); }
public CustomerAccount zFindOriginal() { CustomerAccountData data = (CustomerAccountData) this.currentData; Operation op; op = CustomerAccountFinder.accountId().eq(data.getAccountId()); op = op.and(CustomerAccountFinder.businessDate().eq(this.getBusinessDate())); op = op.and(CustomerAccountFinder.processingDate().eq(this.getProcessingDate())); return CustomerAccountFinder.findOne(op); }
public Customer zFindOriginal() { CustomerData data = (CustomerData) this.currentData; Operation op; op = CustomerFinder.customerId().eq(data.getCustomerId()); op = op.and(CustomerFinder.businessDate().eq(this.getBusinessDate())); op = op.and(CustomerFinder.processingDate().eq(this.getProcessingDate())); return CustomerFinder.findOne(op); }
public AccountBalance zFindOriginal() { AccountBalanceData data = (AccountBalanceData) this.currentData; Operation op; op = AccountBalanceFinder.accountId().eq(data.getAccountId()); op = op.and(AccountBalanceFinder.businessDate().eq(this.getBusinessDate())); op = op.and(AccountBalanceFinder.processingDate().eq(this.getProcessingDate())); return AccountBalanceFinder.findOne(op); }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { TaskData data = (TaskData) this.currentData; Operation op = TaskFinder.processingDate().eq(this.processingDate); op = op.and(TaskFinder.taskId().eq(data.getTaskId())); return TaskFinder.findOne(op); } return this; }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { CustomerAccountData data = (CustomerAccountData) this.currentData; Operation op = CustomerAccountFinder.processingDate().eq(this.processingDate); op = op.and(CustomerAccountFinder.accountId().eq(data.getAccountId())); return CustomerAccountFinder.findOne(op); } return this; }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { CustomerData data = (CustomerData) this.currentData; Operation op = CustomerFinder.processingDate().eq(this.processingDate); op = op.and(CustomerFinder.customerId().eq(data.getCustomerId())); return CustomerFinder.findOne(op); } return this; }
public Object readResolve() throws ObjectStreamException { if (this.persistenceState == DatedPersistenceState.PERSISTED) { PetData data = (PetData) this.currentData; Operation op = PetFinder.processingDate().eq(this.processingDate); op = op.and(PetFinder.petName().eq(data.getPetName())); return PetFinder.findOne(op); } return this; }
public Task zFindOriginal() { TaskData data = (TaskData) this.currentData; Operation op; op = TaskFinder.taskId().eq(data.getTaskId()); op = op.and(TaskFinder.processingDate().eq(this.getProcessingDate())); return TaskFinder.findOne(op); }
public CustomerAccount zFindOriginal() { CustomerAccountData data = (CustomerAccountData) this.currentData; Operation op; op = CustomerAccountFinder.accountId().eq(data.getAccountId()); op = op.and(CustomerAccountFinder.processingDate().eq(this.getProcessingDate())); return CustomerAccountFinder.findOne(op); }
public Customer zFindOriginal() { CustomerData data = (CustomerData) this.currentData; Operation op; op = CustomerFinder.customerId().eq(data.getCustomerId()); op = op.and(CustomerFinder.processingDate().eq(this.getProcessingDate())); return CustomerFinder.findOne(op); }
public Pet zFindOriginal() { PetData data = (PetData) this.currentData; Operation op; op = PetFinder.petName().eq(data.getPetName()); op = op.and(PetFinder.processingDate().eq(this.getProcessingDate())); return PetFinder.findOne(op); }
public AccountBalance findByPrimaryKey(int accountId, Timestamp businessDate, Timestamp processingDate) { AccountBalance _result = null; Operation _op = null; Object _related = null; { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setI1AsInteger(accountId); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, businessDate, processingDate); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (AccountBalance) _related; if (_related == null) { _op = this.accountId().eq(accountId).and(this.businessDate().eq(businessDate)).and(this.processingDate().eq(processingDate)); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
public Customer findByPrimaryKey(int customerId, Timestamp businessDate, Timestamp processingDate) { Customer _result = null; Operation _op = null; Object _related = null; { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setI1AsInteger(customerId); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, businessDate, processingDate); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (Customer) _related; if (_related == null) { _op = this.customerId().eq(customerId).and(this.businessDate().eq(businessDate)).and(this.processingDate().eq(processingDate)); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
public Task findByPrimaryKey(int taskId, Timestamp processingDate) { Task _result = null; Operation _op = null; Object _related = null; { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setI1AsInteger(taskId); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, processingDate, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (Task) _related; if (_related == null) { _op = this.taskId().eq(taskId).and(this.processingDate().eq(processingDate)); } if (_op != null) { _result = this.findOne(_op); } return _result; } }