use of ru.curs.celesta.dbutils.ViewCursor in project celesta by CourseOrchestra.
the class FieldsLookup method and.
public FieldsLookup and(BasicCursor otherCursor) {
if (BasicTable.class.equals(targetClass)) {
FieldsLookup fieldsLookup = new FieldsLookup((Cursor) cursor, otherCursor, lookupChangeCallback, newLookupCallback);
newLookupCallback.apply(fieldsLookup);
return fieldsLookup;
} else if (View.class.equals(targetClass)) {
FieldsLookup fieldsLookup = new FieldsLookup((ViewCursor) cursor, otherCursor, lookupChangeCallback, newLookupCallback);
newLookupCallback.apply(fieldsLookup);
return fieldsLookup;
} else {
throw new CelestaException("Can't apply %s to %s for FieldsLookup", otherCursor.meta().getClass().getSimpleName(), filtered.getClass().getSimpleName());
}
}
Aggregations