Package org.apache.openjpa.jdbc.meta
Class RefreshStrategyInstaller
- java.lang.Object
-
- org.apache.openjpa.jdbc.meta.StrategyInstaller
-
- org.apache.openjpa.jdbc.meta.RefreshStrategyInstaller
-
- All Implemented Interfaces:
java.io.Serializable
public class RefreshStrategyInstaller extends StrategyInstaller
Attempts to install using the given mapping information. If that fails, clears the mapping information and constructs new mappings.- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.openjpa.jdbc.meta.StrategyInstaller
repos
-
-
Constructor Summary
Constructors Constructor Description RefreshStrategyInstaller(MappingRepository repos)
Constructor; supply configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
installStrategy(ClassMapping cls)
Install a strategy on the given mapping.void
installStrategy(Discriminator discrim)
Install a strategy on the given mapping.void
installStrategy(FieldMapping field)
Install a strategy on the given mapping.void
installStrategy(Version version)
Install a strategy on the given mapping.boolean
isAdapting()
Return whether this installer adapts the given mapping data and schema, vs requiring that all information be supplied correctly.
-
-
-
Constructor Detail
-
RefreshStrategyInstaller
public RefreshStrategyInstaller(MappingRepository repos)
Constructor; supply configuration.
-
-
Method Detail
-
isAdapting
public boolean isAdapting()
Description copied from class:StrategyInstaller
Return whether this installer adapts the given mapping data and schema, vs requiring that all information be supplied correctly.- Overrides:
isAdapting
in classStrategyInstaller
-
installStrategy
public void installStrategy(ClassMapping cls)
Description copied from class:StrategyInstaller
Install a strategy on the given mapping.- Specified by:
installStrategy
in classStrategyInstaller
-
installStrategy
public void installStrategy(FieldMapping field)
Description copied from class:StrategyInstaller
Install a strategy on the given mapping.- Specified by:
installStrategy
in classStrategyInstaller
-
installStrategy
public void installStrategy(Version version)
Description copied from class:StrategyInstaller
Install a strategy on the given mapping.- Specified by:
installStrategy
in classStrategyInstaller
-
installStrategy
public void installStrategy(Discriminator discrim)
Description copied from class:StrategyInstaller
Install a strategy on the given mapping.- Specified by:
installStrategy
in classStrategyInstaller
-
-