Class OFunction
java.lang.Object
com.orientechnologies.orient.core.metadata.function.OFunction
Stored function. It contains language and code to execute as a function. The execute() takes
parameters. The function is state-less, so can be used by different threads.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.executeInContext(OCommandContext iContext, Object... iArgs) Deprecated.executeInContext(OCommandContext iContext, Map<String, Object> iArgs) Deprecated.getCode()getId()getName()booleanvoidsave(ODatabaseSession database) setIdempotent(boolean iIdempotent) setLanguage(String iLanguage) setParameters(List<String> iParameters) toString()
-
Field Details
-
CLASS_NAME
- See Also:
-
-
Constructor Details
-
OFunction
public OFunction()Creates a new function. -
OFunction
Creates a new function wrapping the saved document.- Parameters:
iDocument- Document to assign
-
OFunction
Loads a function.- Parameters:
iRid- RID of the function to load
-
-
Method Details
-
getName
-
setName
-
getCode
-
setCode
-
getLanguage
-
setLanguage
-
getParameters
-
setParameters
-
isIdempotent
public boolean isIdempotent() -
setIdempotent
-
getCallback
-
setCallback
-
execute
Deprecated. -
executeInContext
Deprecated. -
executeInContext
Deprecated. -
execute
Deprecated. -
getId
-
toString
-
save
-
getDocument
-