CURDB : object
查询
Kind: global namespace
- CURDB :
object- .queryByDQL(dql) ⇒
Collection.<Document> - .queryByDQLWithCache(dql) ⇒
Collection.<Document> - .findByDQL(dql) ⇒
Document - .findBySQL(sql) ⇒
Document - .queryByDQLDomain(dql, domainName) ⇒
Collection.<Document> - .countByDQL(dql) ⇒
Integer - .countBySQL(sql) ⇒
Integer - .sumByDQL(dql, fieldName) ⇒
Double - .sumBySQL(sql, fieldName) ⇒
Double - .queryBySQL(sql) ⇒
Collection.<Document> - .queryBySQLWithCache(sql) ⇒
Collection.<Document> - .findBySQLWithCache(sql) ⇒
Document
- .queryByDQL(dql) ⇒
CURDB.queryByDQL(dql) ⇒ Collection.<Document>
根据dql查询符合条件的Document
Kind: static method of CURDB
Returns: Collection.<Document> - Document集合
| Param | Type | Description |
|---|---|---|
| dql | String |
dql查询符合条件语句 |
CURDB.queryByDQLWithCache(dql) ⇒ Collection.<Document>
根据dql(带缓存)查询符合条件的Document,结果以Collection返回
Kind: static method of CURDB
Returns: Collection.<Document> - Document集合
| Param | Type | Description |
|---|---|---|
| dql | String |
dql查询符合条件语句 |
CURDB.findByDQL(dql) ⇒ Document
根据DQL获取文档
Kind: static method of CURDB
Returns: Document - 根据DQL获取文档
| Param | Type | Description |
|---|---|---|
| dql | String |
dql查询符合条件语句 |
CURDB.findBySQL(sql) ⇒ Document
根据SQL获取文档
Kind: static method of CURDB
Returns: Document - 根据SQL获取文档
| Param | Type | Description |
|---|---|---|
| sql | String |
sql查询符合条件语句 |
CURDB.queryByDQLDomain(dql, domainName) ⇒ Collection.<Document>
根据dql和域名查询符合条件的Document,结果以Collection返回
Kind: static method of CURDB
Returns: Collection.<Document> - Document集合
| Param | Type | Description |
|---|---|---|
| dql | String |
dql查询符合条件语句 |
| domainName | 企业域名称 |
CURDB.countByDQL(dql) ⇒ Integer
根据dql统计符合条件的Document数量
Kind: static method of CURDB
Returns: Integer - 统计数量
| Param | Type | Description |
|---|---|---|
| dql | String |
dql查询符合条件语句 |
CURDB.countBySQL(sql) ⇒ Integer
根据SQL汇总记录数
Kind: static method of CURDB
Returns: Integer - 返回统计结果
| Param | Type | Description |
|---|---|---|
| sql | String |
SQL查询语句 |
CURDB.sumByDQL(dql, fieldName) ⇒ Double
根据dql汇总符合条件的Document的指定字段
Kind: static method of CURDB
Returns: Double - 返回统计结果
| Param | Type | Description |
|---|---|---|
| dql | String |
dql查询符合条件语句 |
| fieldName | String |
文档的字段名 |
CURDB.sumBySQL(sql, fieldName) ⇒ Double
根据sql汇总符合条件的Document的指定字段
Kind: static method of CURDB
Returns: Double - 返回统计结果
| Param | Type | Description |
|---|---|---|
| sql | String |
sql查询符合条件语句 |
| fieldName | String |
文档的字段名 |
CURDB.queryBySQL(sql) ⇒ Collection.<Document>
根据sql查询符合条件的Document,结果以Collection返回
Kind: static method of CURDB
Returns: Collection.<Document> - 根据sql查询符合条件的Document,结果以Collection返回
| Param | Type | Description |
|---|---|---|
| sql | String |
查询语句参数 |
CURDB.queryBySQLWithCache(sql) ⇒ Collection.<Document>
根据sql(带缓存)查询符合条件的Document,结果以Collection返回
Kind: static method of CURDB
Returns: Collection.<Document> - 根据sql查询符合条件的Document,结果以Collection返回
| Param | Type | Description |
|---|---|---|
| sql | String |
查询语句参数 |
CURDB.findBySQLWithCache(sql) ⇒ Document
根据sql(带缓存)查询符合条件的Document,结果以Document返回
Kind: static method of CURDB
Returns: Document - 根据sql查询符合条件的Document,单条返回
| Param | Type | Description |
|---|---|---|
| sql | String |
查询语句参数 |