java.lang.Object
org.objectstyle.cayenne.project.ProjectDataSource
- All Implemented Interfaces:
- javax.sql.DataSource
- public class ProjectDataSource
- extends java.lang.Object
- implements javax.sql.DataSource
ProjectDataSource is a DataSource implementation used by
the project model.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
info
protected org.objectstyle.cayenne.conn.DataSourceInfo info
ProjectDataSource
public ProjectDataSource(org.objectstyle.cayenne.conn.DataSourceInfo info)
getDataSourceInfo
public org.objectstyle.cayenne.conn.DataSourceInfo getDataSourceInfo()
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection in interface javax.sql.DataSource
getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
getConnection in interface javax.sql.DataSource
getLogWriter
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
- Specified by:
getLogWriter in interface javax.sql.DataSource
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
- Specified by:
setLogWriter in interface javax.sql.DataSource
setLoginTimeout
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
- Specified by:
setLoginTimeout in interface javax.sql.DataSource
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- Specified by:
getLoginTimeout in interface javax.sql.DataSource