public class SchemaBootstrap
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
Constructor and Description |
---|
SchemaBootstrap() |
Modifier and Type | Method and Description |
---|---|
protected void |
createDBTables()
Execute database creation script.
|
protected void |
executeSript(org.springframework.core.io.Resource resourceScript) |
void |
init() |
protected boolean |
isDBInitialized() |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent arg0) |
protected void |
onShutdown(org.springframework.context.ApplicationEvent arg0) |
void |
setCreationScript(String creationScript) |
void |
setDataSource(org.apache.commons.dbcp.BasicDataSource dataSource) |
public void init()
protected void onBootstrap(org.springframework.context.ApplicationEvent arg0)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void createDBTables()
protected boolean isDBInitialized()
protected void executeSript(org.springframework.core.io.Resource resourceScript)
protected void onShutdown(org.springframework.context.ApplicationEvent arg0)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
public void setDataSource(org.apache.commons.dbcp.BasicDataSource dataSource)
public void setCreationScript(String creationScript)
Copyright © 2005–2017 Alfresco Software. All rights reserved.