org.wso2.carbon.registry.core.jdbc.utils
Class RegistryDataSource

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.utils.RegistryDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

Deprecated.

@Deprecated
public class RegistryDataSource
extends Object
implements DataSource

Use DataAccessManager.createDatabase().


Constructor Summary
RegistryDataSource(DataBaseConfiguration config)
          Deprecated.  
RegistryDataSource(DataSource dataSource)
          Deprecated. Constructor accepting a data source which will be wrapped as a registry data source
 
Method Summary
 Connection getConnection()
          Deprecated.  
 Connection getConnection(String username, String password)
          Deprecated.  
 int getLoginTimeout()
          Deprecated.  
 PrintWriter getLogWriter()
          Deprecated.  
 boolean isWrapperFor(Class<?> i)
          Deprecated.  
 void setLoginTimeout(int seconds)
          Deprecated.  
 void setLogWriter(PrintWriter out)
          Deprecated.  
<T> T
unwrap(Class<T> i)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryDataSource

public RegistryDataSource(DataSource dataSource)
Deprecated. 
Constructor accepting a data source which will be wrapped as a registry data source

Parameters:
dataSource -

RegistryDataSource

public RegistryDataSource(DataBaseConfiguration config)
Deprecated. 
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Deprecated. 
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getConnection

public Connection getConnection(String username,
                                String password)
                         throws SQLException
Deprecated. 
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
Deprecated. 
Specified by:
getLogWriter in interface CommonDataSource
Throws:
SQLException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws SQLException
Deprecated. 
Specified by:
setLogWriter in interface CommonDataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws SQLException
Deprecated. 
Specified by:
setLoginTimeout in interface CommonDataSource
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Deprecated. 
Specified by:
getLoginTimeout in interface CommonDataSource
Throws:
SQLException

unwrap

public <T> T unwrap(Class<T> i)
         throws SQLException
Deprecated. 
Specified by:
unwrap in interface Wrapper
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> i)
                     throws SQLException
Deprecated. 
Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException


Copyright © 2012 WSO2 Inc. All Rights Reserved.