Class OFunction
java.lang.Object
com.orientechnologies.orient.core.type.ODocumentWrapper
com.orientechnologies.orient.core.metadata.function.OFunction
- All Implemented Interfaces:
Serializable
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)
- See Also:
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.type.ODocumentWrapper
document -
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()booleansetIdempotent(boolean iIdempotent) setLanguage(String iLanguage) setParameters(List<String> iParameters) toString()Methods inherited from class com.orientechnologies.orient.core.type.ODocumentWrapper
equals, fromStream, getDocument, hashCode, load, reload, reload, reload, save, save, toStream
-
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
- Overrides:
toStringin classODocumentWrapper
-