org.jboss.varia.stats
Class DataSourceInterceptorJDK5

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.varia.stats.DataSourceInterceptor
              extended by org.jboss.varia.stats.DataSourceInterceptorJDK5
All Implemented Interfaces:
Wrapper, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, CommonDataSource, DataSource, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean, DataSourceInterceptorMBean

public class DataSourceInterceptorJDK5
extends DataSourceInterceptor

Version:
$Revision: 85945 $
Author:
Alexey Loubyansky

Nested Class Summary
 class DataSourceInterceptorJDK5.ConnectionInterceptor
           
 class DataSourceInterceptorJDK5.PreparedStatementInterceptor
           
 class DataSourceInterceptorJDK5.StatementInterceptor
           
 
Field Summary
 
Fields inherited from class org.jboss.varia.stats.DataSourceInterceptor
target
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.varia.stats.DataSourceInterceptorMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
DataSourceInterceptorJDK5()
           
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 
Methods inherited from class org.jboss.varia.stats.DataSourceInterceptor
getBindName, getLoginTimeout, getLogWriter, getStatsCollector, getTargetName, logSql, setBindName, setLoginTimeout, setLogWriter, setStatsCollector, setTargetName, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

DataSourceInterceptorJDK5

public DataSourceInterceptorJDK5()
Method Detail

getConnection

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

getConnection

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.