|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.ornl.csed.csiir.idr.kdd.dataservice.server.models.ResultSetResponse.ResultRecord
public static class ResultSetResponse.ResultRecord
The ResultRecord class represents the fields of a single record. It is iterable for each result field.
Nested Class Summary | |
---|---|
static class |
ResultSetResponse.ResultRecord.ResultField
The ResultField class represents a field value. |
Method Summary | |
---|---|
java.util.Date |
getDate(int fieldIndex)
Retrieve a Java Date representation for a field value given the supplied field index. |
java.util.Date |
getDate(java.lang.String fieldName)
Retrieve a Java Date representation for a field value given the supplied field name. |
java.lang.Double |
getDouble(int fieldIndex)
Retrieve a Java Double representation for a field value given the supplied field index. |
java.lang.Double |
getDouble(java.lang.String fieldName)
Retrieve a Java Double representation for a field value given the supplied field name. |
java.lang.String |
getFieldName(int fieldIndex)
Retrieve the field name for a supplied field index. |
java.lang.String |
getFieldType(int fieldIndex)
Retrieve the field type for a supplied field index. |
java.lang.String |
getFieldType(java.lang.String fieldName)
Retrieve the field type for a supplied field name. |
java.lang.Float |
getFloat(int fieldIndex)
Retrieve a Java Float representation for a field value given the supplied field index. |
java.lang.Float |
getFloat(java.lang.String fieldName)
Retrieve a Java Float representation for a field value given the supplied field name. |
java.lang.Integer |
getInteger(int fieldIndex)
Retrieve a Java Integer representation for a field value given the supplied field index. |
java.lang.Integer |
getInteger(java.lang.String fieldName)
Retrieve a Java Integer representation for a field value given the supplied field name. |
java.util.List<?> |
getList(int fieldIndex)
Retrieve a Java List representation for a field value given the supplied field index. |
java.util.List<?> |
getList(java.lang.String fieldName)
Retrieve a Java List representation for a field value given the supplied field name. |
java.lang.Long |
getLong(int fieldIndex)
Retrieve a Java Long representation for a field value given the supplied field index. |
java.lang.Long |
getLong(java.lang.String fieldName)
Retrieve a Java Long representation for a field value given the supplied field name. |
java.lang.Object |
getObject(int fieldIndex)
Retrieve a Java Object representation for a field value given the supplied field index. |
java.lang.Object |
getObject(java.lang.String fieldName)
Retrieve a Java Object representation for a field value given the supplied field name. |
java.lang.String |
getString(int fieldIndex)
Retrieve a Java String representation for a field value given the supplied field index. |
java.lang.String |
getString(java.lang.String fieldName)
Retrieve a Java String representation for a field value given the supplied field name. |
java.util.Iterator<ResultSetResponse.ResultRecord.ResultField> |
iterator()
Retrieve an iterator over the field values. |
ResultSetResponse.ListSet |
listSet(int... fieldIndexes)
Retrieves a ListSet for a supplied list of field indexes which must all represent fields of type List. |
ResultSetResponse.ListSet |
listSet(java.lang.String... fieldNames)
Retrieves a ListSet for a supplied list of field names which must all represent fields of type List. |
int |
size()
Retrieve the number of fields in this record. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getFieldName(int fieldIndex) throws java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.IndexOutOfBoundsException
public java.lang.String getFieldType(int fieldIndex) throws java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.IndexOutOfBoundsException
public java.lang.String getFieldType(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
public java.lang.Object getObject(int fieldIndex) throws java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.IndexOutOfBoundsException
public java.lang.Object getObject(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
public java.lang.String getString(int fieldIndex) throws java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.IndexOutOfBoundsException
public java.lang.String getString(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
public java.lang.Integer getInteger(int fieldIndex) throws java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.lang.Integer getInteger(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.lang.Long getLong(int fieldIndex) throws java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.lang.Long getLong(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.lang.Float getFloat(int fieldIndex) throws java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.lang.Float getFloat(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.lang.Double getDouble(int fieldIndex) throws java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.lang.Double getDouble(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
public java.util.Date getDate(int fieldIndex) throws java.text.ParseException, java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.text.ParseException
java.lang.IndexOutOfBoundsException
public java.util.Date getDate(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.text.ParseException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.text.ParseException
java.lang.IndexOutOfBoundsException
public java.util.List<?> getList(int fieldIndex) throws java.lang.IndexOutOfBoundsException
fieldIndex
- the field index
java.lang.IndexOutOfBoundsException
public java.util.List<?> getList(java.lang.String fieldName) throws java.lang.IllegalArgumentException, java.lang.IndexOutOfBoundsException
fieldName
- the field name
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
public int size()
public java.util.Iterator<ResultSetResponse.ResultRecord.ResultField> iterator()
iterator
in interface java.lang.Iterable<ResultField>
Iterable.iterator()
public ResultSetResponse.ListSet listSet(int... fieldIndexes) throws java.lang.IllegalArgumentException, java.lang.IndexOutOfBoundsException
fieldIndexes
- the list of field indexes
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
public ResultSetResponse.ListSet listSet(java.lang.String... fieldNames) throws java.lang.IllegalArgumentException, java.lang.IndexOutOfBoundsException
fieldNames
- the list of field names
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |