jpa.p1.sub
Class SubDataset

java.lang.Object
  |
  +--jpa.p1.sub.SubDataset

public class SubDataset
extends java.lang.Object

This class represents a single PlatformOne dataset. It is implemented by the JPA PlatformOne Subscription package, and is created in response to an invocation of the createDataset method in the Subscriber class.


Method Summary
 void cancel(SubDatasetEvent event)
          This method cancels a watch on the dataset.
 SubRecord createRecord(java.lang.String name)
          This method creates a new record object.
 SubRecordList createRecordList()
          This method creates a new record list object.
 void deleteRecord(SubRecord record)
          This method deletes a record object.
 void deleteRecordList(SubRecordList list)
          This method deletes a record list object.
protected  void finalize()
           
 java.lang.String getName()
          This method returns the dataset name.
 void watch(SubDatasetEvent event)
          This method watches the dataset state.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object

getName

public java.lang.String getName()
This method returns the dataset name.

watch

public void watch(SubDatasetEvent event)
This method watches the dataset state. The single argument is a reference to an object in the application that implements the SubDatasetEvent interface. This is used to receive information on state changes to the dataset.

cancel

public void cancel(SubDatasetEvent event)
This method cancels a watch on the dataset.

createRecord

public SubRecord createRecord(java.lang.String name)
This method creates a new record object. This object is unpopulated until it is watched.

createRecordList

public SubRecordList createRecordList()
This method creates a new record list object. This object is unpopulated until it is watched.

deleteRecord

public void deleteRecord(SubRecord record)
This method deletes a record object.

deleteRecordList

public void deleteRecordList(SubRecordList list)
This method deletes a record list object.