com.softwareag.tamino.db.api.common
Class TDatabase

java.lang.Object
  extended by com.softwareag.tamino.db.api.common.TDatabase

public class TDatabase
extends java.lang.Object

TDatabase encapsulates a database URI and certain database properties.

Version:
$Revision: 1.7 $
Author:
Stefan Liebig

Constructor Summary
TDatabase(java.lang.String taminoUri, java.lang.String databaseName)
          Create a database object.
 
Method Summary
 boolean equals(java.lang.Object object)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getName()
          Return the database name.
 java.lang.String getUri()
          Return the database URI as a string.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Return the content of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TDatabase

public TDatabase(java.lang.String taminoUri,
                 java.lang.String databaseName)
          throws java.net.MalformedURLException
Create a database object.

Parameters:
taminoUri - URI of the tamino host
databaseName - name of the database
Throws:
java.net.MalformedURLException
Method Detail

getUri

public java.lang.String getUri()
Return the database URI as a string.

Returns:
the database URI

getName

public java.lang.String getName()
Return the database name.

Returns:
the database name

toString

public java.lang.String toString()
Return the content of this object.

Overrides:
toString in class java.lang.Object
Returns:
a TVersion

equals

public boolean equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
object - the reference object with which to compare.
Returns:
true if this object is equal to the object argument; false otherwise

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object


Copyright (c) 2013 Software AG. All Rights Reserved.