@Override public Status selectById(final int id) { return transactionManager.doInTransaction( new Operation<Status>() { @Override public Status doOperation() { return statusRepository.selectById(id); } }); }
@Override public Status selectByName(final String name) { return transactionManager.doInTransaction( new Operation<Status>() { @Override public Status doOperation() { return statusRepository.findByName(name); } }); }
@Override public List<Status> getAll() { return transactionManager.doInTransaction( new Operation<List<Status>>() { @Override public List<Status> doOperation() { return statusRepository.selectAll(); } }); }