Class AbstractSQLServerDictionary

    • Constructor Detail

      • AbstractSQLServerDictionary

        public AbstractSQLServerDictionary()
    • Method Detail

      • getColumns

        public Column[] getColumns​(java.sql.DatabaseMetaData meta,
                                   java.lang.String catalog,
                                   java.lang.String schemaName,
                                   java.lang.String tableName,
                                   java.lang.String colName,
                                   java.sql.Connection conn)
                            throws java.sql.SQLException
        Description copied from class: DBDictionary
        Reflect on the schema to find columns matching the given table and column patterns.
        Overrides:
        getColumns in class DBDictionary
        Throws:
        java.sql.SQLException
      • setNull

        public void setNull​(java.sql.PreparedStatement stmnt,
                            int idx,
                            int colType,
                            Column col)
                     throws java.sql.SQLException
        Description copied from class: DBDictionary
        Set null as a parameter to the statement. The column type will come from Types.
        Overrides:
        setNull in class DBDictionary
        Throws:
        java.sql.SQLException
      • appendSelectRange

        protected void appendSelectRange​(SQLBuffer buf,
                                         long start,
                                         long end,
                                         boolean subselect)
        Description copied from class: DBDictionary
        If this dictionary can select ranges, use this method to append the range SQL.
        Overrides:
        appendSelectRange in class DBDictionary
      • substring

        public void substring​(SQLBuffer buf,
                              FilterValue str,
                              FilterValue start,
                              FilterValue length)
        Description copied from class: DBDictionary
        Invoke this database's substring function. Numeric parameters are inlined if possible. This is to handle grouping by SUBSTRING - most databases do not allow parameter binding in this case.
        Overrides:
        substring in class DBDictionary
        Parameters:
        buf - the SQL buffer to write the substring invocation to
        str - a query value representing the target string
        start - a query value representing the start index
        length - a query value representing the length of substring, or null for none