Package org.nuxeo.ecm.core.query.sql
Class NXQL
java.lang.Object
org.nuxeo.ecm.core.query.sql.NXQL
This defines the constants for NXQL queries.
- Author:
- Florent Guillaume
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
Suffix for ecm:acl, like inecm:acl/
*
/begin
static final String
Suffix for ecm:acl, like inecm:acl/
*
/creator
static final String
Suffix for ecm:acl, like inecm:acl/
*
/end
static final String
Suffix for ecm:acl, like inecm:acl/
*
/grant
static final String
Suffix for ecm:acl, like inecm:acl/
*
/name
static final String
Suffix for ecm:acl, like inecm:acl/
*
/permission
static final String
Suffix for ecm:acl, like inecm:acl/
*
/pos
static final String
Suffix for ecm:acl, like inecm:acl/
*
/principal
static final String
Suffix for ecm:acl, like inecm:acl/
*
/status
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
The function returning the current datetime.static final String
The NXQL query type.static final String
Property containing the test value of the current date fornowPlusPeriodAndDuration(java.lang.String)
. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Escapes a string into a single-quoted string for NXQL.static String
Escapes a string (assumed to be single quoted) for NXQL.static ZonedDateTime
nowPlusPeriodAndDuration
(String periodAndDurationText) Returns the current dateTime to which the period and duration (if present) has been added.
-
Field Details
-
TEST_NXQL_NOW
Property containing the test value of the current date fornowPlusPeriodAndDuration(java.lang.String)
.Only for tests, not a public API.
- Since:
- 11.1
- See Also:
-
NXQL
The NXQL query type.- See Also:
-
ECM_PREFIX
- See Also:
-
ECM_UUID
- See Also:
-
ECM_PATH
- See Also:
-
ECM_NAME
- See Also:
-
ECM_POS
- See Also:
-
ECM_PARENTID
- See Also:
-
ECM_MIXINTYPE
- See Also:
-
ECM_PRIMARYTYPE
- See Also:
-
ECM_ISPROXY
- See Also:
-
ECM_ISVERSION
- See Also:
-
ECM_ISVERSION_OLD
- Since:
- 5.7.3
- See Also:
-
ECM_LIFECYCLESTATE
- See Also:
-
ECM_VERSIONLABEL
- See Also:
-
ECM_FULLTEXT
- See Also:
-
ECM_FULLTEXT_JOBID
- See Also:
-
ECM_FULLTEXT_SCORE
- Since:
- 6.0
- See Also:
-
ECM_LOCK_OWNER
- Since:
- 5.4.2
- See Also:
-
ECM_LOCK_CREATED
- Since:
- 5.4.2
- See Also:
-
ECM_TAG
- Since:
- 5.7
- See Also:
-
ECM_PROXY_TARGETID
- Since:
- 5.7
- See Also:
-
ECM_PROXY_VERSIONABLEID
- Since:
- 5.7
- See Also:
-
ECM_ISCHECKEDIN
- Since:
- 5.7.3
- See Also:
-
ECM_ISLATESTVERSION
- Since:
- 5.7.3
- See Also:
-
ECM_ISLATESTMAJORVERSION
- Since:
- 5.7.3
- See Also:
-
ECM_VERSIONCREATED
- Since:
- 5.7.3
- See Also:
-
ECM_VERSIONDESCRIPTION
- Since:
- 5.7.3
- See Also:
-
ECM_VERSION_VERSIONABLEID
- Since:
- 5.7.3
- See Also:
-
ECM_ANCESTORID
- Since:
- 6.0
- See Also:
-
ECM_ACL
- Since:
- 6.0-HF06, 7.2
- See Also:
-
ECM_ACL_PRINCIPAL
Suffix for ecm:acl, like inecm:acl/
*
/principal
- Since:
- 6.0-HF06, 7.2
- See Also:
-
ECM_ACL_PERMISSION
Suffix for ecm:acl, like inecm:acl/
*
/permission
- Since:
- 6.0-HF06, 7.2
- See Also:
-
ECM_ACL_GRANT
Suffix for ecm:acl, like inecm:acl/
*
/grant
- Since:
- 6.0-HF06, 7.2
- See Also:
-
ECM_ACL_NAME
Suffix for ecm:acl, like inecm:acl/
*
/name
- Since:
- 6.0-HF06, 7.2
- See Also:
-
ECM_ACL_POS
Suffix for ecm:acl, like inecm:acl/
*
/pos
- Since:
- 6.0-HF06, 7.2
- See Also:
-
ECM_ACL_CREATOR
Suffix for ecm:acl, like inecm:acl/
*
/creator
- Since:
- 7.4
- See Also:
-
ECM_ACL_BEGIN
Suffix for ecm:acl, like inecm:acl/
*
/begin
- Since:
- 7.4
- See Also:
-
ECM_ACL_END
Suffix for ecm:acl, like inecm:acl/
*
/end
- Since:
- 7.4
- See Also:
-
ECM_ACL_STATUS
Suffix for ecm:acl, like inecm:acl/
*
/status
- Since:
- 7.4
- See Also:
-
ECM_ISTRASHED
- Since:
- 10.1
- See Also:
-
ECM_ISRECORD
- Since:
- 11.1
- See Also:
-
ECM_ISFLEXIBLERECORD
- Since:
- 2023.1
- See Also:
-
ECM_RETAINUNTIL
- Since:
- 11.1
- See Also:
-
ECM_HASLEGALHOLD
- Since:
- 11.1
- See Also:
-
ECM_BLOBKEYS
- Since:
- 11.5
- See Also:
-
ECM_RETAINED_PROPS
- Since:
- 2021.32
- See Also:
-
NOW_FUNCTION
The function returning the current datetime. It can optionally have as an argument a duration that will be added to the current datetime, expressed as a ISO 8601 period.See
PeriodAndDuration.parse(java.lang.String)
for the exact format.- Since:
- 11.1
- See Also:
-
-
Method Details
-
escapeString
Escapes a string into a single-quoted string for NXQL.Any single quote or backslash characters are escaped with a backslash.
- Parameters:
s
- the string to escape- Returns:
- the escaped string
- Since:
- 5.7, 5.6.0-HF08
-
escapeStringInner
Escapes a string (assumed to be single quoted) for NXQL.Any single quote or backslash characters are escaped with a backslash.
- Parameters:
s
- the string to escape- Returns:
- the escaped string, without external quotes
- Since:
- 5.7, 5.6.0-HF08
-
nowPlusPeriodAndDuration
Returns the current dateTime to which the period and duration (if present) has been added.- Parameters:
periodAndDurationText
- the period and duration as text, ornull
- Returns:
- the current dateTime to which the period and duration has been added
- Throws:
IllegalArgumentException
- if the period and duration cannot be parsed- Since:
- 11.1
-