package com.jqmobile.core.server.service;
import com.jqmobile.core.server.db.dao.ISimpleDao;
import com.jqmobile.core.service.ISimpleService;
public class SimpleServiceImpl<Bean, DAO extends ISimpleDao<Bean>> extends SimpleService<DAO> implements ISimpleService<Bean>{
@Override
public boolean create(Bean bean) throws Exception {
return getDao().create(bean);
}
@Override
public boolean delete(String recid) throws Exception {
return getDao().delete(recid);
}
@Override
public boolean update(Bean bean) throws Exception {
return getDao().update(bean);
}
@Override
public boolean put(Bean bean) throws Exception {
return getDao().put(bean);
}
@Override
public Bean find(String recid) {
return getDao().find(recid);
}
}