Class TNiladicFunctionUtil

Object
gudusoft.gsqlparser.util.TNiladicFunctionUtil

public class TNiladicFunctionUtil extends Object
Utility class for checking niladic functions (built-in functions without parentheses). Niladic functions are functions that can be called without parentheses and look like column references but are actually function calls returning values. Examples: - SQL Server: CURRENT_USER, SYSTEM_USER, CURRENT_TIMESTAMP - BigQuery: CURRENT_DATE, CURRENT_DATETIME, CURRENT_TIME - PostgreSQL: CURRENT_DATE, CURRENT_USER, LOCALTIME The function list is loaded from: /gudusoft/gsqlparser/builtinFunctions/niladicFunctions.properties
  • Constructor Details

  • Method Details

    • isNiladicFunction

      public static boolean isNiladicFunction(EDbVendor vendor, String functionName)
      Check if a name is a niladic function for the given database vendor.
      Parameters:
      vendor - The database vendor
      functionName - The function name to check (case-insensitive)
      Returns:
      true if it's a known niladic function for this vendor
    • getNiladicFunctions

      public static Set<String> getNiladicFunctions(EDbVendor vendor)
      Get all niladic functions for a vendor.
      Parameters:
      vendor - The database vendor
      Returns:
      Set of niladic function names (uppercase), or empty set if none