|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FieldProvider
An object (not necessarily a QueryPart) that holds a list of
Fields. Especially the getField(Field) method is
interesting, as it may return an aliased version of the given field
| Method Summary | ||
|---|---|---|
|
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 |
|
| Method Detail |
|---|
<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 fetch
Field<?> getField(String name)
name - The field to fetch
Field<?> getField(int index)
index - The field's index of the field to fetch
List<Field<?>> getFields()
int getIndex(Field<?> field)
throws IllegalArgumentException
field - The field to look for
IllegalArgumentException - if the field is not contained in this
provider.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||