-
- All Implemented Interfaces:
-
java.io.Closeable
,java.lang.AutoCloseable
public abstract class SQLiteClosable implements Closeable
An object created from a SQLiteDatabase that can be closed. This class implements a primitive reference counting scheme for database objects.
-
-
Method Summary
Modifier and Type Method Description void
acquireReference()
Acquires a reference to the object. void
releaseReference()
Releases a reference to the object, closing the object if the last referencewas released. void
releaseReferenceFromContainer()
Releases a reference to the object that was owned by the container of the object,closing the object if the last reference was released. void
close()
Releases a reference to the object, closing the object if the last referencewas released. -
-
Method Detail
-
acquireReference
void acquireReference()
Acquires a reference to the object.
-
releaseReference
void releaseReference()
Releases a reference to the object, closing the object if the last referencewas released.
-
releaseReferenceFromContainer
@Deprecated() void releaseReferenceFromContainer()
Releases a reference to the object that was owned by the container of the object,closing the object if the last reference was released.
-
close
void close()
Releases a reference to the object, closing the object if the last referencewas released.Calling this method is equivalent to calling releaseReference.
-
-
-
-