Class SchemaCreator
java.lang.Object
org.jasig.portlet.attachment.util.SchemaCreator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SchemaCreator extends Object implements org.springframework.context.ApplicationContextAware
This tool is responsible for creating the SimpleCMS portlet database schema (and dropping
it first, if necessary). It leverages the org.hibernate:hibernate-tools library, but integrates
with SimpleCMS' Spring-managed ORM strategy and SimpleCMS' configuration features (esp.
encrypted properties). It is invokable from the command line with '$ java', but designed to be
integrated with build tools like Gradle.
-
Constructor Summary
Constructors Constructor Description SchemaCreator() -
Method Summary
Modifier and Type Method Description static voidmain(String[] args)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
SchemaCreator
public SchemaCreator()
-
-
Method Details
-
main
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-