Interface that controls a database function, which you can in turn use in OrientDB SQL on the database or within your applications.
Functions in OrientDB are stored operations that you can call from the Console or through any of the database driver methods that use OrientDB SQL. OrientDB provides a number of functions by default and the user can define a series of additional functions as need. They are stored in the database as a series of
OFunction instances accessible through
OMetadata and the
In order to work with functions from your application, you first need to import the class into your code.
Each function supports the following methods.
|Retrieves the function code|
|Retrieves the function Record ID|
|Retrieves the name of the scripting language the function uses|
|Retrieves the logical name of the function|
|Retrieves the parameters available for use in the function code|
|Determines whether the function performs idempotent queries or executes non-idempotent commands|
|Defines the function code|
|Defines whether the function is idempotent or non-idempotent|
|Defines the scripting language the function uses|
|Defines the logical name of the function|
|Defines the parameters available to the function code|