jpa.p1.sub
Interface SubRecordEvent


public interface SubRecordEvent

This interface is the event counterpart to the SubRecord interface. This interface is implemented by the client application.


Method Summary
 void onAbort()
          This method is invoked if the record is aborted.
 void onFreeUpdate()
          This method is invoked whenever a free-format (i.e.
 void onImage()
          This method is invoked whenever an initial image is received for the record.
 void onSchema()
          This method is invoked whenever a schema is received.
 void onState(int state)
          This method is invoked whenever the record's state changes.
 void onUpdate()
          This method is invoked whenever an update is received for the record.
 

Method Detail

onSchema

public void onSchema()
This method is invoked whenever a schema is received. The schema may be accessed using the getSchema method in the SubRecord class.

onImage

public void onImage()
This method is invoked whenever an initial image is received for the record.

onUpdate

public void onUpdate()
This method is invoked whenever an update is received for the record.

onFreeUpdate

public void onFreeUpdate()
This method is invoked whenever a free-format (i.e. schema-less) update is received for the record.

onState

public void onState(int state)
This method is invoked whenever the record's state changes. The following values are currently implemented:

  • RECORDSTATE_VALID
  • RECORDSTATE_OUTOFDATE
  • RECORDSTATE_NOTPERMITTED

  • onAbort

    public void onAbort()
    This method is invoked if the record is aborted. The record in question no longer exists, and the record object is deleted following this invocation.