2004.04.29


com.jdc.rdb
Class DatabaseStatus

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.DatabaseStatus

public final class DatabaseStatus
extends Object

DatabaseStatus maintains the status of the application Database and database Table objects, including the current load status.

Note: This class is implemented as Singleton and cannot be instantiated.  To check the load status of, for example, a Database class, code the following:


 		if (DatabaseStatus.isLoaded(database))
		{
			// do something
		}
 
where database is an instance of Database.

Version:
1.0
Author:
Jay Damon
See Also:
Database, Table

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Method Summary
static void deregister(Database database)
          Removes the specified Database from the list of registered databases with this class.
static void deregister(Table table)
          Removes the specified Table from the list of registered database tables with this class.
static boolean isLoaded(Database database)
          Returns true if the Database is loaded.
static boolean isLoaded(Table table)
          Returns true if the database Table is loaded.
static boolean isRefresh(Table table)
          Returns true if a Table data refresh is required.
static void register(Database database)
          Registers the specified Database with this class.
static void register(Table table)
          Registers the specified Table with this class.
static void setRefresh(Table table)
          Sets the database Table refresh status to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deregister

public static void deregister(Database database)
Removes the specified Database from the list of registered databases with this class.


deregister

public static void deregister(Table table)
Removes the specified Table from the list of registered database tables with this class.


isLoaded

public static boolean isLoaded(Database database)
Returns true if the Database is loaded.

Returns:
True if the Database is loaded.
False if the Database is not loaded.

isLoaded

public static boolean isLoaded(Table table)
Returns true if the database Table is loaded.

Returns:
True if the database Table is loaded.
False if the database Table is not loaded.

isRefresh

public static boolean isRefresh(Table table)
Returns true if a Table data refresh is required.

Returns:
True if a Table data refresh is required.
False if aTable data refresh is not required.

register

public static void register(Database database)
Registers the specified Database with this class. This registration is used to create and access the Database status.


register

public static void register(Table table)
Registers the specified Table with this class. This registration is used to create and access the Table status.


setRefresh

public static void setRefresh(Table table)
Sets the database Table refresh status to true.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.