Class ContentQueryExpressions
- java.lang.Object
-
- com.iknowbase.api.contentservices.query.content.ContentQueryExpressions
-
public class ContentQueryExpressions extends Object
Expression factory for creating Expression objects, for use with static imports.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ContentQueryExpressions.InternalExpressionFactory
Non-public interface; do not use.
-
Constructor Summary
Constructors Constructor Description ContentQueryExpressions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentExpression
contentExpression()
Creates a new ContentExpression enabling predicates (searching) on any indexed content.static DateExpression
dateExpression(String externalKey)
Creates a new DateExpression for an attribute or function identified by external key.static DateExpressionType
dateFunction(String name, Function<ContentQueryRow,Instant> function)
Creates a new DateExpressionType for a function identified by name.static DimensionReferenceExpression
dimensionReferenceExpression()
Creates a new DimensionReferenceExpression enabling predicates (searching) on all dimension attributes.static DimensionReferenceExpression
dimensionReferenceExpression(String externalKey)
Creates a new DimensionReferenceExpression for an attribute or function identified by external key.static DocumentReferenceExpression
documentReferenceExpression(String externalKey)
Creates a new DocumentReferenceExpression for an attribute or function identified by external key.static FileExpression
fileExpression(String externalKey)
Creates a new FileExpression for an attribute or function identified by external key.static NumberExpression
numberExpression(String externalKey)
Creates a new NumberExpression for an attribute or function identified by external key.static NumberExpressionType
numberFunction(String name, Function<ContentQueryRow,Number> function)
Creates a new NumberExpressionType for a function identified by name.static <T> ObjectExpressionType<T>
objectFunction(String name, Function<ContentQueryRow,T> function)
Creates a new ObjectExpressionType for a function identified by name.static ObjectReferenceExpression
objectReferenceExpression(String externalKey)
Creates a new ObjectReferenceExpression for an attribute or function identified by external key.static SqlFunctionBuilder
sqlFunctionBuilder()
Creates a new builder for creating SqlFunction objectsstatic StringExpression
stringExpression(String externalKey)
Creates a new StringExpression for an attribute or function identified by external key.static StringExpressionType
stringFunction(String name, Function<ContentQueryRow,String> function)
Creates a new StringExpressionType for a function identified by name.static UserReferenceExpression
userReferenceExpression(String externalKey)
Creates a new UserReferenceExpression for an attribute or function identified by external key.static DatePeriodExpression
validityExpression()
Creates a new DatePeriodExpression enabling predicates (searching) on document validity.static XmlExpression
xmlExpression(String externalKey)
Creates a new XmlExpression for an attribute or function identified by external key.
-
-
-
Method Detail
-
contentExpression
public static ContentExpression contentExpression()
Creates a new ContentExpression enabling predicates (searching) on any indexed content.- Returns:
- a new ContentExpression
-
dimensionReferenceExpression
public static DimensionReferenceExpression dimensionReferenceExpression()
Creates a new DimensionReferenceExpression enabling predicates (searching) on all dimension attributes.- Returns:
- a new DimensionReferenceExpression
-
validityExpression
public static DatePeriodExpression validityExpression()
Creates a new DatePeriodExpression enabling predicates (searching) on document validity.- Returns:
- a new DatePeriodExpression
-
stringExpression
public static StringExpression stringExpression(String externalKey)
Creates a new StringExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new StringExpression
-
numberExpression
public static NumberExpression numberExpression(String externalKey)
Creates a new NumberExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new NumberExpression
-
dateExpression
public static DateExpression dateExpression(String externalKey)
Creates a new DateExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new DateExpression
-
fileExpression
public static FileExpression fileExpression(String externalKey)
Creates a new FileExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new FileExpression
-
xmlExpression
public static XmlExpression xmlExpression(String externalKey)
Creates a new XmlExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new XmlExpression
-
objectReferenceExpression
public static ObjectReferenceExpression objectReferenceExpression(String externalKey)
Creates a new ObjectReferenceExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new ObjectReferenceExpression
-
dimensionReferenceExpression
public static DimensionReferenceExpression dimensionReferenceExpression(String externalKey)
Creates a new DimensionReferenceExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new DimensionReferenceExpression
-
documentReferenceExpression
public static DocumentReferenceExpression documentReferenceExpression(String externalKey)
Creates a new DocumentReferenceExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new DocumentReferenceExpression
-
userReferenceExpression
public static UserReferenceExpression userReferenceExpression(String externalKey)
Creates a new UserReferenceExpression for an attribute or function identified by external key.- Parameters:
externalKey
- external key of the attribute.- Returns:
- a new UserReferenceExpression
-
sqlFunctionBuilder
public static SqlFunctionBuilder sqlFunctionBuilder()
Creates a new builder for creating SqlFunction objects- Returns:
- a new SqlFunctionBuilder
-
stringFunction
public static 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
public static 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
public static 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
public static <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
-
-