org.jboss.varia.stats
Class DataSourceInterceptorJDK6

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.DataSourceInterceptorJDK6
All Implemented Interfaces:
Wrapper, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, CommonDataSource, DataSource, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean, DataSourceInterceptorMBean

public class DataSourceInterceptorJDK6
extends DataSourceInterceptor

Version:
$Revision: 85945 $
Author:
Alexey Loubyansky

Nested Class Summary
 class DataSourceInterceptorJDK6.ConnectionInterceptor
           
 class DataSourceInterceptorJDK6.PreparedStatementInterceptor
           
 class DataSourceInterceptorJDK6.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
DataSourceInterceptorJDK6()
           
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 boolean isWrapperFor(Class<?> iface)
           
<T> T
unwrap(Class<T> iface)
           
 
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 org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

DataSourceInterceptorJDK6

public DataSourceInterceptorJDK6()
Method Detail

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
Throws:
SQLException

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.