public class DefaultDatabaseHandler extends Object implements DatabaseHandler
Constructor and Description |
---|
DefaultDatabaseHandler(DatabaseFactory databaseFactory,
DatabaseStorage databaseStorage) |
Modifier and Type | Method and Description |
---|---|
void |
closeJcouchdb() |
void |
closeJcouchdb(String databaseName) |
<R> R |
withJcouchdb(DatabaseCallback<R> callback) |
<R> R |
withJcouchdb(String databaseName,
DatabaseCallback<R> callback) |
@Inject public DefaultDatabaseHandler(@Nonnull DatabaseFactory databaseFactory, @Nonnull DatabaseStorage databaseStorage)
@Nullable public <R> R withJcouchdb(@Nonnull DatabaseCallback<R> callback)
withJcouchdb
in interface DatabaseHandler
@Nullable public <R> R withJcouchdb(@Nonnull String databaseName, @Nonnull DatabaseCallback<R> callback)
withJcouchdb
in interface DatabaseHandler
public void closeJcouchdb()
closeJcouchdb
in interface DatabaseHandler
public void closeJcouchdb(@Nonnull String databaseName)
closeJcouchdb
in interface DatabaseHandler