
public class OSQLStaticReflectiveFunction extends OSQLFunctionAbstract
OSQLFunction is able to invoke a static method using reflection. If contains more
than one Method it tries to pick the one that better fits the input parameters.maxParams, minParams, name| Constructor and Description |
|---|
OSQLStaticReflectiveFunction(String name,
int minParams,
int maxParams,
Method... methods) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Object iThis,
OIdentifiable iCurrentRecord,
Object iCurrentResult,
Object[] iParams,
OCommandContext iContext)
Process a record.
|
String |
getSyntax()
Returns a convenient SQL String representation of the function.
|
aggregateResults, config, filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult, shouldMergeDistributedResult, toStringpublic Object execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext)
OSQLFunctioniCurrentRecord - : current recordiCurrentResult - TODOiParams - : function parameters, number is ensured to be within minParams and maxParams.iContext - : object calling this functionpublic String getSyntax()
OSQLFunctionExample :
myFunction( param1, param2, [optionalParam3])
This text will be used in exception messages.
Copyright © 2009–2025 OrientDB. All rights reserved.