Class FieldsLookup
- java.lang.Object
-
- ru.curs.celesta.dbutils.filter.value.FieldsLookup
-
public final class FieldsLookup extends Object
Created by ioann on 01.06.2017.
-
-
Constructor Summary
Constructors Constructor Description FieldsLookup(Cursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
FieldsLookup(ViewCursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
FieldsLookup(BasicTable table, BasicTable otherTable, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
This constructor is for tests and must be removed in future.FieldsLookup(View view, View otherView, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
This constructor is for tests and must be removed in future.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FieldsLookup
add(String field, String otherField)
Deprecated.<T> FieldsLookup
add(ColumnMeta<T> column, ColumnMeta<T> otherColumn)
Adds columns binding for target and auxiliary cursors.FieldsLookup
and(BasicCursor otherCursor)
FieldsLookup
and(BasicTable filtering)
FieldsLookup
and(View filtering)
List<String>
getFields()
DataGrainElement
getFiltered()
DataGrainElement
getFiltering()
BasicCursor
getOtherCursor()
List<String>
getOtherFields()
void
validate()
-
-
-
Constructor Detail
-
FieldsLookup
public FieldsLookup(Cursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
-
FieldsLookup
public FieldsLookup(ViewCursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
-
FieldsLookup
public FieldsLookup(BasicTable table, BasicTable otherTable, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
This constructor is for tests and must be removed in future.- Parameters:
table
-otherTable
-lookupChangeCallback
-newLookupCallback
-
-
-
Method Detail
-
and
public FieldsLookup and(BasicCursor otherCursor)
-
and
public FieldsLookup and(BasicTable filtering)
-
and
public FieldsLookup and(View filtering)
-
add
@Deprecated public FieldsLookup add(String field, String otherField)
Deprecated.Adds fields binding for target and auxiliary cursors.- Parameters:
field
- filed of the target cursor.otherField
- field of the auxiliary cursor.- Returns:
-
add
public <T> FieldsLookup add(ColumnMeta<T> column, ColumnMeta<T> otherColumn)
Adds columns binding for target and auxiliary cursors.- Type Parameters:
T
- type of the column. Only columns of the same type can be bound in one filter.- Parameters:
column
- column of the target cursor.otherColumn
- column of the auxiliary cursor.- Returns:
-
validate
public void validate()
-
getFiltered
public DataGrainElement getFiltered()
-
getFiltering
public DataGrainElement getFiltering()
-
getOtherCursor
public BasicCursor getOtherCursor()
-
-