net.sf.jportlet.service.jdbc
Interface JDBCService
- All Superinterfaces:
- PortletService
- All Known Implementing Classes:
- JDBCServiceImpl
- public interface JDBCService
- extends PortletService
The JDBCService
provides SQL
java.sql.Connection
.
This service expects the following properties:
- datasource: JNDI name of the
javax.sql.DataSource
that will provide the java.sql.Connection
- Author:
- Herve Tchepannou
Field Summary |
static java.lang.String |
NAME
|
Method Summary |
java.sql.Connection |
getConnection()
Returns a SQL connection |
NAME
public static final java.lang.String NAME
getConnection
public java.sql.Connection getConnection()
throws javax.naming.NamingException,
java.sql.SQLException
- Returns a SQL connection
- Returns:
- Connection
- Throws:
javax.naming.NamingException
- if the JNDI name of the javax.sql.DataSource
is invalid
java.sql.SQLException
- if any SQL error
Copyright © 2002 Herve Tchepannou. All Rights Reserved.