Class SkipExistingTargetFileStrategy
java.lang.Object
org.apache.torque.generator.control.existingtargetstrategy.ReplaceTargetFileStrategy
org.apache.torque.generator.control.existingtargetstrategy.SkipExistingTargetFileStrategy
- All Implemented Interfaces:
ExistingTargetStrategy
A handler which implements the strategy to skip existing target files.
- Version:
- $Id: SkipExistingTargetFileStrategy.java 1917241 2024-04-21 13:29:41Z tv $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeforeGeneration(String outputDirKey, String outputPath, Charset charSet, UnitConfiguration unitConfiguration) Will be called before the generation is started and decides whether the generation process for this file should proceed.Returns the name of the existing target strategy.Methods inherited from class org.apache.torque.generator.control.existingtargetstrategy.ReplaceTargetFileStrategy
afterGeneration
-
Field Details
-
STRATEGY_NAME
The strategy name "skip".- See Also:
-
-
Constructor Details
-
SkipExistingTargetFileStrategy
public SkipExistingTargetFileStrategy()
-
-
Method Details
-
beforeGeneration
public boolean beforeGeneration(String outputDirKey, String outputPath, Charset charSet, UnitConfiguration unitConfiguration) Will be called before the generation is started and decides whether the generation process for this file should proceed.- Specified by:
beforeGenerationin interfaceExistingTargetStrategy- Overrides:
beforeGenerationin classReplaceTargetFileStrategy- Parameters:
outputDirKey- the key for the output directory into which the generated file should be written, null for the default output directory.outputPath- the path to which the output should be written, relative to the output base directory.charSet- The character encoding of the generated file, or null for the platform default encoding.unitConfiguration- the configuration of the current configuration unit, not null.- Returns:
- true if the target file does not exist, false otherwise.
-
getStrategyName
Returns the name of the existing target strategy.- Specified by:
getStrategyNamein interfaceExistingTargetStrategy- Overrides:
getStrategyNamein classReplaceTargetFileStrategy- Returns:
- "skip"
-