public class BootstrapMongodb extends Object implements Bootstrap
| 构造器和说明 |
|---|
BootstrapMongodb(ConfigurationNosql configurationMongodb) |
BootstrapMongodb(Object id,
ConfigurationNosql configurationNosql) |
| 限定符和类型 | 方法和说明 |
|---|---|
Aggregate |
aggregate(String tableName) |
void |
close() |
DataInfomation |
dataInformation() |
Map<Object,Object> |
getThreadLocal() |
String |
lastCommand() |
Manager<MongoDBTemplate> |
manager() |
<T> QueryEntity |
query(Collection<T> entities) |
<T> QueryEntity |
query(T entry) |
<T extends Map<String,Object>> |
queryMap(String tableName,
Collection<T> maps)
* If you don't want to generate entity classes, another option is to
manipulate the map instance,
QueryMap provides Add and delete
operations are provided. |
<T extends Map<String,Object>> |
queryMap(String tableName,
T map) |
<T> QueryTable |
queryTable(Class<T> cls) |
QueryTable |
queryTable(String tableName)
Operating collection
|
public BootstrapMongodb(ConfigurationNosql configurationMongodb)
public BootstrapMongodb(Object id, ConfigurationNosql configurationNosql)
public <T extends Map<String,Object>> QueryMap queryMap(String tableName, Collection<T> maps)
BootstrapQueryMap provides Add and delete
operations are provided.public <T> QueryEntity query(Collection<T> entities)
public <T> QueryEntity query(T entry)
public QueryTable queryTable(String tableName)
BootstrapqueryTable 在接口中 BootstraptableName - - The name of the collection(table)public <T> QueryTable queryTable(Class<T> cls)
queryTable 在接口中 Bootstrapcls - - Entity class typeQueryTableBootstrap.queryTable(String)public Manager<MongoDBTemplate> manager()
public DataInfomation dataInformation()
dataInformation 在接口中 Bootstrappublic void close()
close 在接口中 AutoCloseableclose 在接口中 Bootstrappublic String lastCommand()
lastCommand 在接口中 BootstrapCopyright © 2023. All rights reserved.