Package | Description |
---|---|
com.salesforce.androidsdk.smartstore.store |
Modifier and Type | Method and Description |
---|---|
static QuerySpec |
QuerySpec.buildAllQuerySpec(java.lang.String soupName,
java.lang.String[] selectPaths,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return query spec for an all query
|
static QuerySpec |
QuerySpec.buildAllQuerySpec(java.lang.String soupName,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return query spec for an all query
|
static QuerySpec |
QuerySpec.buildExactQuerySpec(java.lang.String soupName,
java.lang.String[] selectPaths,
java.lang.String path,
java.lang.String exactMatchKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for an exact match query
|
static QuerySpec |
QuerySpec.buildExactQuerySpec(java.lang.String soupName,
java.lang.String path,
java.lang.String exactMatchKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for an exact match query
|
static QuerySpec |
QuerySpec.buildLikeQuerySpec(java.lang.String soupName,
java.lang.String[] selectPaths,
java.lang.String path,
java.lang.String likeKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for a like query
|
static QuerySpec |
QuerySpec.buildLikeQuerySpec(java.lang.String soupName,
java.lang.String path,
java.lang.String likeKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for a like query
|
static QuerySpec |
QuerySpec.buildMatchQuerySpec(java.lang.String soupName,
java.lang.String[] selectPaths,
java.lang.String path,
java.lang.String matchKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for a match query (full-text search)
|
static QuerySpec |
QuerySpec.buildMatchQuerySpec(java.lang.String soupName,
java.lang.String path,
java.lang.String matchKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for a match query (full-text search)
|
static QuerySpec |
QuerySpec.buildRangeQuerySpec(java.lang.String soupName,
java.lang.String[] selectPaths,
java.lang.String path,
java.lang.String beginKey,
java.lang.String endKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for a range query
|
static QuerySpec |
QuerySpec.buildRangeQuerySpec(java.lang.String soupName,
java.lang.String path,
java.lang.String beginKey,
java.lang.String endKey,
java.lang.String orderPath,
QuerySpec.Order order,
int pageSize)
Return a query spec for a range query
|
static QuerySpec |
QuerySpec.buildSmartQuerySpec(java.lang.String smartSql,
int pageSize)
Return a query spec for a smart query
|
static QuerySpec |
QuerySpec.fromJSON(java.lang.String soupName,
JSONObject querySpecJson) |
Modifier and Type | Method and Description |
---|---|
int |
SmartStore.countQuery(QuerySpec querySpec) |
void |
SmartStore.deleteByQuery(java.lang.String soupName,
QuerySpec querySpec)
Delete soup elements selected by querySpec (and commits)
|
void |
SmartStore.deleteByQuery(java.lang.String soupName,
QuerySpec querySpec,
boolean handleTx)
Delete soup elements selected by querySpec
|
JSONArray |
SmartStore.query(QuerySpec querySpec,
int pageIndex)
Run a query given by its query spec
Returns results from selected page
|
void |
SmartStore.queryAsString(java.lang.StringBuilder resultBuilder,
QuerySpec querySpec,
int pageIndex)
Run a query given by its query Spec
Returns results from selected page without deserializing any JSON
|
JSONArray |
SmartStore.queryWithArgs(QuerySpec querySpec,
int pageIndex,
java.lang.String... whereArgs)
Run a query given by its query spec with optional "where args" (i.e.
|
Constructor and Description |
---|
StoreCursor(SmartStore smartStore,
QuerySpec querySpec) |