Class QuestionnaireRepository.Modifier
- java.lang.Object
-
- org.immutables.mongo.repository.Repositories.Modifier<Questionnaire,QuestionnaireRepository.Modifier>
-
- io.dialob.api.questionnaire.QuestionnaireRepository.Modifier
-
- Enclosing class:
- QuestionnaireRepository
@NotThreadSafe public static final class QuestionnaireRepository.Modifier extends org.immutables.mongo.repository.Repositories.Modifier<Questionnaire,QuestionnaireRepository.Modifier>
-
-
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.ModifieraddAllAnswers(Iterable<? extends Answer> values)Add all of the given values to theanswerslist attribute.QuestionnaireRepository.ModifieraddAllContext(Iterable<? extends ContextValue> values)Add all of the given values to thecontextlist attribute.QuestionnaireRepository.ModifieraddAllErrors(Iterable<? extends Error> values)Add all of the given values to theerrorslist attribute.QuestionnaireRepository.ModifieraddAllValueSets(Iterable<? extends ValueSet> values)Add all of the given values to thevalueSetslist attribute.QuestionnaireRepository.ModifieraddAllVariableValues(Iterable<? extends VariableValue> values)Add all of the given values to thevariableValueslist attribute.QuestionnaireRepository.ModifieraddAnswers(Answer value)Add a value to theanswerslist attribute.QuestionnaireRepository.ModifieraddContext(ContextValue value)Add a value to thecontextlist attribute.QuestionnaireRepository.ModifieraddErrors(Error value)Add a value to theerrorslist attribute.QuestionnaireRepository.ModifieraddValueSets(ValueSet value)Add a value to thevalueSetslist attribute.QuestionnaireRepository.ModifieraddVariableValues(VariableValue value)Add a value to thevariableValueslist attribute.QuestionnaireRepository.ModifierclearAnswers()Clear theanswerslist attribute.QuestionnaireRepository.ModifierclearContext()Clear thecontextlist attribute.QuestionnaireRepository.ModifierclearErrors()Clear theerrorslist attribute.QuestionnaireRepository.ModifierclearValueSets()Clear thevalueSetslist attribute.QuestionnaireRepository.ModifierclearVariableValues()Clear thevariableValueslist attribute.protected org.immutables.mongo.repository.internal.Constraints.ConstraintcollectRequiredUpdate()protected org.immutables.mongo.repository.internal.Constraints.ConstraintcollectUpdate()QuestionnaireRepository.ModifierinitActiveItem(String value)Specify an initial value for theactiveItemattribute.QuestionnaireRepository.ModifierinitId(String value)Specify an initial value for theidattribute.QuestionnaireRepository.ModifierinitMetadata(Questionnaire.Metadata value)Specify an initial value for themetadataattribute.QuestionnaireRepository.ModifierinitRev(String value)Specify an initial value for therevattribute.QuestionnaireRepository.ModifierremoveAnswers(Answer value)Remove a value from theanswerslist attribute.QuestionnaireRepository.ModifierremoveContext(ContextValue value)Remove a value from thecontextlist attribute.QuestionnaireRepository.ModifierremoveErrors(Error value)Remove a value from theerrorslist attribute.QuestionnaireRepository.ModifierremoveValueSets(ValueSet value)Remove a value from thevalueSetslist attribute.QuestionnaireRepository.ModifierremoveVariableValues(VariableValue value)Remove a value from thevariableValueslist attribute.QuestionnaireRepository.ModifiersetActiveItem(String value)Specify a new value for theactiveItemattribute.QuestionnaireRepository.ModifiersetAnswers(Iterable<? extends Answer> values)Override all values ofanswerslist attribute.QuestionnaireRepository.ModifiersetContext(Iterable<? extends ContextValue> values)Override all values ofcontextlist attribute.QuestionnaireRepository.ModifiersetErrors(Iterable<? extends Error> values)Override all values oferrorslist attribute.QuestionnaireRepository.ModifiersetId(String value)Specify a new value for theidattribute.QuestionnaireRepository.ModifiersetMetadata(Questionnaire.Metadata value)Specify a new value for themetadataattribute.QuestionnaireRepository.ModifiersetRev(String value)Specify a new value for therevattribute.QuestionnaireRepository.ModifiersetValueSets(Iterable<? extends ValueSet> values)Override all values ofvalueSetslist attribute.QuestionnaireRepository.ModifiersetVariableValues(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.Modifier setId(String value)
Specify a new value for theidattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for theidattribute- Returns:
thismodifier to be used to complete the update operation
-
initId
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
setRev
public QuestionnaireRepository.Modifier setRev(String value)
Specify a new value for therevattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for therevattribute- Returns:
thismodifier to be used to complete the update operation
-
initRev
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
clearAnswers
public QuestionnaireRepository.Modifier clearAnswers()
Clear theanswerslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thismodifier to be used to complete the update operation
-
removeAnswers
public QuestionnaireRepository.Modifier removeAnswers(Answer value)
Remove a value from theanswerslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thismodifier to be used to complete the update operation
-
addAnswers
public QuestionnaireRepository.Modifier addAnswers(Answer value)
Add a value to theanswerslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thismodifier to be used to complete the update operation
-
setAnswers
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
addAllAnswers
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
clearContext
public QuestionnaireRepository.Modifier clearContext()
Clear thecontextlist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thismodifier to be used to complete the update operation
-
removeContext
public QuestionnaireRepository.Modifier removeContext(ContextValue value)
Remove a value from thecontextlist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thismodifier to be used to complete the update operation
-
addContext
public QuestionnaireRepository.Modifier addContext(ContextValue value)
Add a value to thecontextlist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thismodifier to be used to complete the update operation
-
setContext
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
addAllContext
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
setActiveItem
public QuestionnaireRepository.Modifier setActiveItem(String value)
Specify a new value for theactiveItemattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for theactiveItemattribute- Returns:
thismodifier to be used to complete the update operation
-
initActiveItem
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
clearErrors
public QuestionnaireRepository.Modifier clearErrors()
Clear theerrorslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thismodifier to be used to complete the update operation
-
removeErrors
public QuestionnaireRepository.Modifier removeErrors(Error value)
Remove a value from theerrorslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thismodifier to be used to complete the update operation
-
addErrors
public QuestionnaireRepository.Modifier addErrors(Error value)
Add a value to theerrorslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thismodifier to be used to complete the update operation
-
setErrors
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
addAllErrors
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
clearVariableValues
public QuestionnaireRepository.Modifier clearVariableValues()
Clear thevariableValueslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thismodifier to be used to complete the update operation
-
removeVariableValues
public QuestionnaireRepository.Modifier removeVariableValues(VariableValue value)
Remove a value from thevariableValueslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thismodifier to be used to complete the update operation
-
addVariableValues
public QuestionnaireRepository.Modifier addVariableValues(VariableValue value)
Add a value to thevariableValueslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thismodifier to be used to complete the update operation
-
setVariableValues
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
addAllVariableValues
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
clearValueSets
public QuestionnaireRepository.Modifier clearValueSets()
Clear thevalueSetslist attribute.Corresponds to the MongoDB
$unsetoperator- Returns:
thismodifier to be used to complete the update operation
-
removeValueSets
public QuestionnaireRepository.Modifier removeValueSets(ValueSet value)
Remove a value from thevalueSetslist attribute.Corresponds to the MongoDB
$pulloperator.- Parameters:
value- The value to remove- Returns:
thismodifier to be used to complete the update operation
-
addValueSets
public QuestionnaireRepository.Modifier addValueSets(ValueSet value)
Add a value to thevalueSetslist attribute.Corresponds to the MongoDB
$pushoperator.- Parameters:
value- The value to add- Returns:
thismodifier to be used to complete the update operation
-
setValueSets
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
addAllValueSets
public QuestionnaireRepository.Modifier 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:
thismodifier to be used to complete the update operation
-
setMetadata
public QuestionnaireRepository.Modifier setMetadata(Questionnaire.Metadata value)
Specify a new value for themetadataattribute.Corresponds to the MongoDB
$setoperator.- Parameters:
value- A new value for themetadataattribute- Returns:
thismodifier to be used to complete the update operation
-
initMetadata
public QuestionnaireRepository.Modifier 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:
thismodifier 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()
-
-