Skip to content

Commit

Permalink
Add Database#isOpen(). Closes #700.
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed Jun 12, 2017
1 parent 59c6658 commit e31d7c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public interface Database {

boolean isDbLockedByCurrentThread();

boolean isOpen();

void close();

Object getRawDatabase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public boolean isDbLockedByCurrentThread() {
return delegate.isDbLockedByCurrentThread();
}

@Override
public boolean isOpen() {
return delegate.isOpen();
}

@Override
public void close() {
delegate.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public boolean isDbLockedByCurrentThread() {
return delegate.isDbLockedByCurrentThread();
}

@Override
public boolean isOpen() {
return delegate.isOpen();
}

@Override
public void close() {
delegate.close();
Expand Down

0 comments on commit e31d7c0

Please sign in to comment.