Dekoh platform API

dekoh.portal.fwk
Class PortalDataSource

java.lang.Object
  extended by dekoh.portal.fwk.PortalDataSource
All Implemented Interfaces:
DataSource

public class PortalDataSource
extends Object
implements DataSource

PortalDataSource is a factory of connections to the Dekoh portal's database.

An instance of PortalDataSource can be obtained from PortalApplicationContext by calling method getPortalDataSource().

Since:
Mar 15, 2007

Constructor Summary
PortalDataSource(PortalConfiguration configuration)
           
 
Method Summary
 PortalConfiguration getConfiguration()
           
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 String getJdbcUrl()
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
          Not implemented.
 void setLoginTimeout(int seconds)
          Not implemented.
 void setLogWriter(PrintWriter out)
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalDataSource

public PortalDataSource(PortalConfiguration configuration)
Method Detail

getConnection

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

getConnection

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

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
Not implemented.

Specified by:
getLogWriter in interface DataSource
Returns:
null always
Throws:
SQLException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws SQLException
Not implemented.

Specified by:
setLogWriter in interface DataSource
Parameters:
out -
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws SQLException
Not implemented.

Specified by:
setLoginTimeout in interface DataSource
Parameters:
seconds -
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Specified by:
getLoginTimeout in interface DataSource
Throws:
SQLException

getJdbcUrl

public String getJdbcUrl()

getConfiguration

public PortalConfiguration getConfiguration()

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers