public int compareNames ( SchemaColumn that ) { String thatTbl ; String thisTbl ; if ( m_tableAlias != null && that . m_tableAlias != null ) { thisTbl = m_tableAlias ; thatTbl = that . m_tableAlias ; } else { thisTbl = m_tableName ; thatTbl = that . m_tableName ; } int tblCmp = nullSafeStringCompareTo ( thisTbl , thatTbl ) ; if ( tblCmp != 0 ) { return tblCmp ; } String thisCol ; String thatCol ; if ( m_columnName != null && that . m_columnName != null ) { thisCol = m_columnName ; thatCol = that . m_columnName ; } else { thisCol = m_columnAlias ; thatCol = that . m_columnAlias ; } int colCmp = nullSafeStringCompareTo ( thisCol , thatCol ) ; return colCmp ; }
Compare this schema column to the input .