Class QuestionnaireRepository.Updater
- Enclosing class:
- QuestionnaireRepository
Given the criteria updater describes how to perform
update operations on sets of documents.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.immutables.mongo.repository.internal.Constraints.Constraintprotected org.immutables.mongo.repository.internal.Constraints.ConstraintHostprotected org.immutables.mongo.repository.internal.Constraints.Constraintprotected org.immutables.mongo.repository.internal.Constraints.Constraintprotected org.immutables.mongo.repository.internal.Constraints.Constraintprotected final org.immutables.mongo.repository.Repositories.Repository<Questionnaire>protected org.immutables.mongo.repository.internal.Constraints.Constraintprotected org.immutables.mongo.repository.internal.Constraints.Constraintprotected org.immutables.mongo.repository.internal.Constraints.Constraint -
Method Summary
Modifier and TypeMethodDescriptionaddAllAnswers(Iterable<? extends Answer> values) Add all of the given values to theanswerslist attribute.addAllContext(Iterable<? extends ContextValue> values) Add all of the given values to thecontextlist attribute.addAllErrors(Iterable<? extends Error> values) Add all of the given values to theerrorslist attribute.addAllValueSets(Iterable<? extends ValueSet> values) Add all of the given values to thevalueSetslist attribute.addAllVariableValues(Iterable<? extends VariableValue> values) Add all of the given values to thevariableValueslist attribute.addAnswers(Answer value) Add a value to theanswerslist attribute.addContext(ContextValue value) Add a value to thecontextlist attribute.Add a value to theerrorslist attribute.addValueSets(ValueSet value) Add a value to thevalueSetslist attribute.addVariableValues(VariableValue value) Add a value to thevariableValueslist attribute.Clear theanswerslist attribute.Clear thecontextlist attribute.Clear theerrorslist attribute.Clear thevalueSetslist attribute.Clear thevariableValueslist attribute.protected org.immutables.mongo.repository.internal.Constraints.Constraintprotected org.immutables.mongo.repository.internal.Constraints.ConstraintinitActiveItem(String value) Specify an initial value for theactiveItemattribute.Specify an initial value for theidattribute.Specify an initial value for themetadataattribute.Specify an initial value for therevattribute.removeAnswers(Answer value) Remove a value from theanswerslist attribute.removeContext(ContextValue value) Remove a value from thecontextlist attribute.removeErrors(Error value) Remove a value from theerrorslist attribute.removeValueSets(ValueSet value) Remove a value from thevalueSetslist attribute.Remove a value from thevariableValueslist attribute.setActiveItem(String value) Specify a new value for theactiveItemattribute.setAnswers(Iterable<? extends Answer> values) Override all values ofanswerslist attribute.setContext(Iterable<? extends ContextValue> values) Override all values ofcontextlist attribute.Override all values oferrorslist attribute.Specify a new value for theidattribute.Specify a new value for themetadataattribute.Specify a new value for therevattribute.setValueSets(Iterable<? extends ValueSet> values) Override all values ofvalueSetslist attribute.setVariableValues(Iterable<? extends VariableValue> values) Override all values ofvariableValueslist attribute.Methods inherited from class org.immutables.mongo.repository.Repositories.Updater
updateAll, updateFirst, upsert
-
Field Details
-
criteria
@Nullable protected org.immutables.mongo.repository.internal.Constraints.ConstraintHost criteria -
setFields
protected org.immutables.mongo.repository.internal.Constraints.Constraint setFields -
setOnInsertFields
protected org.immutables.mongo.repository.internal.Constraints.Constraint setOnInsertFields -
incrementFields
protected org.immutables.mongo.repository.internal.Constraints.Constraint incrementFields -
addToSetFields
protected org.immutables.mongo.repository.internal.Constraints.Constraint addToSetFields -
pushFields
protected org.immutables.mongo.repository.internal.Constraints.Constraint pushFields -
pullFields
protected org.immutables.mongo.repository.internal.Constraints.Constraint pullFields -
unsetFields
protected org.immutables.mongo.repository.internal.Constraints.Constraint unsetFields -
repository
-
-
Method Details
-
setId
Specify a new value for theidattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for theidattribute- Returns:
thisupdater to be used to complete the update operation
-
initId
Specify an initial value for theidattribute. The value will be used if the document is to be inserted. If one or more documents are found for an update, this value will not be used.Corresponds to the MongoDB
$setOnInsertoperator.- Parameters:
value- Theidvalue for an insert.- Returns:
thisupdater to be used to complete the update operation
-
setRev
Specify a new value for therevattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for therevattribute- Returns:
thisupdater to be used to complete the update operation
-
initRev
Specify an initial value for therevattribute. The value will be used if the document is to be inserted. If one or more documents are found for an update, this value will not be used.Corresponds to the MongoDB
$setOnInsertoperator.- Parameters:
value- Therevvalue for an insert.- Returns:
thisupdater to be used to complete the update operation
-
clearAnswers
Clear theanswerslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeAnswers
Remove a value from theanswerslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thisupdater to be used to complete the update operation
-
addAnswers
Add a value to theanswerslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thisupdater to be used to complete the update operation
-
setAnswers
Override all values ofanswerslist attribute.Corresponds to the MongoDB
$setoperator on the array field.- Parameters:
values- The values to set- Returns:
thisupdater to be used to complete the update operation
-
addAllAnswers
Add all of the given values to theanswerslist attribute.Corresponds to the MongoDB
$pushoperator with the$eachmodifier.- Parameters:
values- The values to add- Returns:
thisupdater to be used to complete the update operation
-
clearContext
Clear thecontextlist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeContext
Remove a value from thecontextlist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thisupdater to be used to complete the update operation
-
addContext
Add a value to thecontextlist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thisupdater to be used to complete the update operation
-
setContext
Override all values ofcontextlist attribute.Corresponds to the MongoDB
$setoperator on the array field.- Parameters:
values- The values to set- Returns:
thisupdater to be used to complete the update operation
-
addAllContext
Add all of the given values to thecontextlist attribute.Corresponds to the MongoDB
$pushoperator with the$eachmodifier.- Parameters:
values- The values to add- Returns:
thisupdater to be used to complete the update operation
-
setActiveItem
Specify a new value for theactiveItemattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for theactiveItemattribute- Returns:
thisupdater to be used to complete the update operation
-
initActiveItem
Specify an initial value for theactiveItemattribute. The value will be used if the document is to be inserted. If one or more documents are found for an update, this value will not be used.Corresponds to the MongoDB
$setOnInsertoperator.- Parameters:
value- TheactiveItemvalue for an insert.- Returns:
thisupdater to be used to complete the update operation
-
clearErrors
Clear theerrorslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeErrors
Remove a value from theerrorslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thisupdater to be used to complete the update operation
-
addErrors
Add a value to theerrorslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thisupdater to be used to complete the update operation
-
setErrors
Override all values oferrorslist attribute.Corresponds to the MongoDB
$setoperator on the array field.- Parameters:
values- The values to set- Returns:
thisupdater to be used to complete the update operation
-
addAllErrors
Add all of the given values to theerrorslist attribute.Corresponds to the MongoDB
$pushoperator with the$eachmodifier.- Parameters:
values- The values to add- Returns:
thisupdater to be used to complete the update operation
-
clearVariableValues
Clear thevariableValueslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeVariableValues
Remove a value from thevariableValueslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thisupdater to be used to complete the update operation
-
addVariableValues
Add a value to thevariableValueslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thisupdater to be used to complete the update operation
-
setVariableValues
Override all values ofvariableValueslist attribute.Corresponds to the MongoDB
$setoperator on the array field.- Parameters:
values- The values to set- Returns:
thisupdater to be used to complete the update operation
-
addAllVariableValues
public QuestionnaireRepository.Updater addAllVariableValues(Iterable<? extends VariableValue> values) Add all of the given values to thevariableValueslist attribute.Corresponds to the MongoDB
$pushoperator with the$eachmodifier.- Parameters:
values- The values to add- Returns:
thisupdater to be used to complete the update operation
-
clearValueSets
Clear thevalueSetslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeValueSets
Remove a value from thevalueSetslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thisupdater to be used to complete the update operation
-
addValueSets
Add a value to thevalueSetslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thisupdater to be used to complete the update operation
-
setValueSets
Override all values ofvalueSetslist attribute.Corresponds to the MongoDB
$setoperator on the array field.- Parameters:
values- The values to set- Returns:
thisupdater to be used to complete the update operation
-
addAllValueSets
Add all of the given values to thevalueSetslist attribute.Corresponds to the MongoDB
$pushoperator with the$eachmodifier.- Parameters:
values- The values to add- Returns:
thisupdater to be used to complete the update operation
-
setMetadata
Specify a new value for themetadataattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for themetadataattribute- Returns:
thisupdater to be used to complete the update operation
-
initMetadata
Specify an initial value for themetadataattribute. The value will be used if the document is to be inserted. If one or more documents are found for an update, this value will not be used.Corresponds to the MongoDB
$setOnInsertoperator.- Parameters:
value- Themetadatavalue for an insert.- Returns:
thisupdater to be used to complete the update operation
-
collectRequiredUpdate
protected org.immutables.mongo.repository.internal.Constraints.Constraint collectRequiredUpdate() -
collectUpdate
protected org.immutables.mongo.repository.internal.Constraints.Constraint collectUpdate()
-