public interface FieldProvider
QueryPart
) that holds a list of
Field
s. Especially the getField(Field)
method is
interesting, as it may return an aliased version of the given fieldModifier and Type | Method and Description |
---|---|
<T> Field<T> |
getField(Field<T> field)
Get a specific field from this field provider.
|
Field<?> |
getField(int index)
Get a specific field from this field provider.
|
Field<?> |
getField(String name)
Get a specific field from this field provider.
|
List<Field<?>> |
getFields() |
int |
getIndex(Field<?> field)
Get a fields index from this field provider
|
<T> Field<T> getField(Field<T> field)
Usually, this will return the field itself. However, if this is an aliased table, the field will be aliased accordingly.
T
- The generic field typefield
- The field to fetchField<?> getField(String name)
name
- The field to fetchField<?> getField(int index)
index
- The field's index of the field to fetchint getIndex(Field<?> field) throws IllegalArgumentException
field
- The field to look forIllegalArgumentException
- if the field is not contained in this
provider.Copyright © 2013. All Rights Reserved.