Class PersonPictureParser
java.lang.Object
be.gaudry.model.file.AbstractFileParser<Long>
be.gaudry.bibliobrol.dao.derby.tools.ImagesDirectoryParser
be.gaudry.bibliobrol.dao.derby.tools.PersonPictureParser
- All Implemented Interfaces:
PropertyChangeListener,EventListener
- Since:
- 1.0 3 févr. 2009
- Author:
- Steph GAUDRY
- See Also:
ImagesDirectoryParser
-
Field Summary
Fields inherited from class be.gaudry.model.file.AbstractFileParser
validPreviousProgress -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconfirmReplacement(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 ofgetSelectConflictIdsQueryis that the first column of the results is the identifier value asINTEGERSQL 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 ofgetSelectConflictIdsQueryis that the first column of the results is the identifier value asINTEGERSQL data type.
Example of query:Methods inherited from class be.gaudry.bibliobrol.dao.derby.tools.ImagesDirectoryParser
parse, performOnFile, readIdsMethods 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
-
PersonPictureParser
public PersonPictureParser()
-
-
Method Details
-
confirmReplacement
Description copied from class:ImagesDirectoryParserOverride this method if you want to display some GUI confirmation.- Specified by:
confirmReplacementin classImagesDirectoryParser- Parameters:
file- possible matching file.id- matching id, but with an existing file.- Returns:
- always
falsein this basic implementation.
-
getInsertImageStatement
- Specified by:
getInsertImageStatementin classImagesDirectoryParser- Returns:
- the insertImageStatement
-
getSelectConflictIdsQuery
Description copied from class:ImagesDirectoryParserReturns the query to load the identifiers from a database table for which * an associated image is found (conflict).
The general contract ofgetSelectConflictIdsQueryis that the first column of the results is the identifier value asINTEGERSQL data type.
Example of query:SELECT itemId FROM item WHERE itemImage IS NOT NULL
- Specified by:
getSelectConflictIdsQueryin classImagesDirectoryParser- Returns:
- the selectConflictIdsQuery
-
getSelectMatchingIdsQuery
Description copied from class:ImagesDirectoryParserReturns the query to load the identifiers from a database table for which there is not yet an associated image.
The general contract ofgetSelectConflictIdsQueryis that the first column of the results is the identifier value asINTEGERSQL data type.
Example of query:SELECT itemId FROM item WHERE itemImage IS NULL
- Specified by:
getSelectMatchingIdsQueryin classImagesDirectoryParser- Returns:
- the selectMatchingIdsQuery
-
getUpdateImageStatement
- Specified by:
getUpdateImageStatementin classImagesDirectoryParser- Returns:
- the updateImageStatement
-