Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dbtutools.DbtuTools.core
Class OptDbtuToolsTree  view OptDbtuToolsTree download OptDbtuToolsTree.java

java.lang.Object
  extended byorg.dbtutools.DbtuTools.core.OptDbtuToolsTree

public class OptDbtuToolsTree
extends java.lang.Object

Wrapper class, implementing the /opt/dbtutools tree related stuff.


Field Summary
protected  java.lang.String oDb2Instance
          Field holding the given DB2 Instance name.
protected  java.lang.String oTreeRoot
          Field holding the machine wide /opt/dbtutools tree root.
 
Constructor Summary
OptDbtuToolsTree()
          Creates a new instance of this class and addresses the /opt/dbtutools tree for the current DB2 Instance.
OptDbtuToolsTree(org.dbtutools.DbtuTools.core.db2.Instance oDb2Instance)
          Creates a new instance of this class and addresses the /opt/dbtutools tree for the given DB2 Instance.
OptDbtuToolsTree(java.lang.String oDb2InstanceName)
          Creates a new instance of this class and addresses the /opt/dbtutools tree for the given DB2 Instance name.
 
Method Summary
private  void detectTreeRoot(java.lang.String oDb2InstanceName)
          As the method name says, this method reads the root path for the /opt/dbtutools tree and sets the oTreeRoot 55 field.

Background: The detection is done by interpreting the value of java.lang.System.getProperty("DBTUTOOLSHOME"); and java.lang.System.getProperty("DB2INSTANCE"); (for validation)
static OptDbtuToolsTree getInstance()
          Creates and returns an instance of this class which addresses the /opt/dbtutools tree for the current DB2 Instance.
 java.util.HashMap getPathNames()
          Returns the /opt/dbtutools tree path names (based on the oTreeRoot 55 field).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oTreeRoot

protected java.lang.String oTreeRoot
Field holding the machine wide /opt/dbtutools tree root. ************************************************************************


oDb2Instance

protected java.lang.String oDb2Instance
Field holding the given DB2 Instance name. ************************************************************************

Constructor Detail

OptDbtuToolsTree

public OptDbtuToolsTree()
                 throws org.edelbyte.util.UnknownValueException
Creates a new instance of this class and addresses the /opt/dbtutools tree for the current DB2 Instance.


OptDbtuToolsTree

public OptDbtuToolsTree(java.lang.String oDb2InstanceName)
                 throws org.edelbyte.util.UnknownValueException
Creates a new instance of this class and addresses the /opt/dbtutools tree for the given DB2 Instance name.


OptDbtuToolsTree

public OptDbtuToolsTree(org.dbtutools.DbtuTools.core.db2.Instance oDb2Instance)
                 throws org.edelbyte.util.UnknownValueException
Creates a new instance of this class and addresses the /opt/dbtutools tree for the given DB2 Instance.

Method Detail

getInstance

public static OptDbtuToolsTree getInstance()
                                    throws org.edelbyte.util.UnknownValueException
Creates and returns an instance of this class which addresses the /opt/dbtutools tree for the current DB2 Instance.


getPathNames

public java.util.HashMap getPathNames()
Returns the /opt/dbtutools tree path names (based on the oTreeRoot 55 field).


detectTreeRoot

private void detectTreeRoot(java.lang.String oDb2InstanceName)
                     throws org.edelbyte.util.UnknownValueException
As the method name says, this method reads the root path for the /opt/dbtutools tree and sets the oTreeRoot 55 field.

Background: The detection is done by interpreting the value of java.lang.System.getProperty("DBTUTOOLSHOME"); and java.lang.System.getProperty("DB2INSTANCE"); (for validation)