Dashboard Builder Commons 6.2.0.CR4

org.jboss.dashboard.initialModule
Class DataSourceIInitialModule

java.lang.Object
  extended by org.jboss.dashboard.initialModule.InitialModule
      extended by org.jboss.dashboard.initialModule.DataSourceIInitialModule

public class DataSourceIInitialModule
extends InitialModule

DataSource initial module class. It makes possible to install datasources at start-up.


Field Summary
protected  String importFile
          Represents the path of the XML file to import.
 
Constructor Summary
DataSourceIInitialModule()
           
 
Method Summary
protected  boolean check()
          Check if file exists.
 String getImportFile()
           
protected  boolean install()
          Install this module
protected  boolean installOrUpgrade(boolean upgrade)
           
 void setImportFile(String importFile)
           
protected  boolean upgrade(long currentVersion)
          Upgrade from given version
 
Methods inherited from class org.jboss.dashboard.initialModule.InitialModule
doTheInstall, doTheUpgrade, getName, getVersion, isInstallTransactional, setInstallTransactional, setName, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

importFile

protected String importFile
Represents the path of the XML file to import. A relative path to the application directory.

Constructor Detail

DataSourceIInitialModule

public DataSourceIInitialModule()
Method Detail

getImportFile

public String getImportFile()

setImportFile

public void setImportFile(String importFile)

install

protected boolean install()
Description copied from class: InitialModule
Install this module

Specified by:
install in class InitialModule
Returns:
true on success

upgrade

protected boolean upgrade(long currentVersion)
Description copied from class: InitialModule
Upgrade from given version

Specified by:
upgrade in class InitialModule
Returns:
true on success

installOrUpgrade

protected boolean installOrUpgrade(boolean upgrade)

check

protected boolean check()
Check if file exists.


Dashboard Builder Commons 6.2.0.CR4

Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.