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 int
compareTo(SQLMethod o)
boolean
evaluateParameters()
int
getMaxParams()
int
getMinParams()
String
getName()
protected Object
getParameterValue(Identifiable iRecord, String iValue)
String
getSyntax()
Returns a convenient SQL String representation of the method.String
toString()
-
-
-
Method Detail
-
getSyntax
public String getSyntax()
Description copied from interface:SQLMethod
Returns 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:
getMinParams
in interfaceSQLMethod
- Returns:
- minimum number of arguments requiered by this method
-
getMaxParams
public int getMaxParams()
- Specified by:
getMaxParams
in 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:
compareTo
in interfaceComparable<SQLMethod>
-
evaluateParameters
public boolean evaluateParameters()
- Specified by:
evaluateParameters
in interfaceSQLMethod
-
-