Creating an opaque data type
About this task
To create an opaque data type, follow these steps:
Procedure
- Create the internal structure for the opaque data type.
- Write and register the support functions.
- Register the opaque data type in the database with the CREATE OPAQUE TYPE statement.
- Provide access to the opaque data type and its support functions with the GRANT statement.
- Write any SQL-invoked functions that are needed to support the opaque data type.
- Provide any customized secondary-access methods that the opaque data type might need.