Class AbstractHibernatePackageModule
java.lang.Object
com.foreach.across.core.context.AbstractAcrossEntity
com.foreach.across.core.AcrossModule
com.foreach.across.modules.hibernate.AbstractHibernatePackageModule
- All Implemented Interfaces:
- com.foreach.across.core.context.AcrossEntity,- com.foreach.across.core.context.AcrossModuleEntity
- Direct Known Subclasses:
- AcrossHibernateJpaModule,- AcrossHibernateModule
public abstract class AbstractHibernatePackageModule
extends com.foreach.across.core.AcrossModule
- 
Field SummaryFields inherited from class com.foreach.across.core.AcrossModuleCURRENT_MODULE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddHibernatePackageProvider(HibernatePackageProvider... hibernatePackageProvider) Create the specific settings implementation instance for property binding.Get the datasource associated directly with this module.The initial name of the datasource bean that the entity manager should use.Returns the set of HibernatePackageProvider instances configured directly on this module.booleanIf true this module will scan other modules to see if they implement the HibernatePackageConfiguringModule interface.voidsetDataSource(DataSource dataSource) Set the datasource that all entities managed by this module should use.voidsetDataSourceName(String dataSourceName) The initial name of the datasource bean that the entity manager should use.voidsetHibernatePackageProviders(Set<HibernatePackageProvider> hibernatePackageProviders) voidsetHibernateProperties(Map<String, String> hibernateProperties) voidsetHibernateProperty(String name, String value) protected final voidsetPropertiesPrefix(String propertiesPrefix) Set a custom properties prefix that should be used for this module.voidsetScanForHibernatePackages(boolean scanForHibernatePackages) Methods inherited from class com.foreach.across.core.AcrossModuleaddApplicationContextConfigurer, addApplicationContextConfigurer, addInstallerContextConfigurer, addInstallerContextConfigurer, addPropertySources, addPropertySources, addRuntimeDependency, equals, expose, expose, exposeClass, getApplicationContextConfigurers, getContext, getDescription, getExposeFilter, getExposeTransformer, getExtensionTargets, getInstallerContextConfigurers, getInstallers, getInstallerScanPackages, getInstallerSettings, getModuleConfigurationScanPackages, getName, getResourcesKey, getRuntimeDependencies, getVersionInfo, hashCode, isEnabled, prepareForBootstrap, registerDefaultApplicationContextConfigurers, registerDefaultInstallerContextConfigurers, setContext, setEnabled, setExposeFilter, setExposeTransformer, setInstallerSettings, toStringMethods inherited from class com.foreach.across.core.context.AbstractAcrossEntityaddPropertySources, getAcrossApplicationContextHolder, getProperties, hasApplicationContext, setAcrossApplicationContextHolder, setProperties, setProperty
- 
Constructor Details- 
AbstractHibernatePackageModulepublic AbstractHibernatePackageModule()
 
- 
- 
Method Details- 
getPropertiesPrefix- Returns:
- prefix for the properties that should be considered when configuring this module
 
- 
setPropertiesPrefixSet a custom properties prefix that should be used for this module. Defaults to the uncapitalized module name when unspecified. Should be set during constructor of a custom module.- Parameters:
- propertiesPrefix- to use
 
- 
getDataSourceGet the datasource associated directly with this module.- Returns:
- Datasource associated with this module.
 
- 
setDataSourceSet the datasource that all entities managed by this module should use.- Parameters:
- dataSource- Datasource associated with this module.
 
- 
getHibernatePackageProvidersReturns the set of HibernatePackageProvider instances configured directly on this module.- Returns:
- Set of configured HibernatePackageProviders.
 
- 
setHibernatePackageProviders
- 
addHibernatePackageProvider
- 
isScanForHibernatePackagespublic boolean isScanForHibernatePackages()If true this module will scan other modules to see if they implement the HibernatePackageConfiguringModule interface.- Returns:
- True if modules will be scanned and activated automatically.
- See Also:
 
- 
setScanForHibernatePackagespublic void setScanForHibernatePackages(boolean scanForHibernatePackages) 
- 
createSettingsCreate the specific settings implementation instance for property binding. Override this method if a module wants to use an extended settings class.- Returns:
- a new instance for property binding
 
- 
getHibernateProperties
- 
setHibernateProperties
- 
setHibernateProperty
- 
getDataSourceNameThe initial name of the datasource bean that the entity manager should use. Can be overridden using properties and any explicitly attached instance (setDataSource(DataSource)) will always take precedence.
- 
setDataSourceNameThe initial name of the datasource bean that the entity manager should use. Can be overridden using properties and any explicitly attached instance (setDataSource(DataSource)) will always take precedence.
 
-