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