站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

SQLExceptionProcessor (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.plugins.cmp.jdbc
Class SQLExceptionProcessor

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.ejb.plugins.cmp.jdbc.SQLExceptionProcessor
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, SQLExceptionProcessorMBean

public final class SQLExceptionProcessor
extends org.jboss.system.ServiceMBeanSupport
implements SQLExceptionProcessorMBean

Default SQLExceptionProcessor.

Author:
Jeremy Boynes

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
SQLExceptionProcessor()
           
 
Method Summary
 boolean isDuplicateKey(SQLException e)
          Return true if the exception indicates that an operation failed due to a unique constraint violation.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLExceptionProcessor

public SQLExceptionProcessor()
Method Detail

isDuplicateKey

public boolean isDuplicateKey(SQLException e)
Return true if the exception indicates that an operation failed due to a unique constraint violation. This could be from any unique constraint not just the primary key.

Specified by:
isDuplicateKey in interface SQLExceptionProcessorMBean
Parameters:
e - the SQLException to process
Returns:
true if it was caused by a unique constraint violation


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.