?? downtypemngimpl.java
字號(hào):
package com.jeecms.download.manager.impl;
import java.io.Serializable;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.jeecms.core.JeeCoreManagerImpl;
import com.jeecms.download.dao.DownTypeDao;
import com.jeecms.download.entity.DownType;
import com.jeecms.download.manager.DownTypeMng;
import com.ponyjava.common.hibernate3.Updater;
@Service
@Transactional
public class DownTypeMngImpl extends JeeCoreManagerImpl<DownType> implements
DownTypeMng {
public List<DownType> getList(Long webId, boolean all) {
return getDao().getList(webId, all);
}
public void updatePriority(Long[] wids, int[] prioritys) {
for (int i = 0; i < wids.length; i++) {
DownType entity = findById(wids[i]);
entity.setPriority(prioritys[i]);
}
}
@Override
public Object updateByUpdater(Updater updater) {
DownType down_type = (DownType) super.updateByUpdater(updater);
return down_type;
}
@Override
public DownType save(DownType down_type) {
super.save(down_type);
return down_type;
}
@Override
public DownType findById(Serializable id) {
DownType down_type = super.findById(id);
return down_type;
}
@Override
public DownType deleteById(Serializable id) {
DownType down_type = super.deleteById(id);
return down_type;
}
@Autowired
public void setDao(DownTypeDao dao) {
super.setDao(dao);
}
public DownTypeDao getDao() {
return (DownTypeDao) super.getDao();
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -