Class ItemCoverParser
java.lang.Object
be.gaudry.model.file.AbstractFileParser<Long>
be.gaudry.bibliobrol.dao.derby.tools.ImagesDirectoryParser
be.gaudry.bibliobrol.dao.derby.tools.ItemCoverParser
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
- Since:
- 1.0 Feb 03, 2009
- Author:
- Steph GAUDRY
-
Field Summary
Fields inherited from class be.gaudry.model.file.AbstractFileParser
validPreviousProgress
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
confirmReplacement(File file, int id)
Override this method if you want to display some GUI confirmation.Returns the query to load the identifiers from a database table for which * an associated image is found (conflict).
The general contract ofgetSelectConflictIdsQuery
is that the first column of the results is the identifier value asINTEGER
SQL data type.
Example of query:Returns the query to load the identifiers from a database table for which there is not yet an associated image.
The general contract ofgetSelectConflictIdsQuery
is that the first column of the results is the identifier value asINTEGER
SQL data type.
Example of query:Methods inherited from class be.gaudry.bibliobrol.dao.derby.tools.ImagesDirectoryParser
parse, performOnFile, readIds
Methods inherited from class be.gaudry.model.file.AbstractFileParser
equals, finalize, getProgressMax, getStartPath, hashCode, init, isIncludeHiddenFiles, isIncludeSubFolders, isPauseProcessing, isPreCalcProgress, isPreCalculated, parseFiles, performOnDirectory, propertyChange, setIncludeHiddenFiles, setIncludeSubFolders, setLanguage, setPreCalcProgress, setStartPath, togglePause
-
Constructor Details
-
ItemCoverParser
public ItemCoverParser()
-
-
Method Details
-
confirmReplacement
Description copied from class:ImagesDirectoryParser
Override this method if you want to display some GUI confirmation.- Specified by:
confirmReplacement
in classImagesDirectoryParser
- Parameters:
file
- possible matching file.id
- matching id, but with an existing file.- Returns:
- always
false
in this basic implementation.
-
getInsertImageStatement
- Specified by:
getInsertImageStatement
in classImagesDirectoryParser
- Returns:
- the insertImageStatement
-
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 ofgetSelectConflictIdsQuery
is that the first column of the results is the identifier value asINTEGER
SQL data type.
Example of query:SELECT itemId FROM item WHERE itemImage IS NOT NULL
- Specified by:
getSelectConflictIdsQuery
in classImagesDirectoryParser
- Returns:
- the selectConflictIdsQuery
-
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 ofgetSelectConflictIdsQuery
is that the first column of the results is the identifier value asINTEGER
SQL data type.
Example of query:SELECT itemId FROM item WHERE itemImage IS NULL
- Specified by:
getSelectMatchingIdsQuery
in classImagesDirectoryParser
- Returns:
- the selectMatchingIdsQuery
-
getUpdateImageStatement
- Specified by:
getUpdateImageStatement
in classImagesDirectoryParser
- Returns:
- the updateImageStatement
-