private void prepareAssocBeanImports ( ) { importTypes . remove ( DB ) ; importTypes . remove ( TQROOTBEAN ) ; importTypes . remove ( DATABASE ) ; importTypes . add ( TQASSOCBEAN ) ; if ( isEntity ( ) ) { importTypes . add ( TQPROPERTY ) ; importTypes . add ( origDestPackage + ".Q" + origShortName ) ; } // remove imports for the same package Iterator < String > importsIterator = importTypes . iterator ( ) ; String checkImportStart = destPackage + ".QAssoc" ; while ( importsIterator . hasNext ( ) ) { String importType = importsIterator . next ( ) ; if ( importType . startsWith ( checkImportStart ) ) { importsIterator . remove ( ) ; } } }
Prepare the imports for writing assoc bean .