Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 

DB_METH_ARG_SETDOMAIN_ELM

If the data type of the input/output argument of the method of the class is a set, for which the current user has access authorization in the database, this macro represents the data type of the element of the set.

Attribute Name

Data Type

Description

meth_name

VARCHAR(255)

Method name

class_name

VARCHAR(255)

Name of the class to which the method belongs

meth_type

VARCHAR(8)

‘INSTANCE’ for an instance method, and 'CLASS' for a class method.

index_of

INTEGER

Order of arguments listed in the function definition. Begins with 0 if it is a return value, and 1 if it is an input argument.

data_type

VARCHAR(9)

Data type of the element

prec

INTEGER

Precision of the element

scale

INTEGER

Scale of the element

code_set

INTEGER

Character set if the data type of the element is a character

domain_class_name

VARCHAR(255)

Domain class name if the data type of the element is an object

Definition

CREATE VCLASS db_meth_arg_setdomain_elm(

meth_name, class_name, meth_type,

index_of, data_type, prec, scale, code_set, domain_class_name)

AS

SELECT s.meth_of.meth_name, s.meth_of.class_of.class_name,

       CASE WHEN s.meth_of.meth_type = 0 THEN 'INSTANCE' ELSE 'CLASS' END,

       a.index_of, et.type_name, e.prec, e.scale, e.code_set,

       e.class_of.class_name

FROM _db_meth_sig s, _db_meth_arg a, _db_domain d,

      TABLE(d.set_domains) AS t(e), _db_data_type et

WHERE a.meth_sig_of = s AND d.object_of = a AND e.data_type = et.type_id AND

        (CURRENT_USER = 'DBA' OR

        {s.meth_of.class_of.owner.name} subseteq (

                SELECT set{CURRENT_USER} + coalesce(sum(set{t.g.name}), set{})

                from db_user u, table(groups) as t(g)

                where u.name = CURRENT_USER ) OR

        {s.meth_of.class_of} subseteq (

SELECT sum(set{au.class_of})

                FROM _db_auth au

                WHERE {au.grantee.name} subseteq (

                            SELECT set{CURRENT_USER} + coalesce(sum(set{t.g.name}), set{})

                            from db_user u, table(groups) as t(g)

                            where u.name = CURRENT_USER ) AND

                                    au.auth_type = 'SELECT'));