org.axiondb.functions
Class MatchesFunction

java.lang.Object
  extended by org.axiondb.BaseSelectable
      extended by org.axiondb.functions.BaseFunction
          extended by org.axiondb.functions.BaseRegExpFunction
              extended by org.axiondb.functions.MatchesFunction
All Implemented Interfaces:
java.io.Serializable, Function, FunctionFactory, ConcreteFunction, ScalarFunction, Selectable

public class MatchesFunction
extends BaseRegExpFunction
implements ScalarFunction, FunctionFactory

MATCHES(string, string): returns a BooleanTypeboolean that indicates whether first string matches the regular expression pattern represented by the second string.

Version:
$Revision: 1.9 $ $Date: 2005/06/18 01:03:45 $
See Also:
Serialized Form

Field Summary
protected static DataType ARG_TYPE
           
protected static DataType RETURN_TYPE
           
 
Fields inherited from class org.axiondb.BaseSelectable
_hash
 
Constructor Summary
MatchesFunction()
           
 
Method Summary
 java.lang.Object evaluate(RowDecorator row)
           
 DataType getDataType()
           
 boolean isValid()
           
 ConcreteFunction makeNewInstance()
           
 
Methods inherited from class org.axiondb.functions.BaseRegExpFunction
compile, getFromCache, putInCache
 
Methods inherited from class org.axiondb.functions.BaseFunction
addArgument, getArgument, getArgumentCount, setArgument, setVariableContext, toString
 
Methods inherited from class org.axiondb.BaseSelectable
getAlias, getLabel, getName, setAlias, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.Function
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument
 
Methods inherited from interface org.axiondb.Selectable
getLabel, setVariableContext
 

Field Detail

ARG_TYPE

protected static final DataType ARG_TYPE

RETURN_TYPE

protected static final DataType RETURN_TYPE
Constructor Detail

MatchesFunction

public MatchesFunction()
Method Detail

makeNewInstance

public ConcreteFunction makeNewInstance()
Specified by:
makeNewInstance in interface FunctionFactory

getDataType

public DataType getDataType()
Specified by:
getDataType in interface Selectable
Specified by:
getDataType in class BaseFunction

evaluate

public java.lang.Object evaluate(RowDecorator row)
                          throws AxionException
Specified by:
evaluate in interface ScalarFunction
Specified by:
evaluate in interface Selectable
Throws:
AxionException

isValid

public boolean isValid()
Specified by:
isValid in interface ConcreteFunction
Specified by:
isValid in class BaseFunction