me.wuwenbin.modules.mongodb.support.bo.MongoContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of template-modules-mongodb Show documentation
Show all versions of template-modules-mongodb Show documentation
提供对mongo数据源的高级操作,针对多数据源mongo和集群mongo
package me.wuwenbin.modules.mongodb.support.bo;
/**
* Created by wuwenbin on 2017/5/4.
*/
public class MongoContext {
private String key;
private String database;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getDatabase() {
return database;
}
public void setDatabase(String database) {
this.database = database;
}
public static MongoContext create(String key, String database) {
MongoContext mongoContext = new MongoContext();
mongoContext.setKey(key);
mongoContext.setDatabase(database);
return mongoContext;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy