|
DbtuTools project Java Library |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.dbtutools.DbtuTools.core.db2.Instance
Wrapper class, implementing DB2 Instance related stuff.
| Field Summary | |
protected java.lang.String |
oInstanceName
Field holding the name of the DB2 instance, which is addressed by the instance of this class. |
| Constructor Summary | |
Instance()
Creates a new instance of this class and addressed the current DB2 Instance. Background: This constructor calls a private method which interprets the value returned by java.lang.System.getProperty("DB2INSTANCE"); |
|
Instance(java.lang.String oInstanceName)
Creates a new instance of this class - addressing the provided DB2 Instance name. Remark: Please notice, the constructor does not check for the existence of the given DB2 instance! |
|
| Method Summary | |
static Instance |
getInstance()
Creates and returns an instance of this class which addresses the current DB2 Instance. |
java.lang.String |
getInstanceName()
Returns the DB2 Instance name (from the oInstanceName field). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String oInstanceName
| Constructor Detail |
public Instance()
throws UnknownValueException
java.lang.System.getProperty("DB2INSTANCE");UnknownValueException - For the case, that the name of the current
DB2 Instance could not be detected.
public Instance(java.lang.String oInstanceName)
throws java.lang.NullPointerException
oInstanceName - The name of the DB2 Instance to be addressed.java.lang.NullPointerException - If the oInstanceName argument was
null.| Method Detail |
public static Instance getInstance()
throws UnknownValueException
UnknownValueException - For the case, that the name of the current
DB2 Instance could not be detected.public java.lang.String getInstanceName()
oInstanceName field).
|
DbtuTools project Java Library |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||