Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for TCP/IP HL7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.stc.connector.hl7.framework.persist.connection
Class DBConnectionFactory

    java.lang.Object
      com.stc.connector.hl7.framework.persist.connection.DBConnectionFactory

    public class DBConnectionFactory

extends java.lang.Object

DOCUMENT ME!

Author:
  Sun Microsystems

Constructor Summary
`DBConnectionFactory(java.util.Properties prop, javax.naming.InitialContext initialContext)` constructor

Method Summary
`DBConnection` | `createConnection()` Creates and returns a connection /** Creates and returns a connection
`int` | `getType()` return database type

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DBConnectionFactory

    public DBConnectionFactory(java.util.Properties prop,
                               javax.naming.InitialContext initialContext)
                        throws HL7ApplicationException

  constructor

  Parameters:
    `prop` - Properties
    `context` - InitialContext
  Throws:
    `HL7ApplicationException`

Method Detail

### createConnection

    public DBConnection createConnection()
                                  throws java.lang.Exception

  Creates and returns a connection /** Creates and returns a connection

  Returns:
    DBConnection
  Throws:
    `java.lang.Exception` - Throws exception if a counnection could not be obtained

### getType

    public int getType()

  return database type

  Returns:
    int database type

Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for TCP/IP HL7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD