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
-
public class Select extends RequestSingle
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
Constructors Constructor Description Select()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Select
addOrderByAscFilter(java.lang.String... variableNames)
Select
addOrderByDescFilter(java.lang.String... variableNames)
Select
addOrderByFilter(com.fasterxml.jackson.databind.JsonNode filterContent)
Select
addProjection(com.fasterxml.jackson.databind.JsonNode projectionContent)
Select
addUnusedProjection(java.lang.String... variableNames)
Select
addUsedProjection(java.lang.String... variableNames)
com.fasterxml.jackson.databind.node.ObjectNode
getFinalSelect()
com.fasterxml.jackson.databind.node.ObjectNode
getFinalSelectById()
Select
parseLimitFilter(java.lang.String filter)
Select
parseOrderByFilter(java.lang.String filter)
Select
parseProjection(java.lang.String projection)
Select
reset()
Select
resetLimitFilter()
Select
resetOrderByFilter()
Select
resetUsedProjection()
Select
setFilter(com.fasterxml.jackson.databind.JsonNode filterContent)
Select
setLimitFilter(long offset, long limit)
Select
setLimitFilter(com.fasterxml.jackson.databind.JsonNode filterContent)
Select
setProjection(com.fasterxml.jackson.databind.JsonNode projectionContent)
java.lang.String
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
-
-
-
-
Method Detail
-
resetLimitFilter
public final Select resetLimitFilter()
- Returns:
- this Query
-
resetOrderByFilter
public final Select resetOrderByFilter()
- Returns:
- this Query
-
resetUsedProjection
public final Select resetUsedProjection()
- Returns:
- this Query
-
reset
public final Select reset()
- Overrides:
reset
in classRequestSingle
- Returns:
- this Request
-
setLimitFilter
public final Select setLimitFilter(long offset, long limit)
- Parameters:
offset
- ignored if 0limit
- ignored if 0- Returns:
- this Query
-
setLimitFilter
public final Select setLimitFilter(com.fasterxml.jackson.databind.JsonNode filterContent)
- Parameters:
filterContent
- json filter- Returns:
- this Query
-
parseLimitFilter
public final Select parseLimitFilter(java.lang.String filter) throws InvalidParseOperationException
- Parameters:
filter
- string filter- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByAscFilter
public final Select addOrderByAscFilter(java.lang.String... variableNames) throws InvalidParseOperationException
- Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addOrderByDescFilter
public final Select addOrderByDescFilter(java.lang.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
public final Select parseOrderByFilter(java.lang.String filter) throws InvalidParseOperationException
- 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(java.lang.String... variableNames) throws InvalidParseOperationException
- Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addUnusedProjection
public final Select addUnusedProjection(java.lang.String... variableNames) throws InvalidParseOperationException
- Parameters:
variableNames
- list of key name- Returns:
- this Query
- Throws:
InvalidParseOperationException
- when query is invalid
-
addProjection
public final Select addProjection(com.fasterxml.jackson.databind.JsonNode projectionContent)
- Parameters:
projectionContent
- json projection- Returns:
- this Query
-
parseProjection
public final Select parseProjection(java.lang.String projection) throws InvalidParseOperationException
- 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
public java.lang.String toString()
- Overrides:
toString
in classRequestSingle
-
-