Enum FilterTarget
- java.lang.Object
-
- java.lang.Enum<FilterTarget>
-
- com.epam.ta.reportportal.commons.querygen.FilterTarget
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FilterTarget>
public enum FilterTarget extends java.lang.Enum<FilterTarget>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVITY_TARGETDASHBOARD_TARGETINTEGRATION_TARGETLAUNCH_TARGETLOG_TARGETPROJECT_INFOPROJECT_TARGETTEST_ITEM_TARGETUSER_FILTER_TARGETUSER_TARGETWIDGET_TARGET
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILTERED_IDstatic java.lang.StringFILTERED_QUERY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddFrom(org.jooq.SelectQuery<? extends org.jooq.Record> query)static FilterTargetfindByClass(java.lang.Class<?> clazz)java.lang.Class<?>getClazz()java.util.Optional<CriteriaHolder>getCriteriaByFilter(java.lang.String filterCriteria)java.util.List<CriteriaHolder>getCriteriaHolders()QuerySuppliergetQuery()protected abstract org.jooq.Field<java.lang.Long>idField()protected abstract voidjoinTables(QuerySupplier query)protected voidjoinTablesForFilter(QuerySupplier query)protected abstract java.util.Collection<? extends org.jooq.SelectField>selectFields()static FilterTargetvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FilterTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.QuerySupplierwrapQuery(org.jooq.SelectQuery<? extends org.jooq.Record> query)QuerySupplierwrapQuery(org.jooq.SelectQuery<? extends org.jooq.Record> query, java.lang.String... excluding)
-
-
-
Enum Constant Detail
-
PROJECT_TARGET
public static final FilterTarget PROJECT_TARGET
-
PROJECT_INFO
public static final FilterTarget PROJECT_INFO
-
USER_TARGET
public static final FilterTarget USER_TARGET
-
LAUNCH_TARGET
public static final FilterTarget LAUNCH_TARGET
-
TEST_ITEM_TARGET
public static final FilterTarget TEST_ITEM_TARGET
-
LOG_TARGET
public static final FilterTarget LOG_TARGET
-
ACTIVITY_TARGET
public static final FilterTarget ACTIVITY_TARGET
-
INTEGRATION_TARGET
public static final FilterTarget INTEGRATION_TARGET
-
DASHBOARD_TARGET
public static final FilterTarget DASHBOARD_TARGET
-
WIDGET_TARGET
public static final FilterTarget WIDGET_TARGET
-
USER_FILTER_TARGET
public static final FilterTarget USER_FILTER_TARGET
-
-
Field Detail
-
FILTERED_QUERY
public static final java.lang.String FILTERED_QUERY
- See Also:
- Constant Field Values
-
FILTERED_ID
public static final java.lang.String FILTERED_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static FilterTarget[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FilterTarget c : FilterTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FilterTarget valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getQuery
public QuerySupplier getQuery()
-
selectFields
protected abstract java.util.Collection<? extends org.jooq.SelectField> selectFields()
-
addFrom
protected abstract void addFrom(org.jooq.SelectQuery<? extends org.jooq.Record> query)
-
joinTables
protected abstract void joinTables(QuerySupplier query)
-
joinTablesForFilter
protected void joinTablesForFilter(QuerySupplier query)
-
idField
protected abstract org.jooq.Field<java.lang.Long> idField()
-
wrapQuery
public QuerySupplier wrapQuery(org.jooq.SelectQuery<? extends org.jooq.Record> query)
-
wrapQuery
public QuerySupplier wrapQuery(org.jooq.SelectQuery<? extends org.jooq.Record> query, java.lang.String... excluding)
-
getClazz
public java.lang.Class<?> getClazz()
-
getCriteriaHolders
public java.util.List<CriteriaHolder> getCriteriaHolders()
-
getCriteriaByFilter
public java.util.Optional<CriteriaHolder> getCriteriaByFilter(java.lang.String filterCriteria)
-
findByClass
public static FilterTarget findByClass(java.lang.Class<?> clazz)
-
-