Class AbstractSQLMethod
- java.lang.Object
-
- com.arcadedb.query.sql.method.misc.AbstractSQLMethod
-
- All Implemented Interfaces:
SQLMethod,Comparable<SQLMethod>
- Direct Known Subclasses:
SQLMethodAppend,SQLMethodAsBoolean,SQLMethodAsDate,SQLMethodAsDateTime,SQLMethodAsDecimal,SQLMethodAsFloat,SQLMethodAsInteger,SQLMethodAsList,SQLMethodAsLong,SQLMethodAsMap,SQLMethodAsSet,SQLMethodAsString,SQLMethodCharAt,SQLMethodConvert,SQLMethodField,SQLMethodFormat,SQLMethodHash,SQLMethodIndexOf,SQLMethodJavaType,SQLMethodKeys,SQLMethodLastIndexOf,SQLMethodLeft,SQLMethodLength,SQLMethodNormalize,SQLMethodPrefix,SQLMethodRemove,SQLMethodRemoveAll,SQLMethodReplace,SQLMethodRight,SQLMethodSize,SQLMethodSplit,SQLMethodSubString,SQLMethodToJSON,SQLMethodToLowerCase,SQLMethodToUpperCase,SQLMethodTrim,SQLMethodType
public abstract class AbstractSQLMethod extends Object implements SQLMethod
- Author:
- Johann Sorel (Geomatys)
-
-
Constructor Summary
Constructors Constructor Description AbstractSQLMethod(String name)AbstractSQLMethod(String name, int nbparams)AbstractSQLMethod(String name, int minparams, int maxparams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SQLMethod o)booleanevaluateParameters()intgetMaxParams()intgetMinParams()StringgetName()protected ObjectgetParameterValue(Identifiable iRecord, String iValue)StringgetSyntax()Returns a convenient SQL String representation of the method.StringtoString()
-
-
-
Method Detail
-
getSyntax
public String getSyntax()
Description copied from interface:SQLMethodReturns a convenient SQL String representation of the method.Example :
field.myMethod( param1, param2, [optionalParam3])
This text will be used in exception messages.
-
getMinParams
public int getMinParams()
- Specified by:
getMinParamsin interfaceSQLMethod- Returns:
- minimum number of arguments requiered by this method
-
getMaxParams
public int getMaxParams()
- Specified by:
getMaxParamsin interfaceSQLMethod- Returns:
- maximum number of arguments requiered by this method
-
getParameterValue
protected Object getParameterValue(Identifiable iRecord, String iValue)
-
compareTo
public int compareTo(SQLMethod o)
- Specified by:
compareToin interfaceComparable<SQLMethod>
-
evaluateParameters
public boolean evaluateParameters()
- Specified by:
evaluateParametersin interfaceSQLMethod
-
-