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
-
public class Insert extends RequestSingle
Insert: { $query: query, $data : data , $filter: filter} // No query in
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.node.ArrayNode
data
-
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
Constructors Constructor Description Insert()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insert
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()
com.fasterxml.jackson.databind.node.ArrayNode
getDatas()
com.fasterxml.jackson.databind.node.ObjectNode
getFinalInsert()
Insert
parseData(java.lang.String data)
Insert
reset()
Insert
resetData()
Insert
setData(com.fasterxml.jackson.databind.JsonNode dataContent)
java.lang.String
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
-
-
-
-
Method Detail
-
resetData
public final Insert resetData()
- Returns:
- this Insert
-
reset
public final Insert reset()
- Overrides:
reset
in classRequestSingle
- Returns:
- this Insert
-
addData
public final Insert 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 Insert 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 Insert 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 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
public java.lang.String toString()
- Overrides:
toString
in classRequestSingle
-
-