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.pmd.PmdConnectionProvider;
 import  org.pentaho.reporting.engine.classic.extensions.datasources.pmd.PmdDataFactory;
 import  org.pentaho.reporting.platform.plugin.connection.PentahoPmdConnectionProvider;
Todo: Document me!

Date: 16.02.2010 Time: 13:17:20

Author(s):
Thomas Morgner.
public class MqlDataAccess extends PREDataAccess {
  private static final ConnectionType connectionType = .;
  public MqlDataAccess(final Element element) {
    super(element);
  }
  public MqlDataAccess() {
  }
  
  

Parameters:
id
name
connectionId
query
  public MqlDataAccess(String idString nameString connectionIdString query){
  	super(id,nameconnectionIdquery);
  }
    final PmdDataFactory returnDataFactory = new PmdDataFactory();
    returnDataFactory.setXmiFile(connection.getMetadataConnectionInfo().getXmiFile());
    returnDataFactory.setDomainId(connection.getMetadataConnectionInfo().getDomainId());
    if (CdaEngine.getInstance().isStandalone()) {
      returnDataFactory.setConnectionProvider(new PmdConnectionProvider());
    } else {
      returnDataFactory.setConnectionProvider(new PentahoPmdConnectionProvider());
    }
    returnDataFactory.setQuery("query"getQuery());
    return returnDataFactory;
  }
  public String getType() {
    return "mql";
  }
    return .;
  }
New to GrepCode? Check out our FAQ X