Class OSQLMethodExclude
java.lang.Object
com.orientechnologies.orient.core.sql.method.misc.OAbstractSQLMethod
com.orientechnologies.orient.core.sql.functions.misc.OSQLMethodExclude
- All Implemented Interfaces:
OSQLMethod,Comparable<OSQLMethod>
Filter the content by excluding only some fields. If the content is a document, then creates a
copy without the excluded fields. If it's a collection of documents it acts against on each
single entry.
Syntax:
exclude(<field|value|expression> [,<field-name>]* )
Examples:
SELECT exclude(roles, 'permissions') FROM OUser
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Object iThis, OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iParams) Process a record.Returns a convinient SQL String representation of the method.Methods inherited from class com.orientechnologies.orient.core.sql.method.misc.OAbstractSQLMethod
compareTo, getMaxParams, getMinParams, getName, getParameterValue, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OSQLMethodExclude
public OSQLMethodExclude()
-
-
Method Details
-
getSyntax
Description copied from interface:OSQLMethodReturns a convinient SQL String representation of the method.Example :
field.myMethod( param1, param2, [optionalParam3])
This text will be used in exception messages.- Specified by:
getSyntaxin interfaceOSQLMethod- Overrides:
getSyntaxin classOAbstractSQLMethod- Returns:
- String , never null.
-
execute
public Object execute(Object iThis, OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iParams) Description copied from interface:OSQLMethodProcess a record.iCurrentRecord- : current recordiContext- execution contextioResult- : field valueiParams- : function parameters, number is ensured to be within minParams and maxParams.- Returns:
- evaluation result
-