public class ZMoDB extends Object
| 构造器和说明 |
|---|
ZMoDB(com.mongodb.DB db) |
| 限定符和类型 | 方法和说明 |
|---|---|
ZMoCo |
c(String name)
获取集合,如果集合不存在,则抛错
|
ZMoCo |
cc(String name,
boolean dropIfExists)
获取一个集合,如果集合不存在,就创建它
|
boolean |
cExists(String name)
是否存在某个集合
|
void |
cleanCursors(boolean force)
已过时。
|
Set<String> |
cNames() |
ZMoCo |
createCollection(String name,
ZMoDoc options)
创建一个集合
|
com.mongodb.DB |
getNativeDB() |
public ZMoCo cc(String name, boolean dropIfExists)
name - 集合名dropIfExists - true 如果存在就清除public boolean cExists(String name)
name - 集合名public ZMoCo createCollection(String name, ZMoDoc options)
name - 集合名options - 集合配置信息@Deprecated public void cleanCursors(boolean force)
force - 是否强制public com.mongodb.DB getNativeDB()
Copyright © 2021. All rights reserved.