Class HibernateFileSystemLibraryLoader

    • Constructor Detail

      • HibernateFileSystemLibraryLoader

        public HibernateFileSystemLibraryLoader​(HibernateMediaLibrary<?> library)
    • Method Detail

      • load

        public MediaLibraryEvent load​(LibraryDescriptor libraryDescriptor,
                                      ProgressListener progressListener,
                                      boolean full)
                               throws Exception
        Description copied from class: LibraryLoader
        Implement this method to establish the actual loading process. Do not call this method yourself. It will be called by AbstractMediaLibrary.
        Specified by:
        load in class LibraryLoader
        libraryDescriptor - describes the library we are supposed to load
        progressListener - progress listener to notify of progress @see #load(com.tagtraum.core.ProgressListener, javax.swing.JDialog)
        full - attempt full synchronization no matter what
        event object describing the load results
        Exception - if something went wrong
      • addSongs

        public long[] addSongs​(AudioSong... audioSongs)
        Adds audio song to database. Fails silently.
        audioSongs - audioSongs to add
        new ids or null in case of failure