Package com.db4o.io

Interface Storage

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String uri)
      Deletes the bin for the given URI from the storage.
      boolean exists​(java.lang.String uri)
      returns true if a Bin (file or memory) exists with the passed name.
      Bin open​(BinConfiguration config)
      opens a Bin to store db4o database data.
      void rename​(java.lang.String oldUri, java.lang.String newUri)
      Renames the bin for the given old URI to the new URI.
    • Method Detail

      • exists

        boolean exists​(java.lang.String uri)
        returns true if a Bin (file or memory) exists with the passed name.
      • delete

        void delete​(java.lang.String uri)
             throws java.io.IOException
        Deletes the bin for the given URI from the storage.
        Parameters:
        uri - bin URI
        Throws:
        java.io.IOException - if the bin could not be deleted
        Since:
        7.9
      • rename

        void rename​(java.lang.String oldUri,
                    java.lang.String newUri)
             throws java.io.IOException
        Renames the bin for the given old URI to the new URI. If a bin for the new URI exists, it will be overwritten.
        Parameters:
        oldUri - URI of the existing bin
        newUri - future URI of the bin
        Throws:
        java.io.IOException - if the bin could not be deleted
        Since:
        7.9