com.jfw.update
Class Starter

java.lang.Object
  extended by com.jfw.update.Starter

public final class Starter
extends java.lang.Object

Start the update process.


Field Summary
static java.lang.String UPDATE_ALL
          Indicates that all possible type of updates must be execute.
 
Constructor Summary
Starter()
          Create an instance.
 
Method Summary
static void main(java.lang.String[] args)
          Start the update process.
 void update()
          Start the update process.
 boolean updateContainer()
          Start the update process for the main container of update files.
 boolean updateDB()
          Start the update process of the database.
 boolean updateGenericFile()
          Start the update process of generic files.
 boolean updateShellCmd()
          Start the update process of the shell.
 boolean updateWEB()
          Start the update process of web files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_ALL

public static final java.lang.String UPDATE_ALL
Indicates that all possible type of updates must be execute.

See Also:
Constant Field Values
Constructor Detail

Starter

public Starter()
Create an instance.

Method Detail

main

public static void main(java.lang.String[] args)
Start the update process.

Parameters:
args - possible parameters are:
  1. all: for all updates
  2. sql: for db update only
  3. web: for web update only
  4. file: for generic file update only
  5. shell: for shell cmd update only

update

public void update()
            throws java.lang.Exception
Start the update process. Call the next methods, in that order:
  1. updateContainer()
  2. updateDB()
  3. updateGenericFile()
  4. updateShellCmd()
  5. updateWEB()

Throws:
java.lang.Exception

updateContainer

public boolean updateContainer()
                        throws java.lang.Exception
Start the update process for the main container of update files. The main container is the zip that contains all the other zip files.

Throws:
java.lang.Exception

updateWEB

public boolean updateWEB()
                  throws java.lang.Exception
Start the update process of web files.

Throws:
java.lang.Exception

updateDB

public boolean updateDB()
                 throws java.lang.Exception
Start the update process of the database.

Throws:
java.lang.Exception

updateShellCmd

public boolean updateShellCmd()
                       throws java.lang.Exception
Start the update process of the shell.

Throws:
java.lang.Exception

updateGenericFile

public boolean updateGenericFile()
                          throws java.lang.Exception
Start the update process of generic files.

Throws:
java.lang.Exception