All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class designer.DBProxy

java.lang.Object
   |
   +----designer.DBProxy

public class DBProxy
extends Object
Class Name: dbProxy
This class is called by the designer to interface
to the "real" database, whatever it may be.


Constructor Index

 o DBProxy()

Method Index

 o add(String, Object, String, String)
Method Name: add()
Purpose: This method will add a key,value pair into the database.
 o elementType(String)
Method Name: elementType
Purpose: This looks up the element's type.
 o get(Object)
Method Name: get
Purpose: Retrieves the value of the passed key (or variable).
 o getDisplayType(Object)
Purpose: Returns the display type of the key passed
PRE: key is not null
POST: String representation of type returned
 o getNames()
Method Name: getNames
Purpose: Returns names of all variables in database
Pre: none
Post: names returned in Vector
 o lookupBoolean(String)
Method Name: lookupBoolean
Purpose: Used for database entries that are booleans.
 o lookupNumber(String)
Method Name: lookupNumber
Purpose: Used for database entries that are integers.
 o remove(Object)
Method Name: remove
Purpose: Removes the variable from the database.
 o updateValue(String, Object)
Method Name: updateValue
Purpose: Places a new value in for the database variable.
 o validEntry(String)
Method Name: validEntry
Purpose: Checks the database to see if dbEntry is an entry.

Constructors

 o DBProxy
 public DBProxy()

Methods

 o validEntry
 public static boolean validEntry(String dbEntry)
Method Name: validEntry
Purpose: Checks the database to see if dbEntry is an entry.
PRE: dbEntry is not null and not equal to "".
POST: return whether it exists in the database.

 o lookupNumber
 public static Number lookupNumber(String dbEntry)
Method Name: lookupNumber
Purpose: Used for database entries that are integers. Looks up
the value.
PRE: dbEntry is not null and not equal to "".
POST: Value returned, unless database entry not of type Number.

 o lookupBoolean
 public static Boolean lookupBoolean(String dbEntry)
Method Name: lookupBoolean
Purpose: Used for database entries that are booleans. Looks up
the value.
PRE: dbEntry is not null and not equal to "".
POST: Value returned, unless database entry not of type Number.

 o elementType
 public static String elementType(String dbEntry)
Method Name: elementType
Purpose: This looks up the element's type.
PRE: dbEntry is not null and not equal to "".
POST: type returned.

 o add
 public static void add(String key,
                        Object value,
                        String type,
                        String displayType)
Method Name: add()
Purpose: This method will add a key,value pair into the database.
PRE: value is not null.
POST: element added.

 o updateValue
 public static void updateValue(String key,
                                Object value)
Method Name: updateValue
Purpose: Places a new value in for the database variable.
PRE: key is not null and not equal to "".
POST: key has been updated.

 o get
 public static Object get(Object key)
Method Name: get
Purpose: Retrieves the value of the passed key (or variable).
PRE: key is not null
POST: value returned.

 o getDisplayType
 public static String getDisplayType(Object key)
Purpose: Returns the display type of the key passed
PRE: key is not null
POST: String representation of type returned

 o remove
 public static void remove(Object key)
Method Name: remove
Purpose: Removes the variable from the database.
PRE: key is not null
POST: key removed.

 o getNames
 public static Vector getNames()
Method Name: getNames
Purpose: Returns names of all variables in database
Pre: none
Post: names returned in Vector


All Packages  Class Hierarchy  This Package  Previous  Next  Index