public abstract class SQLiteClosable extends Object implements Closeable
Constructor and Description |
---|
SQLiteClosable() |
Modifier and Type | Method and Description |
---|---|
void |
acquireReference()
Acquires a reference to the object.
|
void |
close()
Releases a reference to the object, closing the object if the last reference
was released.
|
protected abstract void |
onAllReferencesReleased()
Called when the last reference to the object was released by
a call to
releaseReference() or close() . |
protected void |
onAllReferencesReleasedFromContainer()
Deprecated.
Do not use.
|
void |
releaseReference()
Releases a reference to the object, closing the object if the last reference
was released.
|
void |
releaseReferenceFromContainer()
Deprecated.
Do not use.
|
protected abstract void onAllReferencesReleased()
releaseReference()
or close()
.@Deprecated protected void onAllReferencesReleasedFromContainer()
releaseReferenceFromContainer()
.public void acquireReference()
IllegalStateException
- if the last reference to the object has already
been released.public void releaseReference()
onAllReferencesReleased()
@Deprecated public void releaseReferenceFromContainer()
public void close()
releaseReference()
.close
in interface Closeable
close
in interface AutoCloseable
releaseReference()
,
onAllReferencesReleased()