Class Overview
Replaces functionality in the ConfluenceHibernateSetup for running schema actions against a database.
This implermentation is a Spring-ified object that can be created and managed by an IoC container
//FIX Note: Spring are introducing a static bean factory allowing use to remove the default constructor here
we should update this on the next release of spring
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
String
COMPONENT_REFERENCE
Constant Value:
"schemaHelper"
Public Constructors
Public Methods
public
void
addMappingResources
(List mappings)
public
void
createTables
()
public
void
dropTables
()
public
Configuration
getConfiguration
()
public
void
recreateDatabase
()
public
void
setConfiguration
(Configuration configuration)
Parameters
| configuration
| The config to set.
|
public
void
setHibernateConfig
(HibernateConfig hibernateConfig)
public
void
setHibernateProperties
(Properties props)
public
void
setMappingResources
(MappingResources mappings)
Parameters
| mappings
| The mappings to set.
|
public
void
updateSchemaIfNeeded
(boolean showDDL)
Parameters
| showDDL
| - false will output DDL to stdout |
public
void
updateSchemaIfNeeded
()
If there are any updates to the Schema needed, do them.
public
void
validateSchemaUpdateIfNeeded
()