com.atlassian.jira.configurator.db
Class DatabaseInstance
java.lang.Object
com.atlassian.jira.configurator.db.DatabaseInstance
public class DatabaseInstance
- extends java.lang.Object
Represents a database instance as parsed out of a JDBC URL.
That is, the servername and port number that the DB is running on, as well as the "custom" instance field.
Method Summary |
java.lang.String |
getHostname()
|
java.lang.String |
getInstance()
The Instance field represents the "custom" extra property for the database. |
java.lang.String |
getPort()
|
void |
setHostname(java.lang.String hostname)
|
void |
setInstance(java.lang.String instance)
|
void |
setPort(java.lang.String port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseInstance
public DatabaseInstance()
getHostname
public java.lang.String getHostname()
setHostname
public void setHostname(java.lang.String hostname)
getPort
public java.lang.String getPort()
setPort
public void setPort(java.lang.String port)
getInstance
public java.lang.String getInstance()
- The Instance field represents the "custom" extra property for the database.
ie on Oracle the "SID", on MySQL or Postgres the "Database", or on SQL Server the "Instance"
- Returns:
- Instance field
setInstance
public void setInstance(java.lang.String instance)
Copyright © 2002-2010 Atlassian. All Rights Reserved.