org.pentaho.di.trans.steps.sapinput.mock
Class SAPConnectionMock

java.lang.Object
  extended by org.pentaho.di.trans.steps.sapinput.mock.SAPConnectionMock
All Implemented Interfaces:
SAPConnection

public class SAPConnectionMock
extends Object
implements SAPConnection


Constructor Summary
SAPConnectionMock()
           
 
Method Summary
 void close()
          Close the connection
 org.pentaho.di.trans.steps.sapinput.sap.impl.SAPRowIterator executeFunctionCursored(SAPFunction function, Collection<SAPField> input, Collection<SAPField> output)
           
 SAPResultSet executeFunctionUncursored(SAPFunction function, Collection<SAPField> input, Collection<SAPField> output)
           
 SAPFunction getFunction(String name)
           
 Collection<SAPFunction> getFunctions(String query)
           
 SAPFunctionSignature getFunctionSignature(SAPFunction function)
           
 void open(DatabaseMeta sapConnection)
          Open a connection to SAP ERP Note: method for init()
 void open(SAPConnectionParams params)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAPConnectionMock

public SAPConnectionMock()
Method Detail

open

public void open(DatabaseMeta sapConnection)
          throws SAPException
Description copied from interface: SAPConnection
Open a connection to SAP ERP Note: method for init()

Specified by:
open in interface SAPConnection
Parameters:
sapConnection - The SAP Connection to use, needs to be of type SAP ERP
Throws:
SAPException - in case something went wrong during the connection phase.

open

public void open(SAPConnectionParams params)
          throws SAPException
Specified by:
open in interface SAPConnection
Throws:
SAPException

close

public void close()
Description copied from interface: SAPConnection
Close the connection

Specified by:
close in interface SAPConnection

getFunctions

public Collection<SAPFunction> getFunctions(String query)
                                     throws SAPException
Specified by:
getFunctions in interface SAPConnection
Throws:
SAPException

getFunction

public SAPFunction getFunction(String name)
                        throws SAPException
Specified by:
getFunction in interface SAPConnection
Throws:
SAPException

getFunctionSignature

public SAPFunctionSignature getFunctionSignature(SAPFunction function)
                                          throws SAPException
Specified by:
getFunctionSignature in interface SAPConnection
Throws:
SAPException

executeFunctionUncursored

public SAPResultSet executeFunctionUncursored(SAPFunction function,
                                              Collection<SAPField> input,
                                              Collection<SAPField> output)
                                       throws SAPException
Specified by:
executeFunctionUncursored in interface SAPConnection
Throws:
SAPException

executeFunctionCursored

public org.pentaho.di.trans.steps.sapinput.sap.impl.SAPRowIterator executeFunctionCursored(SAPFunction function,
                                                                                           Collection<SAPField> input,
                                                                                           Collection<SAPField> output)
                                                                                    throws SAPException
Specified by:
executeFunctionCursored in interface SAPConnection
Throws:
SAPException