All Packages Class Hierarchy This Package Previous Next Index
Class sso.Persistant
java.lang.Object
|
+----sso.Persistant
- public class Persistant
- extends Object
-
checkpoint_time
-
-
created_time
-
-
id
-
-
storeListeners
-
-
Persistant()
- Constructor.
-
addStoreListener(StoreListener)
- Add listener for stored events.
-
createPersistant()
- Factory method.
-
createRows()
- Create the rows needed to store this object.
-
getID()
- Get the object's unique id.
-
getStatement()
- Get a database statement.
-
init()
- For creating new instances of this object only.
-
load()
-
-
loadPersistant(int)
- Factory method.
-
main(String[])
- Tester.
-
register()
- Get a unique ID for the object.
-
removeStoreListener(StoreListener)
- Remove listener for stored events.
-
store()
- Store the object in the database.
-
stored()
- Fires a new stored event.
-
unregister()
- Remove the object from the registry and database.
id
protected int id
created_time
protected long created_time
checkpoint_time
protected long checkpoint_time
storeListeners
protected Vector storeListeners
Persistant
protected Persistant()
- Constructor. Not intended to be publically called.
createPersistant
public static Persistant createPersistant()
- Factory method. Intended for new object only.
For loading objects from the database, use the factory method
load().
init
protected void init()
- For creating new instances of this object only.
Called by create().
getID
public int getID()
- Get the object's unique id.
register
public void register()
- Get a unique ID for the object.
unregister
public void unregister()
- Remove the object from the registry and database.
Set the unique id to invalid object id.
createRows
protected void createRows()
- Create the rows needed to store this object.
store
public void store()
- Store the object in the database.
loadPersistant
public static Persistant loadPersistant(int id)
- Factory method.
Retrieve the object from the database.
load
protected void load()
getStatement
protected static Statement getStatement() throws SQLException
- Get a database statement.
stored
protected void stored()
- Fires a new stored event.
addStoreListener
public void addStoreListener(StoreListener l)
- Add listener for stored events.
removeStoreListener
public void removeStoreListener(StoreListener l)
- Remove listener for stored events.
main
public static void main(String args[])
- Tester.
All Packages Class Hierarchy This Package Previous Next Index