Package com.tietoenator.trip.jxp.data
Class TdbTuple
java.lang.Object
com.tietoenator.trip.jxp.data.TdbTuple
Represents rows in the table of fields in a record that the TdbTupleList
class is an representation of.
- Since:
- TRIPjxp 1.3-0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Blanks out all the TRIP subfield values represented by this tuple.A reference to the associated TdbTupleList object that contains the tuple.getValue
(int fieldIndex) Get the value of a field within the tuple.Get the value of a field within the tuple.void
remove()
Removes the tuple associated with this TdbTuple instance.void
Set the value of a field within the tuple.void
Set the value of a field within the tuple.
-
Method Details
-
getTupleList
A reference to the associated TdbTupleList object that contains the tuple.- Returns:
- TdbTupleList reference
-
clear
Blanks out all the TRIP subfield values represented by this tuple.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.
- Throws:
TdbException
- See Also:
-
remove
Removes the tuple associated with this TdbTuple instance.- Throws:
TdbException
-
getValue
Get the value of a field within the tuple.- Parameters:
fieldIndex
- Zero-based index of field.- Returns:
- Value of the specified field for this tuple.
- Throws:
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.
-
getValue
Get the value of a field within the tuple.- Parameters:
fieldName
- Name of field.- Returns:
- Value of the specified field for this tuple.
- Throws:
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.
-
setValue
Set the value of a field within the tuple.- Parameters:
fieldIndex
- Zero-based index of field.val
- Value to assign to the specified field in this tuple.- Throws:
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.
-
setValue
Set the value of a field within the tuple.- Parameters:
fieldName
- Name of field.val
- Value to assign to the specified field in this tuple.- Throws:
TdbException
- If the tuple has been removed from the list, or when the specified field is unknown.
-