Class MapDBHandle

    • Constructor Detail

      • MapDBHandle

        public MapDBHandle​(@NonNull
                           @NonNull Resource resource,
                           boolean compressed)
        Instantiates a new MapDBHandle.
        Parameters:
        resource - the file containing the MapDB
        compressed - True if compression is used
    • Method Detail

      • commit

        public void commit()
        Commits changes made to the database
      • delete

        public void delete()
        Deletes the database files.
      • getBoolean

        public org.mapdb.Atomic.Boolean getBoolean​(String name)
        Gets the global boolean value with the given name
        Parameters:
        name - the name
        Returns:
        the boolean
      • getInteger

        public org.mapdb.Atomic.Integer getInteger​(String name)
        Gets global integer value with the given name.
        Parameters:
        name - the name
        Returns:
        the integer
      • getLong

        public org.mapdb.Atomic.Long getLong​(String name)
        Gets the global long value with the given name.
        Parameters:
        name - the name
        Returns:
        the long
      • getStore

        protected org.mapdb.DB getStore()
        Gets the database store object
        Returns:
        the store
      • getString

        public org.mapdb.Atomic.String getString​(String name)
        Gets the gloabl string value for the given name.
        Parameters:
        name - the name
        Returns:
        the string
      • getVar

        public <E> org.mapdb.Atomic.Var<E> getVar​(String name)
        Gets the global value of the given variable name.
        Type Parameters:
        E - the type parameter
        Parameters:
        name - the name
        Returns:
        the var
      • isClosed

        public boolean isClosed()
        Is closed.
        Returns:
        True if closed, False if not