Class Insert
java.lang.Object
fr.gouv.vitam.common.database.builder.request.AbstractRequest
fr.gouv.vitam.common.database.builder.request.single.RequestSingle
fr.gouv.vitam.common.database.builder.request.single.Insert
Insert: { $query: query, $data : data , $filter: filter} // No query in
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.database.builder.request.single.RequestSingle
query
Fields inherited from class fr.gouv.vitam.common.database.builder.request.AbstractRequest
filter, projection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Insert
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()
final com.fasterxml.jackson.databind.node.ArrayNode
getDatas()
final com.fasterxml.jackson.databind.node.ObjectNode
final Insert
final Insert
reset()
final Insert
final Insert
setData
(com.fasterxml.jackson.databind.JsonNode dataContent) toString()
Methods inherited from class fr.gouv.vitam.common.database.builder.request.single.RequestSingle
getActions, getAllProjection, getFinal, getNbQueries, getProjection, getQueries, getQuery, getRoots, resetQuery, setQuery
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, setFilter
-
Field Details
-
data
protected com.fasterxml.jackson.databind.node.ArrayNode data
-
-
Constructor Details
-
Insert
public Insert()
-
-
Method Details
-
resetData
- Returns:
- this Insert
-
reset
- Overrides:
reset
in classRequestSingle
- Returns:
- this Insert
-
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 Insert 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 3 parts: query filter and data
-
getData
public final com.fasterxml.jackson.databind.node.ObjectNode getData()- Overrides:
getData
in classRequestSingle
- Returns:
- the data
-
getDatas
public final com.fasterxml.jackson.databind.node.ArrayNode getDatas()- Overrides:
getDatas
in classRequestSingle
- Returns:
- the datas
-
toString
- Overrides:
toString
in classRequestSingle
-