SAP ABAP Class CL_TPSQL_FACTORY (Factory for SQL Templates)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-UPG-TLS (Application Component) Upgrade Tools
⤷
STPSQL_BASE (Package) SQL Templates Base
⤷
⤷
Properties
| Class | CL_TPSQL_FACTORY | |
| Short Description | Factory for SQL Templates | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | STPSQL_BASE | SQL Templates Base |
| Created | 20100910 | SAP |
| Last change | 20140120 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_TPSQL_FACTORY has no interface implemented.
Friends
Class CL_TPSQL_FACTORY has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Object reference (TYPE REF TO) | IF_TPSQL_TEMPLATE_CONTEXT | Context for SQL Templates | 20100913 | |||
| 2 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_TPSQL_FACTORY | Factory for SQL Templates | 20100910 | |||
| 3 | Instance attribute | Private | Object reference (TYPE REF TO) | LIF_TPSQL_FACTORY_GETTER | 20100913 | ||||
| 4 | Instance attribute | Private | Object reference (TYPE REF TO) | IF_TPSQL_METADATA | Metadata Interface for Smart Templates | 20100914 | |||
| 5 | Instance attribute | Private | Object reference (TYPE REF TO) | IF_TPSQL_METADATA | Metadata Interface for Smart Templates | 20101110 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | LTY_INSTANCE_T | 20100913 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | CONSTRUCTOR | 20100913 | |
| 2 | Instance method | Private | Method | Create Template instance | 20100913 | |
| 3 | Instance method | Private | Method | Create default context | 20100914 | |
| 4 | Instance method | Private | Method | Get default Metadata Instance | 20101110 | |
| 5 | Static method | Public | Method | Get factory Instance | 20100910 | |
| 6 | Instance method | Private | Method | Check if instances can be reused | 20101122 | |
| 7 | Instance method | Public | Method | Get Template Instance | 20100910 | |
| 8 | Instance method | Public | Method | Set a prepared context | 20100914 | |
| 9 | Instance method | Public | Method | Set prepared Metadata Instance | 20100914 |
Events
Class CL_TPSQL_FACTORY has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | GTY_IMPL_CLASSES_S | Public | See coding | 20130416 | BEGIN OF gty_impl_classes_s,
class_name TYPE seoclsname,
END OF gty_impl_classes_s
|
||
| 2 | GTY_IMPL_CLASSES_T | Public | See coding | 20130416 | gty_impl_classes_t TYPE STANDARD TABLE OF gty_impl_classes_s
|
||
| 3 | LTY_INSTANCE_S | Private | See coding | 20100913 | BEGIN OF lty_instance_s,
inf_name TYPE seoclsname,
score TYPE i,
instance TYPE REF TO object,
END OF lty_instance_s
|
||
| 4 | LTY_INSTANCE_T | Private | See coding | 20100913 | lty_instance_t TYPE STANDARD TABLE OF lty_instance_s
|
Method Signatures
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class CL_TPSQL_FACTORY has no parameter.
Method CONSTRUCTOR on class CL_TPSQL_FACTORY has no exception.
Method CREATE_OBJECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_INF_NAME | Call by reference | Type reference (TYPE) | SEOCLSNAME | Object Type Name | 20100913 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SQL Templates Base Exception Class | 20101112 |
Method GET_DEFAULT_CONTEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_CONTEXT | Value transfer | Object reference (TYPE REF TO) | IF_TPSQL_TEMPLATE_CONTEXT | Context for SQL Templates | 20100914 |
Method GET_DEFAULT_CONTEXT on class CL_TPSQL_FACTORY has no exception.
Method GET_DEFAULT_METADATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_METADATA | Value transfer | Object reference (TYPE REF TO) | IF_TPSQL_METADATA | Metadata Interface for Smart Templates | 20101110 |
Method GET_DEFAULT_METADATA on class CL_TPSQL_FACTORY has no exception.
Method GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_FACTORY | Value transfer | Object reference (TYPE REF TO) | CL_TPSQL_FACTORY | Factory for SQL Templates | 20100910 |
Method GET_INSTANCE on class CL_TPSQL_FACTORY has no exception.
Method GET_REUSE_INSTANCES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EO_INSTANCE | Call by reference | Type reference (TYPE) | ANY | 20101122 | ||||
| 2 | ET_INSTANCES | Call by reference | Type reference (TYPE) | IF_TPSQL_TYPES=>GTY_INSTANCES_T | 20101122 | ||||
| 3 | IV_INF_NAME | Call by reference | Type reference (TYPE) | SEOCLSNAME | Object Type Name | 20101122 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SQL Templates Base Exception Class | 20101122 |
Method GET_TEMPLATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EO_INSTANCE | Call by reference | Type reference (TYPE) | ANY | 20100910 | ||||
| 2 | ET_INSTANCES | Call by reference | Type reference (TYPE) | IF_TPSQL_TYPES=>GTY_INSTANCES_T | 20101119 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SQL Templates Base Exception Class | 20101112 |
Method SET_CONTEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_CONTEXT | Call by reference | Object reference (TYPE REF TO) | IF_TPSQL_TEMPLATE_CONTEXT | Context for SQL Templates | 20100914 |
Method SET_CONTEXT on class CL_TPSQL_FACTORY has no exception.
Method SET_METADATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_METADATA | Call by reference | Object reference (TYPE REF TO) | IF_TPSQL_METADATA | Metadata Interface for Smart Templates | 20100914 |
Method SET_METADATA on class CL_TPSQL_FACTORY has no exception.
History
| Last changed by/on | SAP | 20140120 |
| SAP Release Created in | 731 |