org.pentaho.di.trans.steps.sapinput.mock
Class SAPConnectionMock
java.lang.Object
org.pentaho.di.trans.steps.sapinput.mock.SAPConnectionMock
- All Implemented Interfaces:
- SAPConnection
public class SAPConnectionMock
- extends Object
- implements SAPConnection
SAPConnectionMock
public SAPConnectionMock()
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