macaw.persistenceLayer.production
Class SetupCurationDatabase

java.lang.Object
  extended by macaw.persistenceLayer.production.SetupCurationDatabase

public class SetupCurationDatabase
extends java.lang.Object

A convenience class that can be used to create all the database tables used by the production services.


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
SetupCurationDatabase(SessionProperties sessionProperties)
           
 
Method Summary
 boolean databaseExists()
           
 void dropDatabase()
           
static void main(java.lang.String[] arguments)
           
 void run()
           
 void setStartUpPropertiesFileName(java.lang.String startupPropertiesFileName)
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetupCurationDatabase

public SetupCurationDatabase(SessionProperties sessionProperties)
Method Detail

main

public static final void main(java.lang.String[] arguments)

setup

public void setup()
           throws MacawException
Throws:
MacawException

databaseExists

public boolean databaseExists()
                       throws MacawException
Throws:
MacawException

dropDatabase

public void dropDatabase()
                  throws MacawException
Throws:
MacawException

setStartUpPropertiesFileName

public void setStartUpPropertiesFileName(java.lang.String startupPropertiesFileName)

run

public void run()