org.cafesip.upgrade
Class UpgraderParams

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by org.cafesip.upgrade.UpgraderParams
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class UpgraderParams
extends java.util.HashMap<java.lang.String,java.lang.Object>

This singleton class is used to store information and objects that are shared between objects performing the upgrade function. The information is stored in key-value pairs and therefore the class extends java.util.HashMap. This information may be used by the script runner and other objects. For example, when a database connection is opened by the JdbcPatchEngine, it stores the JDBC connection as an entry in this object with the name - "org.cafesip.upgrade.connection. The SqlScriptRunner class retrieves the connection and uses it for its SQL operation. Similarly, an element with the name - org.cafesip.upgrade.properties contains the properties that are passed in the migration.properties file.

Author:
Amit Chatterjee
See Also:
Serialized Form

Field Summary
static java.lang.String PARAM_CONNECTION
           
static java.lang.String PARAM_PATCHDIR
           
static java.lang.String PARAM_PROPERTIES
           
 
Method Summary
static UpgraderParams getInstance()
          Singleton return instance.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

PARAM_CONNECTION

public static final java.lang.String PARAM_CONNECTION
See Also:
Constant Field Values

PARAM_PROPERTIES

public static final java.lang.String PARAM_PROPERTIES
See Also:
Constant Field Values

PARAM_PATCHDIR

public static final java.lang.String PARAM_PATCHDIR
See Also:
Constant Field Values
Method Detail

getInstance

public static UpgraderParams getInstance()
Singleton return instance.

Returns:


Copyright © 2009 CafeSip.org. All Rights Reserved.