/* * (non-Javadoc) * * @see * com.softserveinc.edu.oms.service.interfaces.Service#findAll(com.softserveinc * .edu.oms.persistence.dao.params.SortProperties) */ @Transactional @Deprecated @Override public List<OrderStatus> findAll(final SortProperties sortProperties) { // TODO Auto-generated method stub return dao.findAll(sortProperties); }
/* * (non-Javadoc) * * @see * com.softserveinc.edu.oms.service.interfaces.Service#insertOrUpdate(com * .softserveinc.edu.oms.domain.AbstractEntity) */ @Transactional @Deprecated @Override public OrderStatus insertOrUpdate(final OrderStatus entity) { // TODO Auto-generated method stub return dao.insertOrUpdate(entity); }
@Transactional @Deprecated @Override public Long getRowCount() { // TODO Auto-generated method stub return dao.getRowCount(); }
@Transactional @Override public OrderStatus getByName(final String name) { Criterion nameCriteria = Restrictions.eq("orderStatusName", name); List<OrderStatus> entities = dao.findByCriterions(nameCriteria); return entities.size() < 1 ? null : entities.get(0); }
/* * (non-Javadoc) * * @see * com.softserveinc.edu.oms.service.interfaces.Service#findByID(java.lang * .Integer) */ @Transactional @Override public OrderStatus findByID(final Integer id) { // TODO Auto-generated method stub return dao.findByID(id); }
/* * (non-Javadoc) * * @see com.softserveinc.edu.oms.service.interfaces.Service#findAll() */ @Transactional @Override public List<OrderStatus> findAll() { // TODO Auto-generated method stub return dao.findAll(); }
/* * (non-Javadoc) * * @see * com.softserveinc.edu.oms.service.interfaces.Service#delete(com.softserveinc * .edu.oms.domain.AbstractEntity) */ @Transactional @Deprecated @Override public void delete(final OrderStatus entity) { dao.delete(entity); }