public abstract class BaseMongoDao<T extends MongoModel> extends Object implements MongoDao<T>
| Constructor and Description |
|---|
BaseMongoDao(List<MongoServer> serverList) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MongoResultSet<T> |
findByCondition(Condition cdt) |
T |
findOneByCondition(Condition cdt) |
T |
getByMongoId(String Id) |
void |
insert(T obj) |
void |
insertOrUpdate(Condition cdt,
Condition opt) |
void |
updateAll(Condition cdt,
Condition opt) |
void |
updateOne(Condition cdt,
Condition opt) |
public BaseMongoDao(List<MongoServer> serverList)
public void close()
close in interface MongoDao<T extends MongoModel>public void insert(T obj) throws IllegalArgumentException, IllegalAccessException
insert in interface MongoDao<T extends MongoModel>IllegalArgumentExceptionIllegalAccessExceptionpublic T getByMongoId(String Id) throws InstantiationException, IllegalAccessException
getByMongoId in interface MongoDao<T extends MongoModel>InstantiationExceptionIllegalAccessExceptionpublic T findOneByCondition(Condition cdt) throws InstantiationException, IllegalAccessException
findOneByCondition in interface MongoDao<T extends MongoModel>InstantiationExceptionIllegalAccessExceptionpublic MongoResultSet<T> findByCondition(Condition cdt) throws IllegalArgumentException, IllegalAccessException
findByCondition in interface MongoDao<T extends MongoModel>IllegalArgumentExceptionIllegalAccessExceptionpublic void insertOrUpdate(Condition cdt, Condition opt) throws IllegalArgumentException, IllegalAccessException
insertOrUpdate in interface MongoDao<T extends MongoModel>IllegalArgumentExceptionIllegalAccessExceptionpublic void updateOne(Condition cdt, Condition opt) throws IllegalArgumentException, IllegalAccessException
updateOne in interface MongoDao<T extends MongoModel>IllegalArgumentExceptionIllegalAccessExceptionpublic void updateAll(Condition cdt, Condition opt) throws IllegalArgumentException, IllegalAccessException
updateAll in interface MongoDao<T extends MongoModel>IllegalArgumentExceptionIllegalAccessExceptionCopyright © 2019. All rights reserved.