private void persistBatch(){
  if (LOGGER.isDebugEnabled()) {
    LOGGER.debug("NucleotideSequenceLoader.persistBatch() method has been called.");
  }
  if (sequencesAwaitingInsertion.size() > 0) {
    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("Persisting " + sequencesAwaitingInsertion.size() + " nucleotide sequences");
    }
    nucleotideSequenceDAO.insertNewNucleotideSequences(sequencesAwaitingInsertion);
    sequencesAwaitingInsertion.clear();
  }
}

private void persistBatch ( ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "NucleotideSequenceLoader.persistBatch() method has been called." ) ; } if ( sequencesAwaitingInsertion . size ( ) > 0 ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Persisting " + sequencesAwaitingInsertion . size ( ) + " nucleotide sequences" ) ; } nucleotideSequenceDAO . insertNewNucleotideSequences ( sequencesAwaitingInsertion ) ; sequencesAwaitingInsertion . clear ( ) ; } }
persists all of the proteins in the list of proteinsawaitingpersistence and empties this collection , ready to be used again .
