Uses of Class
com.ultikits.ultitools.entities.WhereCondition
Packages that use WhereCondition
Package
Description
-
Uses of WhereCondition in com.ultikits.ultitools.entities
Methods in com.ultikits.ultitools.entities that return WhereCondition -
Uses of WhereCondition in com.ultikits.ultitools.interfaces
Methods in com.ultikits.ultitools.interfaces with parameters of type WhereConditionModifier and TypeMethodDescriptionvoidDataOperator.del(WhereCondition... whereConditions) Delete data record by conditions.booleanDataOperator.exist(WhereCondition... whereConditions) Check if the data record exists.DataOperator.getAll(WhereCondition... whereConditions) Get all data record by conditions.DataOperator.page(int page, int size, WhereCondition... whereConditions) Get data record by page.default booleanDataOperator.updateIf(T entity, WhereCondition... expected) Conditional update: writesentityover the stored row with the same id only if that row still matches every one ofexpected, and reports whether it did (#543). -
Uses of WhereCondition in com.ultikits.ultitools.interfaces.impl.data
Fields in com.ultikits.ultitools.interfaces.impl.data with type parameters of type WhereConditionMethods in com.ultikits.ultitools.interfaces.impl.data with parameters of type WhereConditionModifier and TypeMethodDescriptionprivate voidAbstractRelationalDataOperator.appendConditions(StringBuilder sql, List<Object> params, WhereCondition[] conditions, boolean skipEmpty) Appends aWHEREclause built fromconditionstosqland their bound values toparams, routing every column throughAbstractRelationalDataOperator.sqlOperatorFor(com.ultikits.ultitools.entities.Comparison, java.lang.String)so the four relational builders cannot diverge in how they honor aComparisonagain.private voidAbstractRelationalDataOperator.appendConditions(StringBuilder sql, List<Object> params, WhereCondition[] conditions, boolean skipEmpty, boolean nullMeansIsNull) AbstractRelationalDataOperator.appendConditions(StringBuilder, List, WhereCondition[], boolean), with the switch onlyAbstractRelationalDataOperator.updateIf(T, com.ultikits.ultitools.entities.WhereCondition...)turns on (#640): withnullMeansIsNulla condition with the defaultComparison.EQUALand anullvalue renders<column> IS NULLand binds nothing for it.voidAbstractRelationalDataOperator.del(WhereCondition... whereConditions) Deletes by predicate, without loading matched rows into entities first.booleanAbstractRelationalDataOperator.exist(WhereCondition... whereConditions) Check if the data record exists.AbstractRelationalDataOperator.getAll(WhereCondition... whereConditions) private ObjectAbstractRelationalDataOperator.likeWrappedValue(WhereCondition condition) Builds the parameter to bind for a condition's value.AbstractRelationalDataOperator.page(int page, int size, WhereCondition... whereConditions) booleanAbstractRelationalDataOperator.updateIf(T entity, WhereCondition... expected) Conditional update: writesentityover the stored row with the same id only if that row still matches every one ofexpected, and reports whether it did (#543). -
Uses of WhereCondition in com.ultikits.ultitools.interfaces.impl.data.json
Methods in com.ultikits.ultitools.interfaces.impl.data.json that return types with arguments of type WhereConditionModifier and TypeMethodDescriptionprivate List<WhereCondition> SimpleJsonDataOperator.evaluableConditions(WhereCondition... expected) The non-empty conditions of anSimpleJsonDataOperator.updateIf(T, com.ultikits.ultitools.entities.WhereCondition...)call, each checked before anything is read: anullcondition, a column the entity does not map with@Column, anullvalue under any comparison other thanComparison.EQUAL(under EQUAL it means "absent or JSON null", #640), and a non-serialisable value are refused with aDataAccessException, as the relational operators refuse them.Methods in com.ultikits.ultitools.interfaces.impl.data.json with parameters of type WhereConditionModifier and TypeMethodDescriptionprivate booleanSimpleJsonDataOperator.conditionCal(String data, String value, WhereCondition condition) voidSimpleJsonDataOperator.del(WhereCondition... whereConditions) Deletes by predicate, without loading matched entries into entities first.private voidSimpleJsonDataOperator.delLocked(JsonTransaction transaction, WhereCondition... whereConditions) SimpleJsonDataOperator.del(WhereCondition...)'s body after the refusal, run holding this table's write lock.private List<WhereCondition> SimpleJsonDataOperator.evaluableConditions(WhereCondition... expected) The non-empty conditions of anSimpleJsonDataOperator.updateIf(T, com.ultikits.ultitools.entities.WhereCondition...)call, each checked before anything is read: anullcondition, a column the entity does not map with@Column, anullvalue under any comparison other thanComparison.EQUAL(under EQUAL it means "absent or JSON null", #640), and a non-serialisable value are refused with aDataAccessException, as the relational operators refuse them.booleanSimpleJsonDataOperator.exist(WhereCondition... whereConditions) SimpleJsonDataOperator.getAll(WhereCondition... whereConditions) FiresonLoad()once per entity actually returned to the caller.SimpleJsonDataOperator.getAllRaw(WhereCondition... whereConditions) private booleanWhether one serialised entry satisfies one condition -- the single matching rule shared bySimpleJsonDataOperator.getAll(WhereCondition...),SimpleJsonDataOperator.del(WhereCondition...)andSimpleJsonDataOperator.updateIf(T, com.ultikits.ultitools.entities.WhereCondition...).SimpleJsonDataOperator.page(int page, int size, WhereCondition... whereConditions) booleanSimpleJsonDataOperator.updateIf(T entity, WhereCondition... expected) Conditional update: writesentityover the stored row with the same id only if that row still matches every one ofexpected, and reports whether it did (#543).Method parameters in com.ultikits.ultitools.interfaces.impl.data.json with type arguments of type WhereConditionModifier and TypeMethodDescriptionprivate booleanSimpleJsonDataOperator.updateIfLocked(T entity, Object id, List<WhereCondition> conditions) SimpleJsonDataOperator.updateIf(T, com.ultikits.ultitools.entities.WhereCondition...)'s check and write, run holding this table's write lock.