Class SQLiteClosable

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLiteClosable()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 reference was 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 reference was released.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLiteClosable

        SQLiteClosable()
    • Method Detail

      • releaseReference

         void releaseReference()

        Releases a reference to the object, closing the object if the last reference was 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 reference was released. Calling this method is equivalent to calling releaseReference.