Class Select
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.Select
SELECT for Single Mode Query
-
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 Select
addOrderByAscFilter
(String... variableNames) final Select
addOrderByDescFilter
(String... variableNames) final Select
addOrderByFilter
(com.fasterxml.jackson.databind.JsonNode filterContent) final Select
addProjection
(com.fasterxml.jackson.databind.JsonNode projectionContent) final Select
addUnusedProjection
(String... variableNames) final Select
addUsedProjection
(String... variableNames) final com.fasterxml.jackson.databind.node.ObjectNode
final com.fasterxml.jackson.databind.node.ObjectNode
final Select
parseLimitFilter
(String filter) final Select
parseOrderByFilter
(String filter) final Select
parseProjection
(String projection) final Select
reset()
final Select
final Select
final Select
final Select
setFilter
(com.fasterxml.jackson.databind.JsonNode filterContent) final Select
setLimitFilter
(long offset, long limit) final Select
setLimitFilter
(com.fasterxml.jackson.databind.JsonNode filterContent) final Select
setProjection
(com.fasterxml.jackson.databind.JsonNode projectionContent) toString()
Methods inherited from class fr.gouv.vitam.common.database.builder.request.single.RequestSingle
getActions, getAllProjection, getData, getDatas, 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
-
Constructor Details
-
Select
public Select()
-
-
Method Details
-
resetLimitFilter
- Returns:
- this Query
-
resetOrderByFilter
- Returns:
- this Query
-
resetUsedProjection
- Returns:
- this Query
-
reset
- Overrides:
reset
in classRequestSingle
- Returns:
- this Request
-
setLimitFilter
- Parameters:
offset
- ignored if 0limit
- ignored if 0- Returns:
- this Query
-
setLimitFilter
- Parameters:
filterContent
- json filter- Returns:
- this Query
-
parseLimitFilter
- Parameters:
filter
- string filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByAscFilter
public final Select addOrderByAscFilter(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByDescFilter
public final Select addOrderByDescFilter(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByFilter
public final Select addOrderByFilter(com.fasterxml.jackson.databind.JsonNode filterContent) throws InvalidParseOperationException - Parameters:
filterContent
- json filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
parseOrderByFilter
- Parameters:
filter
- string filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
setFilter
public final Select setFilter(com.fasterxml.jackson.databind.JsonNode filterContent) throws InvalidParseOperationException - Overrides:
setFilter
in classAbstractRequest
- Parameters:
filterContent
- json filter- Returns:
- this Request
- Throws:
InvalidParseOperationException
- when query is invalid
-
addUsedProjection
public final Select addUsedProjection(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addUnusedProjection
public final Select addUnusedProjection(String... variableNames) throws InvalidParseOperationException - Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addProjection
- Parameters:
projectionContent
- json projection- Returns:
- this Query
-
parseProjection
- Parameters:
projection
- string projection- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
setProjection
public final Select setProjection(com.fasterxml.jackson.databind.JsonNode projectionContent) throws InvalidParseOperationException - Parameters:
projectionContent
- json projection- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
getFinalSelect
public final com.fasterxml.jackson.databind.node.ObjectNode getFinalSelect()- Returns:
- the Final Select containing all 3 parts: query, filter and projection
-
getFinalSelectById
public final com.fasterxml.jackson.databind.node.ObjectNode getFinalSelectById()- Returns:
- the Final Select By Id containing only one parts: projection
-
toString
- Overrides:
toString
in classRequestSingle
-