Class AbstractDatabaseQueries

    • Constructor Detail

      • AbstractDatabaseQueries

        public AbstractDatabaseQueries()
    • Method Detail

      • regexpKeyword

        public abstract String regexpKeyword()
        Returns the keyword for regular expression matching in queries.
        Returns:
        the keyword
      • regexp

        public String regexp​(String col,
                             BaseRegExp expr)
        Generates a regexp expression from the column and regular expression.
        Returns:
        the expression
      • regexp

        public String regexp​(String col,
                             String expr)
        Generates a regexp expression from the column and regular expression.
        Returns:
        the expression
      • limitKeyword

        public abstract String limitKeyword()
        Returns the keyword/expression for limiting the number of rows.
        Returns:
        the keyword/expression
      • limit

        public String limit​(int max)
        Generates the row limiting expression. NB: requires an ORDER BY in the statement.
        Parameters:
        max - the maximum number of rows to return
        Returns:
        the expression
      • handles

        public abstract boolean handles​(String url)
        Checks whether this URL is handled.
        Parameters:
        url - the URL to check
        Returns:
        true if handled by this type class
      • getHandler

        public static AbstractDatabaseQueries getHandler​(String url)
        Returns the handler for the JDBC url.
        Parameters:
        url - the URL
        Returns:
        the handler, null if no support available