Class SQLServerQueryRewriter

    • Field Detail

      • FIRST_FETCH_SUPPORTING_VERSION

        public static final int FIRST_FETCH_SUPPORTING_VERSION
        See Also:
        Constant Field Values
    • Constructor Detail

      • SQLServerQueryRewriter

        public SQLServerQueryRewriter​(JdbcDataContext dataContext)
    • Method Detail

      • isMaxRowsSupported

        public boolean isMaxRowsSupported()
        Description copied from interface: IQueryRewriter
        Gets whether this query rewriter is able to write the "Max rows" query property to the query string.
        Specified by:
        isMaxRowsSupported in interface IQueryRewriter
        Overrides:
        isMaxRowsSupported in class OffsetFetchQueryRewriter
        Returns:
        whether this query rewriter is able to write the "Max rows" query property to the query string.
      • rewriteColumnType

        public String rewriteColumnType​(org.apache.metamodel.schema.ColumnType columnType,
                                        Integer columnSize)
        Description copied from interface: IQueryRewriter
        Rewrites the name of a column type, as it is written in CREATE TABLE statements. Some databases dont support all column types, or have different names for them. The implementation of this method will do that conversion.
        Specified by:
        rewriteColumnType in interface IQueryRewriter
        Overrides:
        rewriteColumnType in class DefaultQueryRewriter
        Parameters:
        columnType - the (non-null) ColumnType to rewrite
        columnSize - the (possibly null) column size that may or may not have been specified
        Returns: