
public class OFunction extends ODocumentWrapper
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
document| Constructor and Description |
|---|
OFunction()
Creates a new function.
|
OFunction(ODocument iDocument)
Creates a new function wrapping the saved document.
|
OFunction(ORecordId iRid)
Loads a function.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Map<Object,Object> iArgs) |
Object |
execute(Object... iArgs) |
Object |
executeInContext(OCommandContext iContext,
Map<String,Object> iArgs) |
Object |
executeInContext(OCommandContext iContext,
Object... iArgs) |
OCallable<Object,Map<Object,Object>> |
getCallback() |
String |
getCode() |
ORID |
getId() |
String |
getLanguage() |
String |
getName() |
List<String> |
getParameters() |
boolean |
isIdempotent() |
OFunction |
setCallback(OCallable<Object,Map<Object,Object>> callback) |
OFunction |
setCode(String iCode) |
OFunction |
setIdempotent(boolean iIdempotent) |
OFunction |
setLanguage(String iLanguage) |
OFunction |
setName(String iName) |
OFunction |
setParameters(List<String> iParameters) |
String |
toString() |
equals, fromStream, getDocument, hashCode, load, load, load, load, reload, reload, reload, save, save, toStreampublic static final String CLASS_NAME
public OFunction()
public OFunction(ODocument iDocument)
iDocument - Document to assignpublic OFunction(ORecordId iRid)
iRid - RID of the function to loadpublic String getName()
public String getCode()
public String getLanguage()
public boolean isIdempotent()
public OFunction setIdempotent(boolean iIdempotent)
public Object executeInContext(OCommandContext iContext, Object... iArgs)
public Object executeInContext(OCommandContext iContext, Map<String,Object> iArgs)
public ORID getId()
public String toString()
toString in class ODocumentWrapperCopyright © 2009–2025 OrientDB. All rights reserved.