it.list.jft
Interface TransactionID

All Superinterfaces:
Serializable

public interface TransactionID
extends Serializable

Interface that allows to identify a Transaction.

Each Transaction is identified by a TransactionID made of:

All TransactionIDs share a belongsTo() method to check their compatibility with a given Connection.

This interface extend the Serializable interface in order to save and then re-create TransactionID objects.

In alternative a programmer may save the five ints returned by getClientID(), getClientServiceID(), getBusinessServiceID(), getTimeStamp() and then re-create the same TransactionID object using the JFT.makeTransactionID() with the 5 saved ints as parameters.


Method Summary
 boolean belongsTo(Connection connection)
          Returns the compatibility of this TransactionID with a given Connection.
 int getBusinessServiceID()
          Returns the BusinessServiceID to which the transaction was sent.
 int getClientID()
          Returns the ClientID from which the transaction was sent.
 int getClientServiceID()
          Returns the ClientServiceID to which the transaction was sent.
 TimeStamp getTimeStamp()
          Returns the TimeStamp of when the transaction was sent.
 

Method Detail

belongsTo

boolean belongsTo(Connection connection)
Returns the compatibility of this TransactionID with a given Connection.

Only a compatible transactionID can be successfully queried using a TransactionParam.setPendingTransactionID().

A TransactionID is compatible with a Connection if:

Parameters:
connection - Connection to be checked for compatibility
Returns:
the compatibility of this TransactionID with a given Connection.
false is returned when the connection parameter is null,
or when the connection status is not Connection.STATUS_CONNECTED.
See Also:
Transaction.query(), TransactionParam.getPendingTransactionID()

getClientID

int getClientID()
Returns the ClientID from which the transaction was sent.

Returns:
the ClientID from which the transaction was sent.
See Also:
ConnectionParam.getClientID()

getClientServiceID

int getClientServiceID()
Returns the ClientServiceID to which the transaction was sent.

Returns:
the ClientServiceID to which the transaction was sent.
See Also:
ConnectionOpenEvent.getClientServiceID()

getBusinessServiceID

int getBusinessServiceID()
Returns the BusinessServiceID to which the transaction was sent.

Returns:
the BusinessServiceID to which the transaction was sent.
See Also:
ConnectionOpenEvent.getBusinessServiceID()

getTimeStamp

TimeStamp getTimeStamp()
Returns the TimeStamp of when the transaction was sent.

Returns:
the TimeStamp of when the transaction was sent.
null is never returned.


Submit a bug or feature to FT\API Programming Support<\font>