| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addTerm(java.lang.String token,
Term term)
OVERRIDE ME TO ADD CUSTOM FUNCTIONALITY TO YOUR FLUENT API
|
java.util.List<Term> |
getFilters() |
protected boolean |
isInvalidColumn(Collection collection,
java.lang.String column) |
protected boolean |
isInvalidColumn(Term t)
Checks to see if a column referenced by a function call is valid.
|
protected Term |
transform(Term parent) |
clearFunctions, find, find, findAll, findAll, findInt, findTerm, getBuilders, getParent, getRoot, getTerms, isFunction, parse, r, removeBuilder, toString, toString, withBuilder, withFunctions, withFunctions, withParent, withTerm, withTerm, withTerm, withTermspublic Where(P query)
protected boolean addTerm(java.lang.String token,
Term term)
Builderprotected boolean isInvalidColumn(Term t)
This function only validates the first leaf child of the supplied token in (FUNCTIN(COLUMN,...) format) and does not recurse.
To be considered valid the column name must match a Collection Properties' column name OR the Collection must be null and the column name must only contain alphanumeric characters and underscores and can not start with an underscore.
For example:
IMPLEMENTATION NOTE: You may want to override this if you are using a document store (such as Azure Cosmos) that does not require each column to be defined.
IMPLEMENTATION NOTE: Terms that are passed into this function presumably have already been filtered by the Db object for known restricted columns.
t - the term to check for valid column referencesprotected boolean isInvalidColumn(Collection collection, java.lang.String column)
public java.util.List<Term> getFilters()
Copyright © 2023 Rocket Partners, LLC. All rights reserved.