net.sf.csutils.core.registry.jaxmas
Class JaxMasConnectionProvider

java.lang.Object
  extended by net.sf.csutils.core.registry.jaxmas.JaxMasConnectionProvider
All Implemented Interfaces:
ConnectionProvider

public class JaxMasConnectionProvider
extends java.lang.Object
implements ConnectionProvider


Constructor Summary
JaxMasConnectionProvider()
           
 
Method Summary
 javax.xml.registry.Connection getConnection()
          Returns a registry connection.
 java.lang.String getDriver()
          Returns the database driver to use.
 java.lang.String getLocale()
          Returns the locale.
 java.lang.String getPassword()
          Returns the database users password.
 java.lang.String getUrl()
          Returns the database URL to use.
 java.lang.String getUser()
          Returns the database user to use.
 void setDriver(java.lang.String pDriver)
          Sets the database driver to use.
 void setLocale(java.lang.String pLocale)
          Sets the locale.
 void setPassword(java.lang.String pPassword)
          Sets the database users password.
 void setUrl(java.lang.String pURL)
          Sets the database URL to use.
 void setUser(java.lang.String pUser)
          Sets the database user to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxMasConnectionProvider

public JaxMasConnectionProvider()
Method Detail

getDriver

public java.lang.String getDriver()
Returns the database driver to use.

Returns:
Name of the database driver.

setDriver

public void setDriver(java.lang.String pDriver)
Sets the database driver to use.

Parameters:
pDriver - Name of the database driver to use.

getUrl

public java.lang.String getUrl()
Returns the database URL to use.

Returns:
The database URL to use.

setUrl

public void setUrl(java.lang.String pURL)
Sets the database URL to use.

Parameters:
pURL - The database URL to use.

getUser

public java.lang.String getUser()
Returns the database user to use.

Returns:
The database user to use.

setUser

public void setUser(java.lang.String pUser)
Sets the database user to use.

Parameters:
pUser - The database user to use.

getPassword

public java.lang.String getPassword()
Returns the database users password.

Returns:
The database users password.

setPassword

public void setPassword(java.lang.String pPassword)
Sets the database users password.

Parameters:
pPassword - The database users password to use.

getLocale

public java.lang.String getLocale()
Returns the locale.

Returns:
Returns the locale to use.

setLocale

public void setLocale(java.lang.String pLocale)
Sets the locale.

Parameters:
pLocale - Sets the locale to use.

getConnection

public javax.xml.registry.Connection getConnection()
                                            throws javax.xml.registry.JAXRException
Description copied from interface: ConnectionProvider
Returns a registry connection. A new connection is created, if required.

Specified by:
getConnection in interface ConnectionProvider
Returns:
The registry connection.
Throws:
javax.xml.registry.JAXRException - The operation failed.


Copyright © 2009-2010. All Rights Reserved.