| Modifier and Type | Class and Description |
|---|---|
| public static enum | FilterParams.
The type of row lock. |
| public static enum | FilterParams.
Options that define the behavior while retrieving locked rows. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | Returns: List of X Protocol Expr objectsGet X Protocol Expr objects for grouping criteria. |
| public Long | |
| public FilterParams. | |
| public FilterParams. | |
| public Long | |
| public Object | |
| public boolean | |
| public void | |
| public void | |
| public void | setGrouping(String...
groupBy expression groupBy)Parse groupBy expressions into X Protocol Expr objects. |
| public void | setGroupingCriteria(String
having expression having)Parse having expressions into X Protocol Expr objects. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | Returns: true if offset clause is supportedWhether offset clause is supported in the statement or not. |
| public void |
| addArg | back to summary |
|---|---|
| public void addArg(String name, Object value) Set binding.
this.collection.find("a = :arg1 or b = :arg2").bind("arg1", 1).bind("arg2", 2).execute();
| |
| clearArgs | back to summary |
|---|---|
| public void clearArgs() Remove all current bindings. | |
| getArgs | back to summary |
|---|---|
| public Object getArgs() Get binding arguments.
| |
| getCollection | back to summary |
|---|---|
| public Object getCollection() Get X Protocol Collection object.
| |
| getCriteria | back to summary |
|---|---|
| public Object getCriteria() Get the search criteria.
| |
| getFields | back to summary |
|---|---|
| public Object getFields() Get X Protocol Projection objects.
| |
| getGrouping | back to summary |
|---|---|
| public Object getGrouping() Get X Protocol Expr objects for groupBy.
| |
| getGroupingCriteria | back to summary |
|---|---|
| public Object getGroupingCriteria() Get X Protocol Expr objects for grouping criteria.
| |
| getLimit | back to summary |
|---|---|
| public Long getLimit() Get max number of rows to filter.
| |
| getLock | back to summary |
|---|---|
| public FilterParams. Get
| |
| getLockOption | back to summary |
|---|---|
| public FilterParams. Get | |
| getOffset | back to summary |
|---|---|
| public Long getOffset() Get number of rows to skip before finding others.
| |
| getOrder | back to summary |
|---|---|
| public Object getOrder() Get X Protocol Order objects.
| |
| isRelational | back to summary |
|---|---|
| public boolean isRelational() Are relational columns identifiers allowed?
| |
| setCriteria | back to summary |
|---|---|
| public void setCriteria(String criteriaString) Parse criteriaString into X Protocol Expr object.
docs = this.collection.find("$.x1 = 29 | 15").execute();
table.delete().where("age == 13").execute();
| |
| setFields | back to summary |
|---|---|
| public void setFields(String... projection) Parse projection expressions into X Protocol Projection objects.
collection.find().fields("CAST($.x as SIGNED) as x").execute();
table.select("_id, name, birthday, age").execute();
table.select("age as age_group, count(name) as cnt, something").execute();
| |
| setGrouping | back to summary |
|---|---|
| public void setGrouping(String... groupBy) Parse groupBy expressions into X Protocol Expr objects.
SelectStatement stmt = table.select("age as age_group, count(name) as cnt, something");
stmt.groupBy("something", "age_group");
| |
| setGroupingCriteria | back to summary |
|---|---|
| public void setGroupingCriteria(String having) Parse having expressions into X Protocol Expr objects.
SelectStatement stmt = table.select("age as age_group, count(name) as cnt, something");
stmt.groupBy("something", "age_group");
stmt.having("cnt > 1");
| |
| setLimit | back to summary |
|---|---|
| public void setLimit(Long limit) Set maximum rows to find. For example, to find the 3 first rows:
docs = this.collection.find().orderBy("$._id").limit(3).execute();
| |
| setLock | back to summary |
|---|---|
| public void setLock(FilterParams. Set
| |
| setLockOption | back to summary |
|---|---|
| public void setLockOption(FilterParams. Set
| |
| setOffset | back to summary |
|---|---|
| public void setOffset(Long offset) Set number of rows to skip before finding others. For example, to skip 1 row and find other 3 rows:
docs = this.collection.find().orderBy("$._id").limit(3).skip(1).execute();
| |
| setOrder | back to summary |
|---|---|
| public void setOrder(String... orderExpression) Parse order expressions into X Protocol Order objects.
DocResult docs = this.collection.find().orderBy("$._id").execute();
docs = this.collection.find().sort("$.x", "$.y").execute();
| |
| supportsOffset | back to summary |
|---|---|
| public boolean supportsOffset() Whether offset clause is supported in the statement or not. Note that setting offset values is always possible, even if they are not supported.
| |
| verifyAllArgsBound | back to summary |
|---|---|
| public void verifyAllArgsBound() Verify that all arguments are bound. Throws | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FilterParams. | EXCLUSIVE_LOCK
Lock matching rows so no other transactions can read or write to it. |
| private int | |
| public static final FilterParams. | SHARED_LOCK
Lock matching rows against updates. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static FilterParams. | |
| public static FilterParams. |
| EXCLUSIVE_LOCK | back to summary |
|---|---|
| public static final FilterParams. Lock matching rows so no other transactions can read or write to it. | |
| rowLock | back to summary |
|---|---|
| private int rowLock | |
| SHARED_LOCK | back to summary |
|---|---|
| public static final FilterParams. Lock matching rows against updates. | |
| RowLock | back to summary |
|---|---|
| private RowLock(int rowLock) | |
| asNumber | back to summary |
|---|---|
| public int asNumber() Get the row lock type id.
| |
| valueOf | back to summary |
|---|---|
| public static FilterParams. | |
| values | back to summary |
|---|---|
| public static FilterParams. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FilterParams. | NOWAIT
Do not wait to acquire row lock, fail with an error if a requested row is locked. |
| private int | |
| public static final FilterParams. | SKIP_LOCKED
Do not wait to acquire a row lock, remove locked rows from the result set. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static FilterParams. | |
| public static FilterParams. |
| NOWAIT | back to summary |
|---|---|
| public static final FilterParams. Do not wait to acquire row lock, fail with an error if a requested row is locked. | |
| rowLockOption | back to summary |
|---|---|
| private int rowLockOption | |
| SKIP_LOCKED | back to summary |
|---|---|
| public static final FilterParams. Do not wait to acquire a row lock, remove locked rows from the result set. | |
| RowLockOptions | back to summary |
|---|---|
| private RowLockOptions(int rowLockOption) | |
| asNumber | back to summary |
|---|---|
| public int asNumber() Get the row lock option id.
| |
| valueOf | back to summary |
|---|---|
| public static FilterParams. | |
| values | back to summary |
|---|---|
| public static FilterParams. | |