-
- 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 voidacquireReference()Acquires a reference to the object. voidreleaseReference()Releases a reference to the object, closing the object if the last referencewas released. voidclose()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.
-
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.
-
-
-
-