Class ItemCoverParser

All Implemented Interfaces:
PropertyChangeListener, EventListener

public class ItemCoverParser extends ImagesDirectoryParser
Since:
1.0 Feb 03, 2009
Author:
Steph GAUDRY
  • Constructor Details

    • ItemCoverParser

      public ItemCoverParser()
  • Method Details

    • confirmReplacement

      protected boolean confirmReplacement(File file, int id)
      Description copied from class: ImagesDirectoryParser
      Override this method if you want to display some GUI confirmation.
      Specified by:
      confirmReplacement in class ImagesDirectoryParser
      Parameters:
      file - possible matching file.
      id - matching id, but with an existing file.
      Returns:
      always false in this basic implementation.
    • getInsertImageStatement

      public PreparedStatement getInsertImageStatement()
      Specified by:
      getInsertImageStatement in class ImagesDirectoryParser
      Returns:
      the insertImageStatement
    • getSelectConflictIdsQuery

      public String getSelectConflictIdsQuery()
      Description copied from class: ImagesDirectoryParser
      Returns the query to load the identifiers from a database table for which * an associated image is found (conflict).
      The general contract of getSelectConflictIdsQuery is that the first column of the results is the identifier value as INTEGER SQL data type.
      Example of query:
       SELECT itemId FROM item WHERE itemImage IS NOT NULL
       
      Specified by:
      getSelectConflictIdsQuery in class ImagesDirectoryParser
      Returns:
      the selectConflictIdsQuery
    • getSelectMatchingIdsQuery

      public String getSelectMatchingIdsQuery()
      Description copied from class: ImagesDirectoryParser
      Returns the query to load the identifiers from a database table for which there is not yet an associated image.
      The general contract of getSelectConflictIdsQuery is that the first column of the results is the identifier value as INTEGER SQL data type.
      Example of query:
       SELECT itemId FROM item WHERE itemImage IS NULL
       
      Specified by:
      getSelectMatchingIdsQuery in class ImagesDirectoryParser
      Returns:
      the selectMatchingIdsQuery
    • getUpdateImageStatement

      public PreparedStatement getUpdateImageStatement()
      Specified by:
      getUpdateImageStatement in class ImagesDirectoryParser
      Returns:
      the updateImageStatement