package cn.myapps.runtime.excutor.async;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

public class RuntimeDaoCommandGroup implements Serializable{
	
	private static final long serialVersionUID = -1866649585615972543L;
	private ArrayList<RuntimeDaoCommand> commandList = new ArrayList<RuntimeDaoCommand>();

	public void add(RuntimeDaoCommand command) {
		commandList.add(command);
	}
	
	public Collection<RuntimeDaoCommand> getCommandList(){
		return commandList;
	}
	
	public int size() {
		return commandList.size();
	}
	
}
