Package mydatagenerator.core.database.operations

Examples of mydatagenerator.core.database.operations.DatabaseCleaner.deleteAll()


                         logger.debug("Changed the engine type of table "+archiveTables.get(i)+" to InnoDB");
                           }
                          
                           // clean ALL the tables
                           startTime = System.currentTimeMillis();                      
                           databaseCleaner.deleteAll(allTables.toArray(new String[]{}));                     
                           endTime = System.currentTimeMillis();
                          
                       }else{    // User don't want clean Archive tables
                        
                         if(Log4jManager.IS_LOGGING_CONFIGURED)
View Full Code Here


                              effectiveTablesToClean.add(allTables.get(i));  
                           }
                      
                           // clean only the NON-ARCHIVE tables
                           startTime = System.currentTimeMillis();                      
                           databaseCleaner.deleteAll(effectiveTablesToClean.toArray(new String[]{}));                     
                           endTime = System.currentTimeMillis();                      
                       }
                      
                     }else{   
                        logOutputTextArea.append("No tables found with 'ARCHIVE' engine \n");
View Full Code Here

                        logOutputTextArea.append("No tables found with 'ARCHIVE' engine \n");
                        logOutputTextArea.append("Total tables cleanable: "+allTables.size()+"\n");
                        logOutputTextArea.append("Database cleaning started...\n");
                      
                        startTime = System.currentTimeMillis();                     
                       databaseCleaner.deleteAll(allTables.toArray(new String[]{}));                            
                       endTime = System.currentTimeMillis();                      
                    
                    
                     /*  Restore the previously modified engine type from InnoDB to ARCHIVE  */
                     if(cleanArchiveTable)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.