oracle.dmt.odm
Class ODMConnection

java.lang.Object
  |
  +--oracle.dmt.odm.ODMConnection
All Implemented Interfaces:
Connection

public class ODMConnection
extends java.lang.Object
implements Connection

For Internal Use Only.


Constructor Summary
ODMConnection(java.sql.Connection conn)
           
 
Method Summary
TypeMethod
 void closeJMS()
           
 java.sql.Connection getDBConnection()
          For Internal Use only.
 java.util.Locale getLocale()
          For Internal Use only.
 java.lang.String getPassword()
          For Internal Use only.
 oracle.dmt.dmutil.base.Enumerations.TraceSettingType getTraceLevel(oracle.dmt.dmutil.base.Enumerations.MessageSubComponentType componentType)
          For Internal Use only.
 java.lang.String getURL()
          For Internal Use only.
 java.lang.String getUser()
          For Internal Use only.
 boolean removeMessage(int taskId)
           
 java.lang.String sendMessage(int taskId, java.lang.String taskName)
           
 void setLocale(java.util.Locale locale)
          For Internal Use only.
 void setupJMS()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODMConnection

public ODMConnection(java.sql.Connection conn)
              throws java.sql.SQLException,
                     InvalidArgumentException
Method Detail

setupJMS

public void setupJMS()
              throws javax.jms.JMSException

sendMessage

public java.lang.String sendMessage(int taskId,
                                    java.lang.String taskName)
                             throws javax.jms.JMSException

removeMessage

public boolean removeMessage(int taskId)
                      throws javax.jms.JMSException

closeJMS

public void closeJMS()
              throws javax.jms.JMSException

getUser

public java.lang.String getUser()
For Internal Use only.
Specified by:
getUser in interface Connection
Following copied from interface: oracle.dmt.odm.Connection
Returns:
String - The name of the login user

getPassword

public java.lang.String getPassword()
For Internal Use only.
Specified by:
getPassword in interface Connection
Following copied from interface: oracle.dmt.odm.Connection
Returns:
String - The login password

getDBConnection

public java.sql.Connection getDBConnection()
For Internal Use only.
Specified by:
getDBConnection in interface Connection
Following copied from interface: oracle.dmt.odm.Connection
Returns:
java.sql.Connection - A database connection

getURL

public java.lang.String getURL()
For Internal Use only.
Specified by:
getURL in interface Connection
Following copied from interface: oracle.dmt.odm.Connection
Returns:
String - The URL of the DMS

setLocale

public void setLocale(java.util.Locale locale)
               throws java.sql.SQLException
For Internal Use only.
Specified by:
setLocale in interface Connection
Following copied from interface: oracle.dmt.odm.Connection
Parameters:
locale - A new locale
Throws:
java.sql.SQLException - when an error occurs during the execution.

getLocale

public java.util.Locale getLocale()
For Internal Use only.
Specified by:
getLocale in interface Connection
Following copied from interface: oracle.dmt.odm.Connection
Returns:
Locale - The locale of the DMS

getTraceLevel

public oracle.dmt.dmutil.base.Enumerations.TraceSettingType getTraceLevel(oracle.dmt.dmutil.base.Enumerations.MessageSubComponentType componentType)
                                                                   throws oracle.dmt.dmutil.exceptions.MessageLogException
For Internal Use only.
Specified by:
getTraceLevel in interface Connection