org.jboss.messaging.core.plugin
Class JDBCSupport
java.lang.Object
org.jboss.messaging.core.plugin.JDBCSupport
- All Implemented Interfaces:
- MessagingComponent
- Direct Known Subclasses:
- DefaultPostOffice, JDBCJMSUserManager, JDBCPersistenceManager
- public class JDBCSupport
- extends java.lang.Object
- implements MessagingComponent
Common functionality for messaging components that need to access a database.
- Version:
- $Revision: 2301 $
$Id: JDBCSupport.java 2301 2007-02-13 20:23:51Z ovidiu.feodorov@jboss.com $
- Author:
- Tim Fox
Field Summary |
protected javax.sql.DataSource |
ds
|
protected java.util.Properties |
sqlProperties
|
Constructor Summary |
JDBCSupport()
|
JDBCSupport(javax.sql.DataSource ds,
TransactionManager tm,
java.util.Properties sqlProperties,
boolean createTablesOnStartup)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ds
protected javax.sql.DataSource ds
sqlProperties
protected java.util.Properties sqlProperties
JDBCSupport
public JDBCSupport()
JDBCSupport
public JDBCSupport(javax.sql.DataSource ds,
TransactionManager tm,
java.util.Properties sqlProperties,
boolean createTablesOnStartup)
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface MessagingComponent
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface MessagingComponent
- Throws:
java.lang.Exception
getSQLStatement
protected java.lang.String getSQLStatement(java.lang.String statementName)
getDefaultDMLStatements
protected java.util.Map getDefaultDMLStatements()
getDefaultDDLStatements
protected java.util.Map getDefaultDDLStatements()
ignoreVerificationOnStartup
protected boolean ignoreVerificationOnStartup(java.lang.String statementName)
- Subclasses might choose to not cross check the maps on certain statements.
An example would be POPULATE.TABLES on JDBCJMSUserManagerService
Copyright © 2006 JBoss Inc. All Rights Reserved.