org.jtheque.core.managers.patch
Interface Patch


public interface Patch

A patch.

Author:
Baptiste Wicht

Method Summary
 int apply()
          Apply the patch.
 java.lang.String getName()
          Return the name of the patch. .
 boolean hasAlreadyBeenApplied()
          Indicate if the patch has already been applied or not.
 boolean mustBeAppliedFor(org.jtheque.utils.bean.Version version)
          Indicate if the patch must be applied for a specific version of JTheque.
 

Method Detail

mustBeAppliedFor

boolean mustBeAppliedFor(org.jtheque.utils.bean.Version version)
Indicate if the patch must be applied for a specific version of JTheque.

Parameters:
version - The version of JTheque.
Returns:
true if the patch must be applied for this versioin else false.

hasAlreadyBeenApplied

boolean hasAlreadyBeenApplied()
Indicate if the patch has already been applied or not.

Returns:
true if the patch has already been applied.

apply

int apply()
Apply the patch.

Returns:
The apply code.

getName

java.lang.String getName()
Return the name of the patch. .

Returns:
The name of the patch.


Copyright © 2009 JTheque. All Rights Reserved.