@Override @Transactional public People findById(int id) throws ObjectNotFoundException{ People people = null; people = peopleDao.findById(id); if(people == null){ throw new ObjectNotFoundException("Couldn't find a People object with id " + id); } return people; }
public ObjectNotFoundException(Object failed) { super(_loc.get("not-found", Exceptions.toString(failed))); setFailedObject(failed); }
public ObjectNotFoundException(Collection failed, Throwable[] nested) { super(_loc.get("not-found-multi", Exceptions.toString(failed))); setNestedThrowables(nested); }
fields.set(field); if (!_broker.getStoreManager().load(this, fields, _broker.getFetchConfiguration(), lockLevel, null)) { throw new ObjectNotFoundException(_loc.get("del-instance", _meta.getDescribedType(), _oid)). setFailedObject(getManagedInstance());
fields.set(field); if (!_broker.getStoreManager().load(this, fields, _broker.getFetchConfiguration(), lockLevel, null)) { throw new ObjectNotFoundException(_loc.get("del-instance", _meta.getDescribedType(), _oid)). setFailedObject(getManagedInstance());
fields.set(field); if (!_broker.getStoreManager().load(this, fields, _broker.getFetchConfiguration(), lockLevel, null)) { throw new ObjectNotFoundException(_loc.get("del-instance", _meta.getDescribedType(), _oid)). setFailedObject(getManagedInstance());
/** * Return an object not found exception containing nested exceptions * for all of the given failed objects. */ private static ObjectNotFoundException newObjectNotFoundException (Collection failed) { Throwable[] t = new Throwable[failed.size()]; int idx = 0; for (Iterator itr = failed.iterator(); itr.hasNext(); idx++) t[idx] = new ObjectNotFoundException(itr.next()); return new ObjectNotFoundException(failed, t); }
public ObjectNotFoundException(Object failed) { super(_loc.get("not-found", Exceptions.toString(failed))); setFailedObject(failed); }
public ObjectNotFoundException(Collection failed, Throwable[] nested) { super(_loc.get("not-found-multi", Exceptions.toString(failed))); setNestedThrowables(nested); }
fields.set(field); if (!_broker.getStoreManager().load(this, fields, _broker.getFetchConfiguration(), lockLevel, null)) { throw new ObjectNotFoundException(_loc.get("del-instance", _meta.getDescribedType(), _oid)). setFailedObject(getManagedInstance());
/** * Return an object not found exception containing nested exceptions * for all of the given failed objects. */ private static ObjectNotFoundException newObjectNotFoundException (Collection failed) { Throwable[] t = new Throwable[failed.size()]; int idx = 0; for (Iterator<?> itr = failed.iterator(); itr.hasNext(); idx++) t[idx] = new ObjectNotFoundException(itr.next()); return new ObjectNotFoundException(failed, t); }
public ObjectNotFoundException(Object failed) { super(_loc.get("not-found", Exceptions.toString(failed))); setFailedObject(failed); }
public ObjectNotFoundException(Collection failed, Throwable[] nested) { super(_loc.get("not-found-multi", Exceptions.toString(failed))); setNestedThrowables(nested); }
fetch = _broker.getFetchConfiguration(); if (!_broker.getStoreManager().load(this, fields, fetch, lockLevel, sdata)) { throw new ObjectNotFoundException(_loc.get("del-instance", _meta.getDescribedType(), _oid)). setFailedObject(getManagedInstance());
/** * Return an object not found exception containing nested exceptions * for all of the given failed objects. */ private static ObjectNotFoundException newObjectNotFoundException (Collection failed) { Throwable[] t = new Throwable[failed.size()]; int idx = 0; for (Iterator<?> itr = failed.iterator(); itr.hasNext(); idx++) t[idx] = new ObjectNotFoundException(itr.next()); return new ObjectNotFoundException(failed, t); }
public ObjectNotFoundException(Object failed) { super(_loc.get("not-found", Exceptions.toString(failed))); setFailedObject(failed); }
public ObjectNotFoundException(Collection failed, Throwable[] nested) { super(_loc.get("not-found-multi", Exceptions.toString(failed))); setNestedThrowables(nested); }
fetch = _broker.getFetchConfiguration(); if (!_broker.getStoreManager().load(this, fields, fetch, lockLevel, sdata)) { throw new ObjectNotFoundException(_loc.get("del-instance", _meta.getDescribedType(), _oid)). setFailedObject(getManagedInstance());
/** * Return an object not found exception containing nested exceptions * for all of the given failed objects. */ private static ObjectNotFoundException newObjectNotFoundException (Collection failed) { Throwable[] t = new Throwable[failed.size()]; int idx = 0; for (Iterator<?> itr = failed.iterator(); itr.hasNext(); idx++) t[idx] = new ObjectNotFoundException(itr.next()); return new ObjectNotFoundException(failed, t); }
public ObjectNotFoundException(Object failed) { super(_loc.get("not-found", Exceptions.toString(failed))); setFailedObject(failed); }