Class QuestionnaireRepository.Updater
- java.lang.Object
-
- org.immutables.mongo.repository.Repositories.Updater<Questionnaire>
-
- io.dialob.api.questionnaire.QuestionnaireRepository.Updater
-
- Enclosing class:
- QuestionnaireRepository
@NotThreadSafe public static final class QuestionnaireRepository.Updater extends org.immutables.mongo.repository.Repositories.Updater<Questionnaire>
Giventhe criteria updater describes how to perform update operations on sets of documents.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.immutables.mongo.repository.internal.Constraints.ConstraintaddToSetFieldsprotected org.immutables.mongo.repository.internal.Constraints.ConstraintHostcriteriaprotected org.immutables.mongo.repository.internal.Constraints.ConstraintincrementFieldsprotected org.immutables.mongo.repository.internal.Constraints.ConstraintpullFieldsprotected org.immutables.mongo.repository.internal.Constraints.ConstraintpushFieldsprotected org.immutables.mongo.repository.Repositories.Repository<T>repositoryprotected org.immutables.mongo.repository.internal.Constraints.ConstraintsetFieldsprotected org.immutables.mongo.repository.internal.Constraints.ConstraintsetOnInsertFieldsprotected org.immutables.mongo.repository.internal.Constraints.ConstraintunsetFields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuestionnaireRepository.UpdateraddAllAnswers(Iterable<? extends Answer> values)Add all of the given values to theanswerslist attribute.QuestionnaireRepository.UpdateraddAllContext(Iterable<? extends ContextValue> values)Add all of the given values to thecontextlist attribute.QuestionnaireRepository.UpdateraddAllErrors(Iterable<? extends Error> values)Add all of the given values to theerrorslist attribute.QuestionnaireRepository.UpdateraddAllValueSets(Iterable<? extends ValueSet> values)Add all of the given values to thevalueSetslist attribute.QuestionnaireRepository.UpdateraddAllVariableValues(Iterable<? extends VariableValue> values)Add all of the given values to thevariableValueslist attribute.QuestionnaireRepository.UpdateraddAnswers(Answer value)Add a value to theanswerslist attribute.QuestionnaireRepository.UpdateraddContext(ContextValue value)Add a value to thecontextlist attribute.QuestionnaireRepository.UpdateraddErrors(Error value)Add a value to theerrorslist attribute.QuestionnaireRepository.UpdateraddValueSets(ValueSet value)Add a value to thevalueSetslist attribute.QuestionnaireRepository.UpdateraddVariableValues(VariableValue value)Add a value to thevariableValueslist attribute.QuestionnaireRepository.UpdaterclearAnswers()Clear theanswerslist attribute.QuestionnaireRepository.UpdaterclearContext()Clear thecontextlist attribute.QuestionnaireRepository.UpdaterclearErrors()Clear theerrorslist attribute.QuestionnaireRepository.UpdaterclearValueSets()Clear thevalueSetslist attribute.QuestionnaireRepository.UpdaterclearVariableValues()Clear thevariableValueslist attribute.protected org.immutables.mongo.repository.internal.Constraints.ConstraintcollectRequiredUpdate()protected org.immutables.mongo.repository.internal.Constraints.ConstraintcollectUpdate()QuestionnaireRepository.UpdaterinitActiveItem(String value)Specify an initial value for theactiveItemattribute.QuestionnaireRepository.UpdaterinitId(String value)Specify an initial value for theidattribute.QuestionnaireRepository.UpdaterinitMetadata(Questionnaire.Metadata value)Specify an initial value for themetadataattribute.QuestionnaireRepository.UpdaterinitRev(String value)Specify an initial value for therevattribute.QuestionnaireRepository.UpdaterremoveAnswers(Answer value)Remove a value from theanswerslist attribute.QuestionnaireRepository.UpdaterremoveContext(ContextValue value)Remove a value from thecontextlist attribute.QuestionnaireRepository.UpdaterremoveErrors(Error value)Remove a value from theerrorslist attribute.QuestionnaireRepository.UpdaterremoveValueSets(ValueSet value)Remove a value from thevalueSetslist attribute.QuestionnaireRepository.UpdaterremoveVariableValues(VariableValue value)Remove a value from thevariableValueslist attribute.QuestionnaireRepository.UpdatersetActiveItem(String value)Specify a new value for theactiveItemattribute.QuestionnaireRepository.UpdatersetAnswers(Iterable<? extends Answer> values)Override all values ofanswerslist attribute.QuestionnaireRepository.UpdatersetContext(Iterable<? extends ContextValue> values)Override all values ofcontextlist attribute.QuestionnaireRepository.UpdatersetErrors(Iterable<? extends Error> values)Override all values oferrorslist attribute.QuestionnaireRepository.UpdatersetId(String value)Specify a new value for theidattribute.QuestionnaireRepository.UpdatersetMetadata(Questionnaire.Metadata value)Specify a new value for themetadataattribute.QuestionnaireRepository.UpdatersetRev(String value)Specify a new value for therevattribute.QuestionnaireRepository.UpdatersetValueSets(Iterable<? extends ValueSet> values)Override all values ofvalueSetslist attribute.QuestionnaireRepository.UpdatersetVariableValues(Iterable<? extends VariableValue> values)Override all values ofvariableValueslist attribute.
-
-
-
Field Detail
-
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
protected final org.immutables.mongo.repository.Repositories.Repository<T extends Object> repository
-
-
Method Detail
-
setId
public QuestionnaireRepository.Updater setId(String value)
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
public QuestionnaireRepository.Updater initId(String value)
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
public QuestionnaireRepository.Updater setRev(String value)
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
public QuestionnaireRepository.Updater initRev(String value)
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
public QuestionnaireRepository.Updater clearAnswers()
Clear theanswerslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeAnswers
public QuestionnaireRepository.Updater removeAnswers(Answer value)
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
public QuestionnaireRepository.Updater addAnswers(Answer value)
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
public QuestionnaireRepository.Updater setAnswers(Iterable<? extends Answer> values)
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
public QuestionnaireRepository.Updater addAllAnswers(Iterable<? extends Answer> values)
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
public QuestionnaireRepository.Updater clearContext()
Clear thecontextlist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeContext
public QuestionnaireRepository.Updater removeContext(ContextValue value)
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
public QuestionnaireRepository.Updater addContext(ContextValue value)
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
public QuestionnaireRepository.Updater setContext(Iterable<? extends ContextValue> values)
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
public QuestionnaireRepository.Updater addAllContext(Iterable<? extends ContextValue> values)
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
public QuestionnaireRepository.Updater setActiveItem(String value)
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
public QuestionnaireRepository.Updater initActiveItem(String value)
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
public QuestionnaireRepository.Updater clearErrors()
Clear theerrorslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeErrors
public QuestionnaireRepository.Updater removeErrors(Error value)
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
public QuestionnaireRepository.Updater addErrors(Error value)
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
public QuestionnaireRepository.Updater setErrors(Iterable<? extends Error> values)
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
public QuestionnaireRepository.Updater addAllErrors(Iterable<? extends Error> values)
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
public QuestionnaireRepository.Updater clearVariableValues()
Clear thevariableValueslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeVariableValues
public QuestionnaireRepository.Updater removeVariableValues(VariableValue value)
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
public QuestionnaireRepository.Updater addVariableValues(VariableValue value)
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
public QuestionnaireRepository.Updater setVariableValues(Iterable<? extends VariableValue> values)
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
public QuestionnaireRepository.Updater clearValueSets()
Clear thevalueSetslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thisupdater to be used to complete the update operation
-
removeValueSets
public QuestionnaireRepository.Updater removeValueSets(ValueSet value)
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
public QuestionnaireRepository.Updater addValueSets(ValueSet value)
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
public QuestionnaireRepository.Updater setValueSets(Iterable<? extends ValueSet> values)
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
public QuestionnaireRepository.Updater addAllValueSets(Iterable<? extends ValueSet> values)
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
public QuestionnaireRepository.Updater setMetadata(Questionnaire.Metadata value)
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
public QuestionnaireRepository.Updater initMetadata(Questionnaire.Metadata value)
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()
-
-