All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nfwork.dbfound.model.bean.Sqls Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy