Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pt.webdetails.cda.dataaccess;
 
 import  org.dom4j.Element;
 import  org.pentaho.reporting.engine.classic.core.DataFactory;
 import  org.pentaho.reporting.engine.classic.extensions.datasources.scriptable.ScriptableDataFactory;
Todo: Document me!

Date: 16.02.2010 Time: 13:20:39

Author(s):
Thomas Morgner.
public class ScriptableDataAccess extends PREDataAccess {
  public ScriptableDataAccess(final Element element) {
    super(element);
  }
  public ScriptableDataAccess() {
  }
    final ScriptableDataFactory dataFactory = new ScriptableDataFactory();
    dataFactory.setLanguage(connection.getConnectionInfo().getLanguage());
    dataFactory.setScript(connection.getConnectionInfo().getInitScript());
    dataFactory.setQuery("query"getQuery());
    return dataFactory;
  }
  public String getType() {
    return "scriptable";
  }
    return .;
  }
New to GrepCode? Check out our FAQ X