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)
Deprecated.
|
Object |
execute(Object... iArgs)
Deprecated.
|
Object |
executeInContext(OCommandContext iContext,
Map<String,Object> iArgs)
Deprecated.
|
Object |
executeInContext(OCommandContext iContext,
Object... iArgs)
Deprecated.
|
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, reload, reload, reload, save, save, toStream
public 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)
@Deprecated public Object execute(Object... iArgs)
@Deprecated public Object executeInContext(OCommandContext iContext, Object... iArgs)
@Deprecated public Object executeInContext(OCommandContext iContext, Map<String,Object> iArgs)
@Deprecated public Object execute(Map<Object,Object> iArgs)
public ORID getId()
public String toString()
toString
in class ODocumentWrapper
Copyright © 2009–2020 OrientDB. All rights reserved.