Class SQLMethodAsDateTime

  • All Implemented Interfaces:
    SQLMethod, Comparable<SQLMethod>

    public class SQLMethodAsDateTime
    extends AbstractSQLMethod
    Transforms a value to datetime. If the conversion is not possible, null is returned.
    Author:
    Johann Sorel (Geomatys), Luca Garulli (l.garulli--(at)--gmail.com)
    • Constructor Detail

      • SQLMethodAsDateTime

        public SQLMethodAsDateTime()
    • 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.

        Specified by:
        getSyntax in interface SQLMethod
        Overrides:
        getSyntax in class AbstractSQLMethod
        Returns:
        String , never null.
      • execute

        public Object execute​(Object iThis,
                              Identifiable iCurrentRecord,
                              CommandContext iContext,
                              Object ioResult,
                              Object[] iParams)
        Description copied from interface: SQLMethod
        Process a record.
        Parameters:
        iThis - current object
        iCurrentRecord - : current record
        iContext - execution context
        ioResult - : field value
        iParams - : function parameters, number is ensured to be within minParams and maxParams.
        Returns:
        evaluation result