public class TdbTuple
extends java.lang.Object
TdbTupleList
Modifier and Type | Method and Description |
---|---|
void |
clear()
Blanks out all the TRIP subfield values represented by this tuple.
|
TdbTupleList |
getTupleList()
A reference to the associated TdbTupleList object that contains the tuple.
|
java.lang.String |
getValue(int fieldIndex)
Get the value of a field within the tuple.
|
java.lang.String |
getValue(java.lang.String fieldName)
Get the value of a field within the tuple.
|
void |
remove()
Removes the tuple associated with this TdbTuple instance.
|
void |
setValue(int fieldIndex,
java.lang.String val)
Set the value of a field within the tuple.
|
void |
setValue(java.lang.String fieldName,
java.lang.String val)
Set the value of a field within the tuple.
|
public TdbTupleList getTupleList()
public void clear() throws TdbException
This method does not remove the tuple itself, all values are merely cleared. To remove the typle use the remove method on the TdbTuple or the TdbTupleList class.
TdbException
TdbTuple.remove()
,
TdbTupleList.remove(int)
public void remove() throws TdbException
TdbException
public java.lang.String getValue(int fieldIndex) throws TdbException
fieldIndex
- Zero-based index of field.TdbException
- If the index is outside the valid range, or if the tuple that this TdbTuple object represents has been removed from the tuple list.public java.lang.String getValue(java.lang.String fieldName) throws TdbException
fieldName
- Name of field.TdbException
- If the index is outside the valid range, or if the tuple that this TdbTuple object represents has been removed from the tuple list.public void setValue(int fieldIndex, java.lang.String val) throws TdbException
fieldIndex
- Zero-based index of field.val
- Value to assign to the specified field in this tuple.TdbException
- If the index is outside the valid range, or if the tuple that this TdbTuple object represents has been removed from the tuple list.public void setValue(java.lang.String fieldName, java.lang.String val) throws TdbException
fieldName
- Name of field.val
- Value to assign to the specified field in this tuple.TdbException
- If the tuple has been removed from the list, or when the specified field is unknown.