Class InsertMultiQuery
java.lang.Object
fr.gouv.vitam.common.database.builder.request.AbstractRequest
fr.gouv.vitam.common.database.builder.request.multiple.RequestMultiple
fr.gouv.vitam.common.database.builder.request.multiple.InsertMultiQuery
Insert: { $roots: roots, $query : query, $filter : multi, $data : data } or [ roots, query, multi, data ]
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.database.builder.request.multiple.RequestMultiple
facets, queries, roots, threshold
Fields inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
filter, projection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal InsertMultiQuery
addData
(com.fasterxml.jackson.databind.node.ObjectNode... data) Note that if previous attributes have the same name, they will be replaced.final com.fasterxml.jackson.databind.node.ObjectNode
getData()
default implements of getDatafinal com.fasterxml.jackson.databind.node.ObjectNode
final InsertMultiQuery
final InsertMultiQuery
reset()
final InsertMultiQuery
final InsertMultiQuery
setData
(com.fasterxml.jackson.databind.JsonNode dataContent) final InsertMultiQuery
setFilter
(com.fasterxml.jackson.databind.JsonNode filterContent) final InsertMultiQuery
setMult
(boolean mult) final InsertMultiQuery
setMult
(com.fasterxml.jackson.databind.JsonNode filterContent) toString()
Methods inherited from class fr.gouv.vitam.common.database.builder.request.multiple.RequestMultiple
addQueries, addRoots, addRoots, getActions, getAllProjection, getFacets, getFinal, getNbQueries, getNthQuery, getProjection, getQueries, getRoots, getThreshold, parseRoots, resetQueries, resetRoots, setFacets, setQuery, setThreshold
Methods inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
addHintFilter, addHintFilter, getFilter, parseFilter, resetFilter, resetHintFilter, selectAddOrderByAscFilter, selectAddOrderByDescFilter, selectAddOrderByFilter, selectAddProjection, selectAddUnusedProjection, selectAddUsedProjection, selectGetAllProjection, selectGetFinalSelect, selectGetProjection, selectParseLimitFilter, selectParseOrderByFilter, selectParseProjection, selectReset, selectResetLimitFilter, selectResetOrderByFilter, selectResetUsedProjection, selectSetFilter, selectSetLimitFilter, selectSetLimitFilter, selectSetProjection, selectSetScrollFilter
-
Field Details
-
data
protected com.fasterxml.jackson.databind.node.ObjectNode data
-
-
Constructor Details
-
InsertMultiQuery
public InsertMultiQuery()
-
-
Method Details
-
resetData
- Returns:
- this Insert
-
reset
- Overrides:
reset
in classRequestMultiple
- Returns:
- this Insert
-
setMult
- Parameters:
mult
- True to act on multiple elements, False to act only on 1 element- Returns:
- this Insert
-
setMult
- Parameters:
filterContent
- json filter- Returns:
- this Insert
-
setFilter
public final InsertMultiQuery setFilter(com.fasterxml.jackson.databind.JsonNode filterContent) throws InvalidParseOperationException - Overrides:
setFilter
in classAbstractRequest
- Parameters:
filterContent
- json filter- Returns:
- this Insert
- Throws:
InvalidParseOperationException
- when query is invalid
-
addData
Note that if previous attributes have the same name, they will be replaced.- Parameters:
data
- list of json data- Returns:
- this Insert
-
setData
public final InsertMultiQuery setData(com.fasterxml.jackson.databind.JsonNode dataContent) throws InvalidParseOperationException - Parameters:
dataContent
- json data- Returns:
- this Insert
- Throws:
InvalidParseOperationException
- when query is invalid
-
parseData
- Parameters:
data
- string data- Returns:
- this Insert
- Throws:
InvalidParseOperationException
- when query is invalid
-
getFinalInsert
public final com.fasterxml.jackson.databind.node.ObjectNode getFinalInsert()- Returns:
- the Final Insert containing all 4 parts: roots, queries array, filter and data
-
getData
public final com.fasterxml.jackson.databind.node.ObjectNode getData()Description copied from class:RequestMultiple
default implements of getData- Overrides:
getData
in classRequestMultiple
- Returns:
- the data
-
toString
- Overrides:
toString
in classRequestMultiple
-