import java.io.Serializable;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
/**
* Service实现类 - Service实现类基类
* ============================================================================
*
* ----------------------------------------------------------------------------
*
* ----------------------------------------------------------------------------
*
* ----------------------------------------------------------------------------
*
* ============================================================================
*/
public class BaseServiceImpl
private BaseDao
public BaseDao
return baseDao;
}
public void setBaseDao(BaseDao
this.baseDao = baseDao;
}
public T get(PK id) {
return baseDao.get(id);
}
public T load(PK id) {
return baseDao.load(id);
}
public List
return baseDao.get(ids);
}
public T get(String propertyName, Object value) {
return baseDao.get(propertyName, value);
}
public List
return baseDao.getList(propertyName, value);
}
public List
return baseDao.getAll();
}
public Long getTotalCount() {
return baseDao.getTotalCount();
}
public boolean isUnique(String propertyName, Object oldValue, Object newValue) {
return baseDao.isUnique(propertyName, oldValue, newValue);
}
public boolean isExist(String propertyName, Object value) {
return baseDao.isExist(propertyName, value);
}
public PK save(T entity) {
return baseDao.save(entity);
}
public void update(T entity) {
baseDao.update(entity);
}
public void delete(T entity) {
baseDao.delete(entity);
}
public void delete(PK id) {
baseDao.delete(id);
}
public void delete(PK[] ids) {
baseDao.delete(ids);
}
public void flush() {
baseDao.flush();
}
public void clear() {
baseDao.clear();
}
public void evict(Object object) {
baseDao.evict(object);
}
public Pager findByPager(Pager pager) {
return baseDao.findByPager(pager);
}
public Pager findByPager(Pager pager, DetachedCriteria detachedCriteria) {
return baseDao.findByPager(pager, detachedCriteria);
}
}