hydroScalingAPI.util.database
Class DB_Register

java.lang.Object
  extended by hydroScalingAPI.util.database.DB_Register

public class DB_Register
extends java.lang.Object

The basic database building block. The register is in escence a Hashtable which allows for rapid retreival of the properties

Author:
Ricardo Mantilla

Constructor Summary
DB_Register(java.lang.String[] Fields, java.lang.Object[] Values)
          Creates a new DB_Register
 
Method Summary
 java.lang.Object getProperty(java.lang.String propName)
          Returns the value associated to a given property
 java.lang.String toString()
          Prints an elegant description of the DB_Register showin the property nams and property values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DB_Register

public DB_Register(java.lang.String[] Fields,
                   java.lang.Object[] Values)
Creates a new DB_Register

Parameters:
Fields - The name of the properties
Values - The values associated to the properties
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String propName)
Returns the value associated to a given property

Parameters:
propName - The desired property
Returns:
An Object

toString

public java.lang.String toString()
Prints an elegant description of the DB_Register showin the property nams and property values

Overrides:
toString in class java.lang.Object
Returns:
A String


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.