com.dsoft.jca.eis
Interface IEisConnection

All Superinterfaces:
javax.resource.cci.Connection

public interface IEisConnection
extends javax.resource.cci.Connection

Author:
Sadi Melbouci

Method Summary
 java.lang.String execute(java.lang.String command)
          This method executes a command on remote EIS system and return a result of the execution.
 void get(java.lang.String local, java.lang.String remote)
          This method implements the get FTP function
 void put(java.lang.String local, java.lang.String remote)
          This method implements the put function of FTP.
 java.lang.String receive()
          This method is called to receive data after the connection is being made to the EIS server.
 java.lang.String send(java.lang.String message)
          This method sends data to EIS server and returns response back.
 void setRollbackTx(java.lang.String rollback)
          Set the Rollback transaction.
 
Methods inherited from interface javax.resource.cci.Connection
close, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo
 

Method Detail

put

void put(java.lang.String local,
         java.lang.String remote)
         throws ConnectionException
This method implements the put function of FTP.

Parameters:
String - local: is local file name
String - remote: is the remote file name
Throws:
JsshException
ConnectionException

get

void get(java.lang.String local,
         java.lang.String remote)
         throws ConnectionException
This method implements the get FTP function

Parameters:
String - local: Local File Name
String - remote: Remote File Name
Throws:
JsshException
ConnectionException

setRollbackTx

void setRollbackTx(java.lang.String rollback)
Set the Rollback transaction. If the execute command is to create a file, the rollback transaction is delete the file. This method can be called multiple times for one connection. At Rollback, the command will be executed in reverse order they were entered.

Parameters:
rollback: - Rollback command

execute

java.lang.String execute(java.lang.String command)
                         throws ConnectionException
This method executes a command on remote EIS system and return a result of the execution.

Parameters:
command: - Command to execute
Returns:
String
Throws:
ConnectionException

send

java.lang.String send(java.lang.String message)
                      throws ConnectionException
This method sends data to EIS server and returns response back.

Parameters:
message -
Returns:
String
Throws:
ConnectionException

receive

java.lang.String receive()
                         throws ConnectionException
This method is called to receive data after the connection is being made to the EIS server.

Returns:
String
Throws:
ConnectionException


Copyright © 2006 Sadi Melbouci. All Rights Reserved.