Documentation of 'org.hsqldb.FunctionCustom' Java class
FunctionCustom
org.hsqldb

Class FunctionCustom

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class FunctionCustom
    extends FunctionSQL
    Implementation of HSQLDB functions that are not defined by the SQL standard.

    Some functions are translated into equivalent SQL Standard functions.

    Since:
    1.9.0
    • Field Detail

      • openGroupNumericFunctions

        public static final java.lang.String[] openGroupNumericFunctions
      • openGroupStringFunctions

        public static final java.lang.String[] openGroupStringFunctions
      • openGroupDateTimeFunctions

        public static final java.lang.String[] openGroupDateTimeFunctions
      • openGroupSystemFunctions

        public static final java.lang.String[] openGroupSystemFunctions
    • Method Detail

      • newCustomFunction

        public static FunctionSQL newCustomFunction(java.lang.String token,
                                                    int tokenType)
      • isRegularFunction

        public static boolean isRegularFunction(int tokenType)
      • isValueFunction

        public static boolean isValueFunction(int tokenType)
      • getSQL

        public java.lang.String getSQL()
        Description copied from class: Expression
        For use with CHECK constraints. Under development. Currently supports a subset of expressions and is suitable for CHECK search conditions that refer only to the inserted/updated row. For full DDL reporting of VIEW select queries and CHECK search conditions, future improvements here are dependent upon improvements to SELECT query parsing, so that it is performed in a number of passes. An early pass should result in the query turned into an Expression tree that contains the information in the original SQL without any alterations, and with tables and columns all resolved. This Expression can then be preserved for future use. Table and column names that are not user-defined aliases should be kept as the HsqlName structures so that table or column renaming is reflected in the precompiled query.
        Overrides:
        getSQL in class FunctionSQL
      • soundex

        public static char[] soundex(java.lang.String s)
        Returns a four character code representing the sound of the given String. Non-ASCCI characters in the input String are ignored.

        This method was rewritten for HSQLDB to comply with the description at http://www.archives.gov/research/census/soundex.html .

        Parameters:
        s - the String for which to calculate the 4 character SOUNDEX value
        Returns:
        the 4 character SOUNDEX value for the given String

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.