Class CounterChecks
java.lang.Object
ch.tocco.nice2.model.entity.api.schema.AbstractDispatcher
ch.tocco.nice2.model.entity.api.schema.DispatchingSchemaCheck
ch.tocco.nice2.model.entity.impl.schema.checks.CounterChecks
- All Implemented Interfaces:
SchemaCheck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionChecks values in the `nice_counter` table.Checks the values of the counter against the values of the corresponding entity.Methods inherited from class ch.tocco.nice2.model.entity.api.schema.DispatchingSchemaCheck
allowedReturnTypes, check
Methods inherited from class ch.tocco.nice2.model.entity.api.schema.AbstractDispatcher
consider, dispatch, getDispatchClass
-
Constructor Details
-
CounterChecks
public CounterChecks()
-
-
Method Details
-
checkCounterRows
Checks values in the `nice_counter` table. Every field with type `counter` may have a value in this table. The following conditions must hold: - entity does not depend on bu: 1 or 0 rows per entity:field, bu must be null - entity depends on bu: 1 or 0 rows per entity:field:bu where bu must never be null -
checkCounterValues
Checks the values of the counter against the values of the corresponding entity. - counter.counter field must be equal or higher than corresponding value in entity.field
-