com.nfwork.dbfound.model.bean.Sqls Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbfound Show documentation
Show all versions of dbfound Show documentation
dbfound development platform
package com.nfwork.dbfound.model.bean;
import java.util.ArrayList;
import java.util.List;
import com.nfwork.dbfound.exception.DBFoundPackageException;
import com.nfwork.dbfound.model.base.Entity;
public class Sqls extends Entity {
private static final long serialVersionUID = -5219823527523277120L;
List sqlList = new ArrayList();
@Override
public void run() {
if (getParent() instanceof Execute) {
Execute execute = (Execute) getParent();
execute.setSqls(this);
}
}
@Override
public Sqls cloneEntity() {
Sqls sqls;
try {
sqls = (Sqls) this.clone();
} catch (CloneNotSupportedException e) {
throw new DBFoundPackageException(e.getMessage(), e);
}
List cList = new ArrayList();
for (SqlEntity entity : sqlList) {
cList.add((SqlEntity) entity.cloneEntity());
}
sqls.setSqlList(cList);
return sqls;
}
public List getSqlList() {
return sqlList;
}
public void setSqlList(List sqlList) {
this.sqlList = sqlList;
}
}