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:

Author:
Herve Tchepannou

Field Summary
static java.lang.String NAME
           
 
Method Summary
 java.sql.Connection getConnection()
          Returns a SQL connection
 
Methods inherited from interface net.sf.jportlet.service.PortletService
destroy, getServiceConfig, getServiceName, init
 

Field Detail

NAME

public static final java.lang.String NAME
Method Detail

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.