Class AbstractSql2008Backend

  • All Implemented Interfaces:
    Backend

    public abstract class AbstractSql2008Backend
    extends AbstractSql2003Backend
    Common to all SQL2008 backends.
    Author:
    harald
    • Field Detail

      • SQL_OFFSET

        public static final java.lang.String SQL_OFFSET
        OFFSET string.
        See Also:
        Constant Field Values
      • SQL_FETCH_FIRST

        public static final java.lang.String SQL_FETCH_FIRST
        FETCH FIRST string.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSql2008Backend

        public AbstractSql2008Backend()
    • 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 AbstractSql2003Backend
        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