|
|||||||||
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
Field
s. 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(java.lang.String name)
Get a specific field from this field provider. |
|
java.util.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(java.lang.String name)
name
- The field to fetch
Field<?> getField(int index)
index
- The field's index of the field to fetch
java.util.List<Field<?>> getFields()
int getIndex(Field<?> field) throws java.lang.IllegalArgumentException
field
- The field to look for
java.lang.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 |