|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.app.install.Installer
The install helper class. This class handles all the installation tasks, such as database updates and configuration writing.
| Constructor Summary | |
Installer(java.lang.String version,
DatabaseConnector connector,
java.io.File sqlDir)
Create a new installer. |
|
| Method Summary | |
boolean |
canUpdate(java.lang.String fromVersion)
Checks if the specified Liquid Site version can be updated by this installer. |
void |
createTables(java.lang.String database)
Creates the Liquid Site database tables. |
java.io.File |
getSqlDir()
Returns the SQL file directory. |
void |
updateTables(java.lang.String database,
java.lang.String fromVersion)
Updates the Liquid Site database tables. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Installer(java.lang.String version,
DatabaseConnector connector,
java.io.File sqlDir)
version - the application version to installconnector - the database connector to usesqlDir - the base directory for the SQL files| Method Detail |
public boolean canUpdate(java.lang.String fromVersion)
fromVersion - the version to update from
public java.io.File getSqlDir()
public void createTables(java.lang.String database)
throws InstallException
database - the database name
InstallException - if the database tables couldn't be
created correctly
public void updateTables(java.lang.String database,
java.lang.String fromVersion)
throws InstallException
database - the database namefromVersion - the database Liquid Site version
InstallException - if the database tables couldn't be
updated correctly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||