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
-
public class InsertMultiQuery extends RequestMultiple
Insert: { $roots: roots, $query : query, $filter : multi, $data : data } or [ roots, query, multi, data ]
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.node.ObjectNode
data
-
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
Constructors Constructor Description InsertMultiQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertMultiQuery
addData(com.fasterxml.jackson.databind.node.ObjectNode... data)
Note that if previous attributes have the same name, they will be replaced.com.fasterxml.jackson.databind.node.ObjectNode
getData()
default implements of getDatacom.fasterxml.jackson.databind.node.ObjectNode
getFinalInsert()
InsertMultiQuery
parseData(java.lang.String data)
InsertMultiQuery
reset()
InsertMultiQuery
resetData()
InsertMultiQuery
setData(com.fasterxml.jackson.databind.JsonNode dataContent)
InsertMultiQuery
setFilter(com.fasterxml.jackson.databind.JsonNode filterContent)
InsertMultiQuery
setMult(boolean mult)
InsertMultiQuery
setMult(com.fasterxml.jackson.databind.JsonNode filterContent)
java.lang.String
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
-
-
-
-
Method Detail
-
resetData
public final InsertMultiQuery resetData()
- Returns:
- this Insert
-
reset
public final InsertMultiQuery reset()
- Overrides:
reset
in classRequestMultiple
- Returns:
- this Insert
-
setMult
public final InsertMultiQuery setMult(boolean mult)
- Parameters:
mult
- True to act on multiple elements, False to act only on 1 element- Returns:
- this Insert
-
setMult
public final InsertMultiQuery setMult(com.fasterxml.jackson.databind.JsonNode filterContent)
- 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
public final InsertMultiQuery addData(com.fasterxml.jackson.databind.node.ObjectNode... data)
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
public final InsertMultiQuery parseData(java.lang.String data) throws InvalidParseOperationException
- 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
public java.lang.String toString()
- Overrides:
toString
in classRequestMultiple
-
-