Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package pt.webdetails.cda.connections.kettle;
  
  import  org.dom4j.Element;
  import  org.pentaho.reporting.engine.classic.extensions.datasources.kettle.KettleTransFromFileProducer;
  import  org.pentaho.reporting.engine.classic.extensions.datasources.kettle.KettleTransformationProducer;
  import  org.pentaho.reporting.platform.plugin.connection.PentahoKettleTransFromFileProducer;
Todo: Document me!

Date: 08.05.2010 Time: 14:02:09

Author(s):
Thomas Morgner.
 
 public class TransFromFileConnection extends AbstractConnection implements KettleConnection
 {
 
 
 
   {
   }
 
 
   public TransFromFileConnection(final Element connection)
           throws InvalidConnectionException
   {
     super(connection);
   }


  

Parameters:
query the name of the transformation step that should be polled.
Returns:
the initialized transformation producer.
 
   public KettleTransformationProducer createTransformationProducer(final String query)
   {
     if (CdaEngine.getInstance().isStandalone())
     {
       return new KettleTransFromFileProducer("",
               .getTransformationFile(),
               querynullnull.getDefinedArgumentNames(),
               .getDefinedVariableNames());
     }
     return new PentahoKettleTransFromFileProducer("",
             .getTransformationFile(),
             querynullnull.getDefinedArgumentNames(),
             .getDefinedVariableNames());
   }
 
 
   {
   }
 
 
   protected void initializeConnection(final Element connectionthrows InvalidConnectionException
   {
      = new TransFromFileConnectionInfo(connection);
   }
 
 
   public String getType()
   {
     return "kettleTransFromFile";
   }
 
 
   public boolean equals(final Object o)
   {
     if (this == o)
     {
       return true;
     }
     if (o == null || getClass() != o.getClass())
     {
       return false;
     }
 
     final TransFromFileConnection that = (TransFromFileConnectiono;
 
     if ( != null ? !.equals(that.connectionInfo) : that.connectionInfo != null)
     {
       return false;
     }
 
     return true;
   }
 
 
  public int hashCode()
  {
    return  != null ? .hashCode() : 0;
  }
  {
    final ArrayList<PropertyDescriptorproperties = new ArrayList<PropertyDescriptor>();
    return properties;
  }
  public String getTypeForFile()
  {
    return "kettle.TransFromFile";
  }
	  return ;
  }
New to GrepCode? Check out our FAQ X