org.wso2.carbon.registry.core.config
Class DataBaseConfiguration

java.lang.Object
  extended by org.wso2.carbon.registry.core.config.DataBaseConfiguration

public class DataBaseConfiguration
extends Object

This class is to hold, database configurations such as URL, userName, and password. Users can define them in resgirty.xml or at specify them at runtime using the APIs provided.


Constructor Summary
DataBaseConfiguration()
           
 
Method Summary
 String getConfigName()
          Method to obtain the name of the configuration.
 String getDataSourceName()
          Method to obtain the name of the data source.
 String getDbUrl()
          Method to obtain the database URL.
 String getDriverName()
          Method to obtain the name of the driver.
 String getMaxActive()
          Method to obtain the maxActive value.
 String getMaxIdle()
          Method to obtain the maxIdle value.
 String getMaxWait()
          Method to obtain the maxWait value.
 String getMinIdle()
          Method to obtain the minIdle value.
 String getPassWord()
          Method to obtain the password.
 String getResolvedPassword()
           
 String getUserName()
          Method to obtain the user name.
 void setConfigName(String configName)
          Method to set the name of the configuration.
 void setDataSourceName(String dataSourceName)
          Method to set the name of the data source.
 void setDbUrl(String dbUrl)
          Method to set the database URL.
 void setDriverName(String driverName)
          Method to set the name of the driver.
 void setMaxActive(String maxActive)
          Method to set the maxActive value.
 void setMaxIdle(String maxIdle)
          Method to set the maxIdle value.
 void setMaxWait(String maxWait)
          Method to set the maxWait value.
 void setMinIdle(String minIdle)
          Method to set the minIdle value.
 void setPassWord(String password)
          Method to set the password.
 void setPasswordManager(org.wso2.pwprovider.PasswordManager passwordManager)
           
 void setUserName(String userName)
          Method to set the user name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBaseConfiguration

public DataBaseConfiguration()
Method Detail

getDataSourceName

public String getDataSourceName()
Method to obtain the name of the data source.

Returns:
the name of the data source.

setDataSourceName

public void setDataSourceName(String dataSourceName)
Method to set the name of the data source.

Parameters:
dataSourceName - the name of the data source.

getDbUrl

public String getDbUrl()
Method to obtain the database URL.

Returns:
the database URL.

setDbUrl

public void setDbUrl(String dbUrl)
Method to set the database URL.

Parameters:
dbUrl - the database URL.

getUserName

public String getUserName()
Method to obtain the user name.

Returns:
the user name.

setUserName

public void setUserName(String userName)
Method to set the user name.

Parameters:
userName - the user name.

getPassWord

public String getPassWord()
Method to obtain the password.

Returns:
the password.

setPassWord

public void setPassWord(String password)
Method to set the password.

Parameters:
password - the password.

getDriverName

public String getDriverName()
Method to obtain the name of the driver.

Returns:
the name of the driver.

setDriverName

public void setDriverName(String driverName)
Method to set the name of the driver.

Parameters:
driverName - the name of the driver.

getConfigName

public String getConfigName()
Method to obtain the name of the configuration.

Returns:
the name of the configuration.

setConfigName

public void setConfigName(String configName)
Method to set the name of the configuration.

Parameters:
configName - the name of the configuration.

getMaxWait

public String getMaxWait()
Method to obtain the maxWait value.

Returns:
the maxWait value defined.

setMaxWait

public void setMaxWait(String maxWait)
Method to set the maxWait value.

Parameters:
maxWait - the maxWait value defined.

getMaxActive

public String getMaxActive()
Method to obtain the maxActive value.

Returns:
the maxActive value defined.

setMaxActive

public void setMaxActive(String maxActive)
Method to set the maxActive value.

Parameters:
maxActive - the maxActive value defined.

getMaxIdle

public String getMaxIdle()
Method to obtain the maxIdle value.

Returns:
the maxIdle value defined.

setMaxIdle

public void setMaxIdle(String maxIdle)
Method to set the maxIdle value.

Parameters:
maxIdle - the maxIdle value defined.

getMinIdle

public String getMinIdle()
Method to obtain the minIdle value.

Returns:
the minIdle value defined.

setMinIdle

public void setMinIdle(String minIdle)
Method to set the minIdle value.

Parameters:
minIdle - the minIdle value defined.

setPasswordManager

public void setPasswordManager(org.wso2.pwprovider.PasswordManager passwordManager)

getResolvedPassword

public String getResolvedPassword()


Copyright © 2010. All Rights Reserved.