public void addRecord ( Rec record , boolean bMainQuery ) { if ( record == null ) return ; if ( this . contains ( record ) ) { // Don't add this twice. if ( ! bMainQuery ) return ; this . removeRecord ( record ) ; // Change order } if ( bMainQuery ) this . insertElementAt ( record , 0 ) ; else this . addElement ( record ) ; }
Add this record to this list .