org.jboss.jms.server.plugin
Class JDBCJMSUserManager

java.lang.Object
  extended by org.jboss.messaging.core.impl.JDBCSupport
      extended by org.jboss.jms.server.plugin.JDBCJMSUserManager
All Implemented Interfaces:
JMSUserManager, MessagingComponent

public class JDBCJMSUserManager
extends JDBCSupport
implements JMSUserManager

A JDBCJMSUserManager Manages JMS user and role data - in particular the predefined client id (if any) for the user

Version:
$Revision: 2796 $ $Id: JDBCJMSUserManager.java 2796 2007-06-25 22:24:41Z timfox $
Author:
Tim Fox

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.messaging.core.impl.JDBCSupport
JDBCSupport.JDBCTxRunner<T>, JDBCSupport.JDBCTxRunner2<T>, JDBCSupport.TransactionWrapper
 
Field Summary
 
Fields inherited from class org.jboss.messaging.core.impl.JDBCSupport
ds, sqlProperties
 
Constructor Summary
JDBCJMSUserManager(javax.sql.DataSource ds, TransactionManager tm, java.util.Properties sqlProperties, boolean createTablesOnStartup)
           
 
Method Summary
protected  java.util.Map getDefaultDDLStatements()
           
protected  java.util.Map getDefaultDMLStatements()
           
 java.lang.String getPreConfiguredClientID(java.lang.String username)
           
protected  boolean ignoreVerificationOnStartup(java.lang.String statementName)
          Subclasses might choose to not cross check the maps on certain statements.
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.messaging.core.impl.JDBCSupport
closeConnection, closeResultSet, closeStatement, getSQLStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCJMSUserManager

public JDBCJMSUserManager(javax.sql.DataSource ds,
                          TransactionManager tm,
                          java.util.Properties sqlProperties,
                          boolean createTablesOnStartup)
Method Detail

getDefaultDMLStatements

protected java.util.Map getDefaultDMLStatements()
Overrides:
getDefaultDMLStatements in class JDBCSupport

getDefaultDDLStatements

protected java.util.Map getDefaultDDLStatements()
Overrides:
getDefaultDDLStatements in class JDBCSupport

ignoreVerificationOnStartup

protected boolean ignoreVerificationOnStartup(java.lang.String statementName)
Description copied from class: JDBCSupport
Subclasses might choose to not cross check the maps on certain statements. An example would be POPULATE.TABLES on JDBCJMSUserManagerService

Overrides:
ignoreVerificationOnStartup in class JDBCSupport

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface MessagingComponent
Overrides:
start in class JDBCSupport
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface MessagingComponent
Overrides:
stop in class JDBCSupport
Throws:
java.lang.Exception

getPreConfiguredClientID

public java.lang.String getPreConfiguredClientID(java.lang.String username)
                                          throws java.lang.Exception
Specified by:
getPreConfiguredClientID in interface JMSUserManager
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.