Interface ContentQueryService
-
public interface ContentQueryService
A service managing the creation and execution ofContentQuery
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentQueryBuilder
builder()
Creates a new ContentQueryBuilder used to build a ContentQuery.ContentExpression
contentExpression()
Creates an expression for a text search in all fields indexed by Oracle Text.DateExpression
dateExpression(String externalKey)
Creates an expression for a date attribute or attribute, field or function.DateExpressionType
dateFunction(String name, Function<ContentQueryRow,Instant> function)
Creates a new DateExpressionType for a function identified by name.DimensionReferenceExpression
dimensionReferenceExpression()
Creates an expression used to search in any and all dimension references.DimensionReferenceExpression
dimensionReferenceExpression(String externalKey)
Creates an expression for a given dimension reference attribute, field or function.DocumentReferenceExpression
documentReferenceExpression(String externalKey)
Creates an expression for a given document reference attribute, field or function.FileExpression
fileExpression(String externalKey)
Creates an expression for a given file attribute, field or function.NumberExpression
numberExpression(String externalKey)
Creates an expression for a given number attribute, field or function.NumberExpressionType
numberFunction(String name, Function<ContentQueryRow,Number> function)
Creates a new NumberExpressionType for a function identified by name.<T> ObjectExpressionType<T>
objectFunction(String name, Function<ContentQueryRow,T> function)
Creates a new ObjectExpressionType for a function identified by name.ObjectReferenceExpression
objectReferenceExpression(String externalKey)
Creates an expression for a given object reference attribute, field or function.SqlFunctionBuilder
sqlFunctionBuilder()
Creates a new builder for creating SqlFunction objectsPredicate
sqlPredicate(String sql, Object... parameters)
Creates a Predicate for a SQL-expression, optionally including parameters.StringExpression
stringExpression(String externalKey)
Creates an expression for a given String attribute, field or function.StringExpressionType
stringFunction(String name, Function<ContentQueryRow,String> function)
Creates a new StringExpressionType for a function identified by name.UserReferenceExpression
userReferenceExpression(String externalKey)
Creates an expression for a given user reference attribute, field or function.DatePeriodExpression
validityExpression()
Creates an expression for a validity period search.XmlExpression
xmlExpression(String externalKey)
Creates an expression for a given XML attribute, field or function.
-
-
-
Method Detail
-
builder
ContentQueryBuilder builder()
Creates a new ContentQueryBuilder used to build a ContentQuery.- Returns:
- a new ContentQueryBuilder
-
sqlPredicate
Predicate sqlPredicate(String sql, Object... parameters)
Creates a Predicate for a SQL-expression, optionally including parameters.The SQL-statement will be embedded literally into the SQL-statement used for the ContentQuery, and must be on a format suitable for such embedding, for example
"AND oi1.document_id=?"
. Use question marks to indicate parameter placeholder, and add one parameter per placeholder.Currently only supported as part of the where clause.
- Parameters:
sql
- the SQL-statement to useparameters
- parameters for the SQL-statement- Returns:
- a new Predicate
-
contentExpression
ContentExpression contentExpression()
Creates an expression for a text search in all fields indexed by Oracle Text.- Returns:
- a new Expression
-
dimensionReferenceExpression
DimensionReferenceExpression dimensionReferenceExpression()
Creates an expression used to search in any and all dimension references.- Returns:
- a new Expression.
-
validityExpression
DatePeriodExpression validityExpression()
Creates an expression for a validity period search.- Returns:
- a new Expression.
-
stringExpression
StringExpression stringExpression(String externalKey)
Creates an expression for a given String attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
numberExpression
NumberExpression numberExpression(String externalKey)
Creates an expression for a given number attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
dateExpression
DateExpression dateExpression(String externalKey)
Creates an expression for a date attribute or attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
fileExpression
FileExpression fileExpression(String externalKey)
Creates an expression for a given file attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
xmlExpression
XmlExpression xmlExpression(String externalKey)
Creates an expression for a given XML attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
objectReferenceExpression
ObjectReferenceExpression objectReferenceExpression(String externalKey)
Creates an expression for a given object reference attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
dimensionReferenceExpression
DimensionReferenceExpression dimensionReferenceExpression(String externalKey)
Creates an expression for a given dimension reference attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
documentReferenceExpression
DocumentReferenceExpression documentReferenceExpression(String externalKey)
Creates an expression for a given document reference attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
userReferenceExpression
UserReferenceExpression userReferenceExpression(String externalKey)
Creates an expression for a given user reference attribute, field or function.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new Expression.
-
sqlFunctionBuilder
SqlFunctionBuilder sqlFunctionBuilder()
Creates a new builder for creating SqlFunction objects- Returns:
- a new SqlFunctionBuilder
-
stringFunction
StringExpressionType stringFunction(String name, Function<ContentQueryRow,String> function)
Creates a new StringExpressionType for a function identified by name.- Parameters:
name
- name of the function- Returns:
- a new StringExpressionType
-
numberFunction
NumberExpressionType numberFunction(String name, Function<ContentQueryRow,Number> function)
Creates a new NumberExpressionType for a function identified by name.- Parameters:
name
- name of the function- Returns:
- a new NumberExpressionType
-
dateFunction
DateExpressionType dateFunction(String name, Function<ContentQueryRow,Instant> function)
Creates a new DateExpressionType for a function identified by name.- Parameters:
name
- name of the function- Returns:
- a new DateExpressionType
-
objectFunction
<T> ObjectExpressionType<T> objectFunction(String name, Function<ContentQueryRow,T> function)
Creates a new ObjectExpressionType for a function identified by name.- Parameters:
name
- name of the function- Returns:
- a new ObjectExpressionType
-
-