/*
 * Created on Jul 28, 2005
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package jreport.uds.javabean.api;

import java.util.Properties;

import jreport.uds.javabean.exception.RptDataInitializerException;

/**
 * @author mdaly
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public interface RptDataInitializer {
	/**
	 * 
	 * @param props - contains the parsed parameter name and value pair passed down from UDSForJavaBean data
	 * source
	 * 
	 * @return This method is called back from GenericBeanDataProvider. The return value should be the collection 
	 * type that GenericBeanDataProvider supports. For example, Collection, Vector or any arrays.
	 * 
	 * @throws RptDataInitializerException
	 */
	public Object getDataCollection(Properties props)throws RptDataInitializerException ;
	/**
	 * This method will be called by GenericBeanDataProvider when UDS resultset is released.
	 */
	public void close();
}
