Class AbstractSql2003Backend

    • Field Detail

      • SQL_WINDOW_1

        public static final java.lang.String SQL_WINDOW_1
        window function part 1.
        See Also:
        Constant Field Values
      • SQL_WINDOW_2

        public static final java.lang.String SQL_WINDOW_2
        window function part 2.
        See Also:
        Constant Field Values
      • SQL_WINDOW_LIMIT

        public static final java.lang.String SQL_WINDOW_LIMIT
        condition for limit and offset.
        See Also:
        Constant Field Values
      • SQL_WINDOW_OFFSET

        public static final java.lang.String SQL_WINDOW_OFFSET
        condition for limit and offset.
        See Also:
        Constant Field Values
      • RESERVED_WORDS_SQL2003

        public static final java.lang.String[] RESERVED_WORDS_SQL2003
        array of additional reserved words.
    • Constructor Detail

      • AbstractSql2003Backend

        public AbstractSql2003Backend()
    • Method Detail

      • buildSelectSql

        public void buildSelectSql​(java.lang.StringBuilder sqlBuilder,
                                   boolean writeLock,
                                   int limit,
                                   int offset)
        Description copied from interface: Backend
        Creates a select statement string from an inner sql string.

        sqlBuilder is anything as FROM... WHERE... ORDER BY....
        It is decorated with a leading SELECT plus optional clauses like for the given parameters.

        Specified by:
        buildSelectSql in interface Backend
        Overrides:
        buildSelectSql in class AbstractSql92Backend
        Parameters:
        sqlBuilder - the sql builder, initially containing the inner sql without leading SELECT.
        writeLock - true select should write lock
        limit - the limit value, ≤ 0 if no limit clause
        offset - the offset value, ≤ 0 if no offset clause
      • setLeadingSelectParameters

        public int setLeadingSelectParameters​(BackendPreparedStatement stmt,
                                              int limit,
                                              int offset)
        Description copied from interface: Backend
        Sets optional parameters before applying the original parameters.
        Specified by:
        setLeadingSelectParameters in interface Backend
        Overrides:
        setLeadingSelectParameters in class AbstractSql92Backend
        Parameters:
        stmt - the prepared statement
        limit - the limit value, ≤ 0 if no limit clause
        offset - the offset value, ≤ 0 if no offset clause
        Returns:
        the next parameter index
      • setTrailingSelectParameters

        public int setTrailingSelectParameters​(BackendPreparedStatement stmt,
                                               int index,
                                               int limit,
                                               int offset)
        Description copied from interface: Backend
        Sets optional parameters after applying the original parameters.
        Specified by:
        setTrailingSelectParameters in interface Backend
        Overrides:
        setTrailingSelectParameters in class AbstractSql92Backend
        Parameters:
        stmt - the prepared statement
        index - the first parameter index
        limit - the limit value, ≤ 0 if no limit clause
        offset - the offset value, ≤ 0 if no offset clause
        Returns:
        the next parameter index
      • sqlNextFromSequene

        public java.lang.String sqlNextFromSequene​(java.lang.String name)
        Description copied from interface: Backend
        Creates the SQL string to retrieve the next id from a sequence.
        Specified by:
        sqlNextFromSequene in interface Backend
        Overrides:
        sqlNextFromSequene in class AbstractSql92Backend
        Parameters:
        name - the name of the sequence
        Returns:
        the SQL code