it.list.jft
Interface ActivityLifeCycle

All Superinterfaces:
CommunicationLifeCycle, LifeCycle
All Known Subinterfaces:
EntityClassQuery, EntityFilter, Filter, Query, Subscription, Transaction

public interface ActivityLifeCycle
extends CommunicationLifeCycle

Super-interface common to all lifecycles objects of a given Connection.

The 4 kind of objects (Filter, Query, Subscription and Transaction) that implement this interface:

See Also:
CommunicationLifeCycle

Field Summary
static int RESULT_INVALID_CONNECTION_STATUS
          Failure-code returned when an operation is requested whitin a not correct status of the associated Connection.
 
Fields inherited from interface LifeCycle
RESULT_GENERIC_ERROR, RESULT_INVALID_STATUS, RESULT_OK, STATUS_INIT, STATUS_RELEASED
 
Method Summary
 Connection getConnection()
          Returns the associated Connection.
 
Methods inherited from interface CommunicationLifeCycle
getContext, getListener, getParam
 
Methods inherited from interface LifeCycle
enumChilds, getStatus, release
 

Field Detail

RESULT_INVALID_CONNECTION_STATUS

static final int RESULT_INVALID_CONNECTION_STATUS
Failure-code returned when an operation is requested whitin a not correct status of the associated Connection.

Typically an ActivityLifeCycle objects returns this failure-code when the associated Connection is not in the Connection.STATUS_CONNECTED status.

See Also:
Constant Field Values
Method Detail

getConnection

Connection getConnection()
Returns the associated Connection.

Each ActivityLifeCycle object has a Connection that created it (e.g. for a Subscription the associated Connection is the first parameter of Context.makeSubscription()).
This method return this Connection.

Returns:
the associated Connection.
null is never returned.


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