|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.util.database.DB_Table
public class DB_Table
A second level building block for the database. The DB_Table groups a number of registers and performs actions on them, such as searchs, retreival, adding and removing, getting value ranges, etc.
| Constructor Summary | |
|---|---|
DB_Table(java.lang.String[] Fields,
java.lang.String[] Type)
Creates a new DB_Table |
|
| Method Summary | |
|---|---|
void |
addRegister(DB_Register Register)
Adds a regiter to the table using a pre-defined master index (defined ath the time of the DB_Table construction) or an integer to identyfy the register |
void |
addRegister(java.lang.String RegisterIndex,
DB_Register Register)
Adds a regiter to the table using a master String unique descriptor |
DB_Register[] |
compareFieldsTo(java.lang.String[] FieldName,
java.lang.Object[] ValueToCompare,
int[] ConditionToCheckFor)
A more general search for registers in the table. |
DB_Register[] |
findRegister(java.lang.String[] FieldName,
java.lang.Object[] ValueToCompare)
Finds registers in the table that match a set of values criteria in several of its properties (e.g. |
java.lang.String[] |
getFieldNames()
Returns a list of the available properties in the registers of the table |
java.lang.Double |
getMaxValue(java.lang.String FieldName)
Returns the maximum value for a given "Numeric" Property |
java.lang.Double |
getMinValue(java.lang.String FieldName)
Returns the minimum value for a given "Numeric" Property |
DB_Register |
getRegisterByMainIndex(java.lang.Object ValueToMatch)
Returns a DB_Register whose main index matches a predetermined keyword |
java.util.Vector |
getUniqueValues(java.lang.String FieldName)
Returns a vector of Objects with unique values for a given property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DB_Table(java.lang.String[] Fields,
java.lang.String[] Type)
Fields - The properties that the table will handleType - The type associated to each of the properties. Available types are:Index
Alpha
Numeric
The type determines how search condition are aplied to this object and how to determine the unique values for a given property| Method Detail |
|---|
public void addRegister(java.lang.String RegisterIndex,
DB_Register Register)
RegisterIndex - The unique descriptor for the Register to be addedRegister - The register to be addedpublic void addRegister(DB_Register Register)
Register - The register to be addedpublic DB_Register getRegisterByMainIndex(java.lang.Object ValueToMatch)
ValueToMatch - The keyword to be matched
public DB_Register[] findRegister(java.lang.String[] FieldName,
java.lang.Object[] ValueToCompare)
FieldName - The properties to matchValueToCompare - The values to match
public DB_Register[] compareFieldsTo(java.lang.String[] FieldName,
java.lang.Object[] ValueToCompare,
int[] ConditionToCheckFor)
0: equal to
-1: smaller than
1: greater than
FieldName - The properties to matchValueToCompare - The values to matchConditionToCheckFor - The conditions to apply to the reference value
public java.lang.Double getMaxValue(java.lang.String FieldName)
FieldName - The property to query
public java.lang.Double getMinValue(java.lang.String FieldName)
FieldName - The property to query
public java.lang.String[] getFieldNames()
public java.util.Vector getUniqueValues(java.lang.String FieldName)
FieldName - The property to query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.