if (StringUtils.isEmpty(getName()))
{
throw new DatabaseException(messages.databaseInvalidNameDBError(getName()));
}
IDBDeleteDBRequest deleteDatabase = IDBFactory.get().deleteDatabase(getName());
deleteDatabase.onSuccess(new IDBDatabaseDeleteEvent.Handler()
{
@Override
public void onDelete(IDBDatabaseDeleteEvent event)
{
db = null;