src/com/allde/framework/business/ebo/AbstractEbo.java
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.allde.framework.business.ebo;
import java.io.Serializable;
import java.util.List;
import com.allde.framework.business.ebi.Ebi;
import com.allde.framework.dao.dao.DAO;
import com.allde.framework.model.Model;
import com.allde.framework.util.PagerModel;
import com.allde.framework.util.SystemContext;
public abstract class AbstractEbo<M extends Model, QM extends M> implements
Ebi<M, QM> {
protected abstract DAO<M, QM> getDao();
public Serializable create(M model) {
return getDao().create(model);
}
public boolean delete(int uuid) {
getDao().delete(uuid);
return true;
}
public boolean update(M model) {
getDao().update(model);
return true;
}
public M getSingle(int uuid) {
return getDao().getSingle(uuid);
}
public int getAllCount() {
return getDao().getAllCount();
}
public List<M> getAll(int firstRecord, int maxRecords) {
return getDao().getAll(firstRecord, maxRecords);
}
public int getByConditionCount(QM qm) {
return getDao().getByConditionCount(qm);
}
public List<M> getByCondition(QM qm, int firstRecord, int maxRecords) {
return getDao().getByCondition(qm, firstRecord, maxRecords);
}
public List<M> getAll() {
return this.getDao().getAll();
}
public PagerModel<M> getAllPM(int firstRecord, int maxRecords) {
return this.getDao().getAllPM(firstRecord, maxRecords);
}
public PagerModel<M> getByConditionPM(QM qm, int firstRecord, int maxRecords) {
return this.getDao().getByConditionPM(qm, firstRecord, maxRecords);
后面还有 13 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。