| Modifier and Type | Method and Description |
|---|---|
DataType<?> |
dataType(int fieldIndex)
Get the data type for a given field index.
|
DataType<?> |
dataType(String fieldName)
Get the data type for a given field name.
|
DataType<?>[] |
dataTypes()
Get an array of data types for this record type.
|
<T> Field<T> |
field(Field<T> field)
Get a specific field from this record type.
|
Field<?> |
field(int fieldIndex)
Get a specific field from this record type.
|
<T> Field<T> |
field(int fieldIndex,
Class<T> type)
Get a specific field from this record type coerced to
type. |
<T> Field<T> |
field(int fieldIndex,
DataType<T> dataType)
Get a specific field from this record type coerced to
dataType. |
Field<?> |
field(String fieldName)
Get a specific field from this record type.
|
<T> Field<T> |
field(String fieldName,
Class<T> type)
Get a specific field from this record type coerced to
type. |
<T> Field<T> |
field(String fieldName,
DataType<T> dataType)
Get a specific field from this record type coerced to
dataType. |
Field<?>[] |
fields()
Get all fields from this record type.
|
Field<?>[] |
fields(Field<?>... fields)
Get all fields from this record type, providing some fields.
|
Field<?>[] |
fields(int... fieldIndexes)
Get all fields from this record type, providing some field indexes.
|
Field<?>[] |
fields(String... fieldNames)
Get all fields from this record type, providing some field names.
|
int |
indexOf(Field<?> field)
Get a field's index from this record type.
|
int |
indexOf(String fieldName)
Get a field's index from this record type.
|
int |
size()
Get the degree of this record type.
|
Class<?> |
type(int fieldIndex)
Get the type for a given field index.
|
Class<?> |
type(String fieldName)
Get the type for a given field name.
|
Class<?>[] |
types()
Get an array of types for this record type.
|
int size()
<T> Field<T> field(Field<T> field)
Usually, this will return the field itself. However, if this is a row type from an aliased table, the field will be aliased accordingly.
T - The generic field typefield - The field to fetchField<?> field(String fieldName)
fieldName - The field to fetch<T> Field<T> field(String fieldName, Class<T> type)
type.fieldName - The field to fetchtype - The type to coerce the resulting field to<T> Field<T> field(String fieldName, DataType<T> dataType)
dataType.fieldName - The field to fetchdataType - The data type to coerce the resulting field toField<?> field(int fieldIndex)
fieldIndex - The field's index of the field to fetch<T> Field<T> field(int fieldIndex, Class<T> type)
type.fieldIndex - The field's index of the field to fetchtype - The type to coerce the resulting field to<T> Field<T> field(int fieldIndex, DataType<T> dataType)
dataType.fieldIndex - The field's index of the field to fetchdataType - The data type to coerce the resulting field toField<?>[] fields()
Field<?>[] fields(Field<?>... fields)
field(Field)Field<?>[] fields(String... fieldNames)
field(String)Field<?>[] fields(int... fieldIndexes)
field(int)int indexOf(Field<?> field)
field - The field to look for-1 if the field is not
contained in this Rowint indexOf(String fieldName)
fieldName - The field name to look for-1 if the field is not
contained in this RowClass<?>[] types()
Entries in the resulting array correspond to Field.getType() for
the corresponding Field in fields()
Class<?> type(int fieldIndex)
fieldIndex - The field's index of the field's type to fetchClass<?> type(String fieldName)
fieldName - The field's name of the field's type to fetchDataType<?>[] dataTypes()
Entries in the resulting array correspond to Field.getDataType()
for the corresponding Field in fields()
DataType<?> dataType(int fieldIndex)
fieldIndex - The field's index of the field's data type to fetchCopyright © 2015. All Rights Reserved.