SAP ABAP Class CL_DB2_CONNECTION_POOL (DB2 z/OS: Connnection Factory Pattern)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DB-DB2 (Application Component) DB2 for z/OS
⤷
STU2 (Package) CCMS for DB2 for OS/390
⤷
⤷
Properties
| Class | CL_DB2_CONNECTION_POOL | |
| Short Description | DB2 z/OS: Connnection Factory Pattern | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | STU2 | CCMS for DB2 for OS/390 |
| Created | 20051125 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_DB2_CONNECTION_POOL has no forward declaration.
Interfaces
Class CL_DB2_CONNECTION_POOL has no interface implemented.
Friends
Class CL_DB2_CONNECTION_POOL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_SQL_CONNECTION | Database Connection | 20051125 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | DBCON-CON_NAME | Logical name for a database connection | 20051125 | |||
| 3 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_DB6_TREE_NAVIGATOR | Reference to DBACOCKPIT | 20061010 | |||
| 4 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_DB2_CONNECTION_POOL | Static Reference to Connection Pool | 20120806 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Constructor | Initialize the DB2 z/OS connections | 20051128 | |
| 2 | Instance method | Public | Method | 20051125 | ||
| 3 | Instance method | Public | Method | DB2 for z/OS: Returns the collection id of the connection | 20070125 | |
| 4 | Instance method | Public | Method | 20051125 | ||
| 5 | Static method | Public | Method | Returns the connection name | 20051128 | |
| 6 | Instance method | Public | Method | DB2 z/OS: Returns the connection name form table 'db2misc' | 20061010 | |
| 7 | Instance method | Public | Method | Returns the connection name from memory | 20061010 | |
| 8 | Static method | Public | Method | Get creator / schema of current connection | 20110712 | |
| 9 | Static method | Public | Method | Returns 'DB2' as system type (for future use..) | 20060306 | |
| 10 | Instance method | Public | Method | DB2 for z/OS: Returns the host name of the connection | 20070125 | |
| 11 | Static method | Public | Method | 20120806 | ||
| 12 | Instance method | Public | Method | DB2 for z/OS: Returns the location name of the connection | 20070125 | |
| 13 | Instance method | Public | Method | DB2 for z/OS: Returns the port number of the connection | 20070125 | |
| 14 | Instance method | Public | Method | DB2 for z/OS: Returns the schema name of the connection | 20070125 | |
| 15 | Instance method | Public | Method | DB2 for z/OS: Returns the SSID of the connection | 20070126 | |
| 16 | Instance method | Public | Method | DB2 for z/OS: Returns the dbcon user of the connection | 20081009 | |
| 17 | Instance method | Public | Method | Release Connection received from pool | 20120806 | |
| 18 | Static method | Public | Method | 20051128 |
Events
Class CL_DB2_CONNECTION_POOL has no event.
Types
Class CL_DB2_CONNECTION_POOL has no local type.
Method Signatures
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_DB2_CONNECTION_POOL has no parameter.
Method CLASS_CONSTRUCTOR on class CL_DB2_CONNECTION_POOL has no exception.
Method CLOSE_CONNECTION Signature
Method CLOSE_CONNECTION on class CL_DB2_CONNECTION_POOL has no parameter.
Method CLOSE_CONNECTION on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_COLLECTION_ID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COLLECTION_ID | Value transfer | Type reference (TYPE) | STRING | 20070125 |
Method GET_COLLECTION_ID on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_CONNECTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CON_NAME | Call by reference | Type reference (TYPE) | DBCON_NAME | Logical name for a database connection | 20120806 | |||
| 2 | CON_REF | Value transfer | Object reference (TYPE REF TO) | CL_SQL_CONNECTION | Datenbankverbindung | 20051125 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception Class for SQL Error | 20120806 |
Method GET_CONNECTION_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CON_NAME | Value transfer | Type reference (TYPE) | DBCON-CON_NAME | Returns the current active connection name | 20051128 |
Method GET_CONNECTION_NAME on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_CON_NAME_FROM_DBACOCKPIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CON_NAME | Value transfer | Type reference (TYPE) | DBCON-CON_NAME | 20061010 |
Method GET_CON_NAME_FROM_DBACOCKPIT on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_CON_NAME_FROM_MEMORY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CON_NAME | Value transfer | Type reference (TYPE) | DBCON-CON_NAME | 20061010 |
Method GET_CON_NAME_FROM_MEMORY on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_CREATOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CREATOR | Value transfer | Type reference (TYPE) | DB2CREATOR | DB2 creator name | 20110712 | |||
| 2 | REMOTE_DBCON | Call by reference | Type reference (TYPE) | DBCON_NAME | Logical name for a database connection | 20110712 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception Class for SQL Error | 20110712 |
Method GET_DB2_SYSTEM_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DB2_SYS_TYPE | Value transfer | Attribute reference (LIKE) | SY-DBSYS | 20060306 |
Method GET_DB2_SYSTEM_TYPE on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_HOST_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | HOST | Value transfer | Type reference (TYPE) | STRING | 20070125 |
Method GET_HOST_NAME on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | POOL_REF | Value transfer | Object reference (TYPE REF TO) | CL_DB2_CONNECTION_POOL | DB2 z/OS: Connnection Factory Pattern | 20120806 |
Method GET_INSTANCE on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_LOCATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LOCATION | Value transfer | Type reference (TYPE) | STRING | DB2 for z/OS: Returns the location name of the connection | 20070125 |
Method GET_LOCATION on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_PORT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PORT | Value transfer | Type reference (TYPE) | I | DB2 for z/OS: Returns the port number of the connection | 20070125 |
Method GET_PORT on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_SCHEMA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SCHEMA | Value transfer | Type reference (TYPE) | STRING | 20070125 |
Method GET_SCHEMA on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_SSID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SSID | Value transfer | Type reference (TYPE) | STRING | 20070126 |
Method GET_SSID on class CL_DB2_CONNECTION_POOL has no exception.
Method GET_USER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | USER_NAME | Value transfer | Type reference (TYPE) | STRING | 20081009 |
Method GET_USER on class CL_DB2_CONNECTION_POOL has no exception.
Method RELEASE_CONNECTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CON_REF | Call by reference | Object reference (TYPE REF TO) | CL_SQL_CONNECTION | Database Connection | 20120806 |
Method RELEASE_CONNECTION on class CL_DB2_CONNECTION_POOL has no exception.
Method SET_CONNECTION_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | L_CON_NAME | Call by reference | Type reference (TYPE) | DBCON-CON_NAME | Logical name for a database connection | 20051128 |
Method SET_CONNECTION_NAME on class CL_DB2_CONNECTION_POOL has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 710 |