|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.jportlet.service.PortletServiceAdapter | +--net.sf.jportlet.service.jdbc.JDBCServiceImpl
Implementation of JDBCService
.
Field Summary |
Fields inherited from class net.sf.jportlet.service.PortletServiceAdapter |
_log, _serviceConfig, _serviceContext |
Fields inherited from interface net.sf.jportlet.service.jdbc.JDBCService |
NAME |
Constructor Summary | |
JDBCServiceImpl()
|
Method Summary | |
java.sql.Connection |
getConnection()
Returns a SQL connection |
java.lang.String |
getServiceName()
Returns the name of the service |
void |
init(net.sf.jportlet.service.PortletServiceConfig serviceConfig)
Initialize the service |
Methods inherited from class net.sf.jportlet.service.PortletServiceAdapter |
destroy, getInitParameter, getInitParameter, getServiceConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jportlet.service.PortletService |
destroy, getServiceConfig |
Constructor Detail |
public JDBCServiceImpl()
Method Detail |
public java.sql.Connection getConnection() throws javax.naming.NamingException, java.sql.SQLException
JDBCService
getConnection
in interface JDBCService
javax.naming.NamingException
- if the JNDI name of the javax.sql.DataSource
is invalid
java.sql.SQLException
- if any SQL errorJDBCService.getConnection()
public void init(net.sf.jportlet.service.PortletServiceConfig serviceConfig) throws PortletServiceException
PortletService
init
in interface PortletService
init
in class PortletServiceAdapter
serviceConfig
- configuration of the service
PortletServiceException
PortletService.init(net.sf.jportlet.service.PortletServiceConfig)
public java.lang.String getServiceName()
PortletService
getServiceName
in interface PortletService
PortletService.getServiceName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |