uk.ac.ic.doc.automed.util.db
Class DBRecord
java.lang.Object
uk.ac.ic.doc.automed.util.db.DBRecord
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DBRecordWithConstraints
public class DBRecord
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
protected java.util.List |
fields
|
protected java.util.Vector |
row
|
Constructor Summary |
DBRecord(java.util.List fields,
java.util.Vector row)
The order of fields is the same as in a record |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fields
protected java.util.List fields
row
protected java.util.Vector row
DBRecord
public DBRecord(java.util.List fields,
java.util.Vector row)
- The order of fields is the same as in a record
getStringValue
public java.lang.String getStringValue(java.lang.String columnName)
throws NotFoundException
- Throws:
NotFoundException
getDoubleValue
public double getDoubleValue(java.lang.String columnName)
throws NotFoundException
- Throws:
NotFoundException
getIntegerValue
public int getIntegerValue(java.lang.String columnName)
throws NotFoundException
- Throws:
NotFoundException
toString
public java.lang.String toString()
- Print fields and values
- Overrides:
toString
in class java.lang.Object