@GET @Path("/findByLastName") @Produces(MediaType.APPLICATION_JSON) public SerializedList<Customer, CustomerList> getCustomersByLastName(@QueryParam("lastName") String lastName) { CustomerList customers = CustomerFinder.findMany(CustomerFinder.lastName().eq(lastName)); return new SerializedList<>(customers, serializationConfig); }
public Operation eq(ObjectSequence other) { return this.simulatedSequenceName().eq(other.getSimulatedSequenceName()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public Operation eq(Pet other) { return this.petName().eq(other.getPetName()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public Operation eq(ObjectSequence other) { return this.simulatedSequenceName().eq(other.getSimulatedSequenceName()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public Operation eq(ObjectSequence other) { return this.simulatedSequenceName().eq(other.getSimulatedSequenceName()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public ObjectSequence zFindOriginal() { ObjectSequenceData data = (ObjectSequenceData) this.currentData; Operation op; op = ObjectSequenceFinder.simulatedSequenceName().eq(data.getSimulatedSequenceName()); return ObjectSequenceFinder.findOne(op); }
public ObjectSequence zFindOriginal() { ObjectSequenceData data = (ObjectSequenceData) this.currentData; Operation op; op = ObjectSequenceFinder.simulatedSequenceName().eq(data.getSimulatedSequenceName()); return ObjectSequenceFinder.findOne(op); }
public ObjectSequence zFindOriginal() { ObjectSequenceData data = (ObjectSequenceData) this.currentData; Operation op; op = ObjectSequenceFinder.simulatedSequenceName().eq(data.getSimulatedSequenceName()); return ObjectSequenceFinder.findOne(op); }
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 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 ObjectSequence findByPrimaryKey(String simulatedSequenceName) { ObjectSequence _result = null; Operation _op = null; Object _related = null; if (simulatedSequenceName != null) { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setO1(simulatedSequenceName); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (ObjectSequence) _related; if (_related == null) { _op = this.simulatedSequenceName().eq(simulatedSequenceName); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
public ObjectSequence findByPrimaryKey(String simulatedSequenceName) { ObjectSequence _result = null; Operation _op = null; Object _related = null; if (simulatedSequenceName != null) { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setO1(simulatedSequenceName); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (ObjectSequence) _related; if (_related == null) { _op = this.simulatedSequenceName().eq(simulatedSequenceName); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
public ObjectSequence findByPrimaryKey(String simulatedSequenceName) { ObjectSequence _result = null; Operation _op = null; Object _related = null; if (simulatedSequenceName != null) { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setO1(simulatedSequenceName); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (ObjectSequence) _related; if (_related == null) { _op = this.simulatedSequenceName().eq(simulatedSequenceName); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
public Pet findByPrimaryKey(String petName, Timestamp processingDate) { Pet _result = null; Operation _op = null; Object _related = null; if (petName != null) { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setO1(petName); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, processingDate, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (Pet) _related; if (_related == null) { _op = this.petName().eq(petName).and(this.processingDate().eq(processingDate)); } if (_op != null) { _result = this.findOne(_op); } return _result; } }