com.caucho.jms.jdbc
Class JdbcManager

java.lang.Object
  extended by com.caucho.jms.jdbc.JdbcManager

public class JdbcManager
extends java.lang.Object

Manages the JDBC configuration.


Constructor Summary
JdbcManager()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Test for equality.
 java.lang.String getBlob()
          Returns the blob type.
 java.lang.String getConsumerSequence()
          Returns the consumer sequence
 java.lang.String getConsumerTable()
          Returns the consumer table
 javax.sql.DataSource getDataSource()
          Gets the data source.
 java.lang.String getDestinationSequence()
          Returns the destination sequence
 java.lang.String getDestinationTable()
          Returns the destination table
 JdbcMessage getJdbcMessage()
          Returns the JDBC message manager.
 java.lang.String getLongType()
          Returns the blob type.
 java.lang.String getMessageTable()
          Returns the message table
 JdbcMetaData getMetaData()
          Returns the meta-data.
 long getPollInterval()
          Returns the poll interval.
 long getPurgeInterval()
          Gets the purge interval.
 java.lang.String getTablespace()
          Gets the oracle tablespace
 int hashCode()
          Returns a hash code.
 void init()
          Initializes the JdbcManager
protected  void initConsumerTable()
          Initializes the consumer table.
protected  void initDestinationTable()
          Initializes the destination table.
 boolean isTruncateBlob()
          Return true if blobs need to be truncated before deletion.
 void setConsumerTable(java.lang.String tableName)
          Sets the consumer table
 void setDataSource(javax.sql.DataSource dataSource)
          Sets the data source.
 void setDestinationTable(java.lang.String tableName)
          Sets the destination table
 void setMessageTable(java.lang.String tableName)
          Sets the message table
 void setPollInterval(Period pollInterval)
          Sets the poll interval for destinations that have a listener, default is to do no polling.
 void setPurgeInterval(Period period)
          Sets the purge interval.
 void setTablespace(java.lang.String tablespace)
          Sets the oracle tablespace.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcManager

public JdbcManager()
Method Detail

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)
Sets the data source.


getDataSource

public javax.sql.DataSource getDataSource()
Gets the data source.


getMessageTable

public java.lang.String getMessageTable()
Returns the message table


setMessageTable

public void setMessageTable(java.lang.String tableName)
Sets the message table


getDestinationTable

public java.lang.String getDestinationTable()
Returns the destination table


setDestinationTable

public void setDestinationTable(java.lang.String tableName)
Sets the destination table


getDestinationSequence

public java.lang.String getDestinationSequence()
Returns the destination sequence


getConsumerTable

public java.lang.String getConsumerTable()
Returns the consumer table


setConsumerTable

public void setConsumerTable(java.lang.String tableName)
Sets the consumer table


getConsumerSequence

public java.lang.String getConsumerSequence()
Returns the consumer sequence


getMetaData

public JdbcMetaData getMetaData()
Returns the meta-data.


getBlob

public java.lang.String getBlob()
Returns the blob type.


setTablespace

public void setTablespace(java.lang.String tablespace)
Sets the oracle tablespace.


getTablespace

public java.lang.String getTablespace()
Gets the oracle tablespace


getLongType

public java.lang.String getLongType()
Returns the blob type.


setPurgeInterval

public void setPurgeInterval(Period period)
Sets the purge interval.


getPurgeInterval

public long getPurgeInterval()
Gets the purge interval.


setPollInterval

public void setPollInterval(Period pollInterval)
Sets the poll interval for destinations that have a listener, default is to do no polling.


getPollInterval

public long getPollInterval()
Returns the poll interval.


getJdbcMessage

public JdbcMessage getJdbcMessage()
Returns the JDBC message manager.


isTruncateBlob

public boolean isTruncateBlob()
Return true if blobs need to be truncated before deletion.


init

@PostConstruct
public void init()
          throws ConfigException,
                 java.sql.SQLException
Initializes the JdbcManager

Throws:
ConfigException
java.sql.SQLException

initDestinationTable

protected void initDestinationTable()
                             throws java.sql.SQLException
Initializes the destination table.

Throws:
java.sql.SQLException

initConsumerTable

protected void initConsumerTable()
                          throws java.sql.SQLException
Initializes the consumer table.

Throws:
java.sql.SQLException

hashCode

public int hashCode()
Returns a hash code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Test for equality.

Overrides:
equals in class java.lang.Object