private void executeCommands(final List<PersistenceCommand> commands) {

    for (final PersistenceCommand command : commands) {
      command.execute(null);
    }
    getPersistenceManager().flush();
  }
Esempio n. 2
0
 @Override
 public void execute(final List<PersistenceCommand> commands) throws ObjectPersistenceException {
   if (LOG.isInfoEnabled()) {
     LOG.info("execute commands");
   }
   for (final PersistenceCommand command : commands) {
     command.execute(null);
   }
   LOG.info("end execution");
 }