public int getKeySeq ( ) { // This is a dumb way to do this int iLastIndexArea = m_record . getKeyAreaCount ( ) - 1 + DBConstants . MAIN_KEY_AREA ; for ( int nIndex = DBConstants . MAIN_KEY_AREA ; nIndex <= iLastIndexArea ; nIndex ++ ) { KeyAreaInfo index = m_record . getKeyArea ( nIndex ) ; if ( index == null ) return - 1 ; // Not found if ( this == index ) return nIndex ; // Zero based . MAIN_FIELD based } return - 1 ; // Not found }
Get the seq of this key area . Get rid of this method .