public class MongoRuntime extends Object implements DataRuntime
| 限定符和类型 | 字段和说明 |
|---|---|
protected DriverAdapter |
adapter |
protected com.mongodb.client.MongoClient |
client |
protected com.mongodb.client.MongoDatabase |
database |
protected String |
feature
运行环境特征 如jdbc-url
用来匹配 DriverAdapter
|
protected RuntimeHolder |
holder |
protected String |
version
运行环境版本 用来匹配 DriverAdapter
|
| 构造器和说明 |
|---|
MongoRuntime() |
MongoRuntime(String key,
com.mongodb.client.MongoClient client,
com.mongodb.client.MongoDatabase database,
DriverAdapter adapter) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.mongodb.client.MongoClient |
client() |
String |
datasource() |
DriverAdapter |
getAdapter() |
com.mongodb.client.MongoDatabase |
getDatabase() |
String |
getFeature() |
RuntimeHolder |
getHolder() |
String |
getKey() |
Object |
getProcessor() |
String |
getVersion() |
void |
setAdapter(DriverAdapter adapter) |
void |
setClient(com.mongodb.client.MongoClient client) |
void |
setDatabase(com.mongodb.client.MongoDatabase database) |
void |
setFeature(String feature) |
void |
setHolder(RuntimeHolder holder) |
void |
setKey(String key) |
void |
setProcessor(Object processor) |
void |
setVersion(String version) |
protected String feature
protected String version
protected DriverAdapter adapter
protected com.mongodb.client.MongoClient client
protected com.mongodb.client.MongoDatabase database
protected RuntimeHolder holder
public MongoRuntime()
public MongoRuntime(String key, com.mongodb.client.MongoClient client, com.mongodb.client.MongoDatabase database, DriverAdapter adapter)
public void setFeature(String feature)
setFeature 在接口中 DataRuntimepublic void setVersion(String version)
setVersion 在接口中 DataRuntimepublic String getKey()
getKey 在接口中 DataRuntimepublic void setKey(String key)
setKey 在接口中 DataRuntimepublic Object getProcessor()
getProcessor 在接口中 DataRuntimepublic void setProcessor(Object processor)
setProcessor 在接口中 DataRuntimepublic DriverAdapter getAdapter()
getAdapter 在接口中 DataRuntimepublic String datasource()
datasource 在接口中 DataRuntimepublic void setAdapter(DriverAdapter adapter)
setAdapter 在接口中 DataRuntimepublic com.mongodb.client.MongoClient client()
public String getFeature()
getFeature 在接口中 DataRuntimepublic void setClient(com.mongodb.client.MongoClient client)
public com.mongodb.client.MongoDatabase getDatabase()
public void setDatabase(com.mongodb.client.MongoDatabase database)
public String getVersion()
getVersion 在接口中 DataRuntimepublic RuntimeHolder getHolder()
getHolder 在接口中 DataRuntimepublic void setHolder(RuntimeHolder holder)
setHolder 在接口中 DataRuntimeCopyright © 2023. All rights reserved.