|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.comm.database.DatabaseRecord
public class DatabaseRecord
A class holding a vector of all attribute objects
Constructor Summary | |
---|---|
DatabaseRecord()
|
Method Summary | |
---|---|
void |
addAttributeValue(AttributeValue attributeValue)
Add a single value to the database record vector |
void |
addAttributeValue(java.util.Vector attributeValues)
Add a whole vector to the database record vector |
DatabaseRecord |
addDatabaseRecord(DatabaseRecord a_DatabaseRecord)
Add a whole database record |
java.lang.String |
getAttributesList()
Return a list of the attribute names of the AttributeValue objecs in the database record of the class |
java.lang.String |
getAttributeValueList()
Get a list of the values of the AttributeValue objects of the database record of the class |
java.lang.String |
getConditions(java.lang.String operator)
Return the elements of a database record formatted as the condition part of an SQL statement |
AttributeValue |
getElement(int index)
Return the correcsponding element from the database record vector |
java.lang.String |
getList()
get a formated list of the AttributeValue objects in the class database record. |
int |
getSize()
Return the size of the database record |
static void |
main(java.lang.String[] args)
|
void |
printDatabaseRecord()
Print all AttributeValue objects n the database record |
java.lang.String |
query(java.util.Vector attributes)
get a vector of attribute names and returns their values from the database record |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseRecord()
Method Detail |
---|
public java.lang.String getAttributeValueList()
none
-
public java.lang.String getAttributesList()
none
-
public java.lang.String getList()
none
-
public int getSize()
public AttributeValue getElement(int index)
index
- - an integer holding the position of the desired element
public java.lang.String getConditions(java.lang.String operator)
operator
- the operator used for the condtion (eg '=', '<', etc)
public void addAttributeValue(AttributeValue attributeValue)
attributeValue
- - the object to be insertedpublic void addAttributeValue(java.util.Vector attributeValues)
attibuteValue
- - a vector of attribute value objectspublic DatabaseRecord addDatabaseRecord(DatabaseRecord a_DatabaseRecord)
a_DatabaseRecord
- the database record to be merged
public java.lang.String query(java.util.Vector attributes)
attributes
- a vector of attribute names to be checked in the database record
public void printDatabaseRecord()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |