Class JooqQueryUtils
java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.util.JooqQueryUtils
- Author:
- latypov
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends org.jooq.Record>
org.jooq.SelectOrderByStep<T>applyCondition
(org.jooq.SelectConditionStep<T> selectConditionStep, org.jooq.Condition condition) Applies condition according to passed select condition step.static <T extends org.jooq.Record>
org.jooq.SelectOrderByStep<T>applyCondition
(org.jooq.SelectWhereStep<T> selectWhereStep, org.jooq.Condition condition) Applies condition according to passed select where step.static <T extends org.jooq.Record>
org.jooq.SelectForUpdateStep<T>applyLimits
(org.jooq.SelectLimitStep<T> selectLimitStep, Integer offset, Integer limit) Applies limits and offset according to passed select limit step.static <T extends org.jooq.Record>
org.jooq.SelectForUpdateStep<T>applyLoadOptions
(org.jooq.SelectConditionStep<T> selectConditionStep, LoadOptions loadOptions) Applies load options according to passed select condition step.static <T extends org.jooq.Record>
org.jooq.SelectForUpdateStep<T>applyLoadOptions
(org.jooq.SelectWhereStep<T> selectWhereStep, LoadOptions loadOptions) Applies load options according to passed select where step.static <T extends org.jooq.Record>
org.jooq.SelectForUpdateStep<T>applyNonPageableLoadOptions
(org.jooq.SelectConditionStep<T> selectConditionStep, NonPageableLoadOptions loadOptions) Applies load options without limit and offset according to passed select condition step.static <T extends org.jooq.Record>
org.jooq.SelectForUpdateStep<T>applyNonPageableLoadOptions
(org.jooq.SelectWhereStep<T> selectWhereStep, NonPageableLoadOptions loadOptions) Applies load options without limit and offset according to passed select where step.
-
Method Details
-
applyLoadOptions
public static <T extends org.jooq.Record> org.jooq.SelectForUpdateStep<T> applyLoadOptions(org.jooq.SelectConditionStep<T> selectConditionStep, LoadOptions loadOptions) Applies load options according to passed select condition step.- Type Parameters:
T
- describes type parameter.- Parameters:
selectConditionStep
- indicates select condition properties.loadOptions
- indicates set of options. Instance ofLoadOptions
type.- Returns:
- select for update step.
-
applyNonPageableLoadOptions
public static <T extends org.jooq.Record> org.jooq.SelectForUpdateStep<T> applyNonPageableLoadOptions(org.jooq.SelectConditionStep<T> selectConditionStep, NonPageableLoadOptions loadOptions) Applies load options without limit and offset according to passed select condition step.- Type Parameters:
T
- describes type parameter.- Parameters:
selectConditionStep
- indicates select condition properties.loadOptions
- indicates set of options. Instance ofNonPageableLoadOptions
type.- Returns:
- select for update step.
-
applyLoadOptions
public static <T extends org.jooq.Record> org.jooq.SelectForUpdateStep<T> applyLoadOptions(org.jooq.SelectWhereStep<T> selectWhereStep, LoadOptions loadOptions) Applies load options according to passed select where step.- Type Parameters:
T
- describes type parameter.- Parameters:
selectWhereStep
- indicates select where step properties. Instance ofSelectWhereStep
type.loadOptions
- indicates set of options. Instance ofLoadOptions
type.- Returns:
- select for update step.
-
applyNonPageableLoadOptions
public static <T extends org.jooq.Record> org.jooq.SelectForUpdateStep<T> applyNonPageableLoadOptions(org.jooq.SelectWhereStep<T> selectWhereStep, NonPageableLoadOptions loadOptions) Applies load options without limit and offset according to passed select where step.- Type Parameters:
T
- describes type parameter.- Parameters:
selectWhereStep
- indicates select where step properties. Instance ofSelectWhereStep
type.loadOptions
- indicates set of options. Instance ofNonPageableLoadOptions
type.- Returns:
- select for update step.
-
applyCondition
protected static <T extends org.jooq.Record> org.jooq.SelectOrderByStep<T> applyCondition(org.jooq.SelectConditionStep<T> selectConditionStep, org.jooq.Condition condition) Applies condition according to passed select condition step.- Type Parameters:
T
- describes type parameter.- Parameters:
selectConditionStep
- indicates select condition properties.condition
- indicates passed condition properties. Instance ofCondition
type.- Returns:
- select order by step.
-
applyCondition
public static <T extends org.jooq.Record> org.jooq.SelectOrderByStep<T> applyCondition(org.jooq.SelectWhereStep<T> selectWhereStep, org.jooq.Condition condition) Applies condition according to passed select where step.- Type Parameters:
T
- describes type parameter.- Parameters:
selectWhereStep
- indicates select where properties.condition
- indicates passed condition properties. Instance ofCondition
type.- Returns:
- select order by step.
-
applyLimits
public static <T extends org.jooq.Record> org.jooq.SelectForUpdateStep<T> applyLimits(org.jooq.SelectLimitStep<T> selectLimitStep, Integer offset, Integer limit) Applies limits and offset according to passed select limit step.- Type Parameters:
T
- describes type parameter.- Parameters:
selectLimitStep
- indicates select limit properties.offset
- num that indicates the quantity of omitted values. Instance ofInteger
type.limit
- num that indicates the limit of received requested values. Instance ofInteger
type.- Returns:
- select for update step.
-