public class BaseDao extends Object implements SimpleDao<DatabaseObject>
| Constructor and Description |
|---|
BaseDao(org.mongodb.morphia.Datastore datastore) |
| Modifier and Type | Method and Description |
|---|---|
<Type extends DatabaseObject> |
delete(String id,
Class<Type> typeClass) |
<Type extends DatabaseObject> |
get(String id,
Class<Type> typeClass) |
<Type extends DatabaseObject> |
query(Class<Type> typeClass) |
<Type extends DatabaseObject> |
save(Type object) |
public <Type extends DatabaseObject> io.reactivex.Maybe<Type> get(String id, Class<Type> typeClass)
get in interface SimpleDao<DatabaseObject>public <Type extends DatabaseObject> io.reactivex.Single<Type> save(Type object)
save in interface SimpleDao<DatabaseObject>public <Type extends DatabaseObject> io.reactivex.Completable delete(String id, Class<Type> typeClass)
delete in interface SimpleDao<DatabaseObject>public <Type extends DatabaseObject> Query<Type> query(Class<Type> typeClass)
query in interface SimpleDao<DatabaseObject>Copyright © 2019. All rights reserved.