User-defined system propertiesは、このページで説明する特別な手順で管理されます。最も重要な点は、VDBごとに保存され、他のVDBからは利用できないことと、VDB内のすべてのユーザーが読み取り可能で、作成者または管理者のみが編集および削除可能であることの2点です。

SYSADMIN.addSystemProperty

このプロシージャは、新しいシステムプロパティを追加します:

CREATE FOREIGN PROCEDURE addSystemProperty(IN propType string NOT NULL, IN propKey string NOT NULL, IN properties string NOT NULL, OUT id biginteger NOT NULL RESULT)

以下の必須パラメータを取ります:

Parameter

Description

propType

Type of system property, can be an empty string

propKey

System property key, unique within a VDB

properties

System property string, can be an empty string or hold a string with spaces and/or special characters

これは新しく作成されたプロパティのID を返し、このページで説明する他の手順で使用することができます。

Example

CALL "SYSADMIN.addSystemProperty"(
"propType" => 'string_propType',
"propKey" => 'string_propKey',
"properties" => 'string_properties'
);; 

SYSADMIN.editSystemProperty

このプロシージャは、ID によって既存のシステムプロパティを編集します:

CREATE FOREIGN PROCEDURE editSystemProperty(IN id biginteger NOT NULL, IN propType string NOT NULL, IN propKey string NOT NULL, IN properties string NOT NULL)

以下の必須パラメータを取ります:

Parameter

Description

id

Unique property id

propType

Type of system property, can be an empty string

propKey

System property key, unique within a VDB

properties

System property string, can be an empty string or hold a string with spaces and/or special characters

Example

CALL "SYSADMIN.editSystemProperty"(
"id" => biginteger_id,
"propType" => 'string_propType',
"propKey" => 'string_propKey',
"properties" => 'string_properties'
);;

Please note that a system property can be edited only by its creator or the administrator.

SYSADMIN.deleteSystemProperty

このプロシージャは、ID によって既存のシステム・プロパティを削除します:

CREATE FOREIGN PROCEDURE deleteSystemProperty(IN id biginteger NOT NULL)

これは1つの必須パラメータを取ります:id一意のプロパティ ID。

Example

 CALL "SYSADMIN.deleteSystemProperty"("id" => biginteger_id);;

Please note that a system property can be deleted only by its creator or the administrator.