All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sso.Persistant

java.lang.Object
   |
   +----sso.Persistant

public class Persistant
extends Object

Variable Index

 o checkpoint_time
 o created_time
 o id
 o storeListeners

Constructor Index

 o Persistant()
Constructor.

Method Index

 o addStoreListener(StoreListener)
Add listener for stored events.
 o createPersistant()
Factory method.
 o createRows()
Create the rows needed to store this object.
 o getID()
Get the object's unique id.
 o getStatement()
Get a database statement.
 o init()
For creating new instances of this object only.
 o load()
 o loadPersistant(int)
Factory method.
 o main(String[])
Tester.
 o register()
Get a unique ID for the object.
 o removeStoreListener(StoreListener)
Remove listener for stored events.
 o store()
Store the object in the database.
 o stored()
Fires a new stored event.
 o unregister()
Remove the object from the registry and database.

Variables

 o id
 protected int id
 o created_time
 protected long created_time
 o checkpoint_time
 protected long checkpoint_time
 o storeListeners
 protected Vector storeListeners

Constructors

 o Persistant
 protected Persistant()
Constructor. Not intended to be publically called.

Methods

 o createPersistant
 public static Persistant createPersistant()
Factory method. Intended for new object only. For loading objects from the database, use the factory method load().

 o init
 protected void init()
For creating new instances of this object only. Called by create().

 o getID
 public int getID()
Get the object's unique id.

 o register
 public void register()
Get a unique ID for the object.

 o unregister
 public void unregister()
Remove the object from the registry and database. Set the unique id to invalid object id.

 o createRows
 protected void createRows()
Create the rows needed to store this object.

 o store
 public void store()
Store the object in the database.

 o loadPersistant
 public static Persistant loadPersistant(int id)
Factory method. Retrieve the object from the database.

 o load
 protected void load()
 o getStatement
 protected static Statement getStatement() throws SQLException
Get a database statement.

 o stored
 protected void stored()
Fires a new stored event.

 o addStoreListener
 public void addStoreListener(StoreListener l)
Add listener for stored events.

 o removeStoreListener
 public void removeStoreListener(StoreListener l)
Remove listener for stored events.

 o main
 public static void main(String args[])
Tester.


All Packages  Class Hierarchy  This Package  Previous  Next  Index