org.jboss.messaging.core.impl
Class JDBCSupport
java.lang.Object
org.jboss.messaging.core.impl.JDBCSupport
- All Implemented Interfaces:
- MessagingComponent
- Direct Known Subclasses:
- JDBCJMSUserManager, JDBCPersistenceManager, MessagingPostOffice
public class JDBCSupport
- extends java.lang.Object
- implements MessagingComponent
Common functionality for messaging components that need to access a database.
- Version:
- $Revision: 2726 $
$Id: JDBCSupport.java 2726 2007-05-24 19:25:06Z timfox $
- 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
closeResultSet
protected void closeResultSet(java.sql.ResultSet rs)
closeStatement
protected void closeStatement(java.sql.Statement st)
closeConnection
protected void closeConnection(java.sql.Connection conn)
Copyright © 2006 JBoss Inc. All Rights Reserved.