* @param log_date the clustering run date
* @throws Exception if the database interface could not be loaded.
*/
public void storeClusters(List<DomainCluster> clusters,
Date log_date) throws Exception {
DBInterface dbiface = DBInterfaceFactory.loadDBInterface();
if (dbiface == null) {
throw new Exception("Could not load DB interface.");
}
if(log.isInfoEnabled()){
log.info(this.getClass().getSimpleName() + " Started: "
+ Calendar.getInstance().getTime());
log.info("Storing " + clusters.size() + " Clusters.");
}
dbiface.initClusterTables(log_date);
dbiface.storeClusters(clusters, "SIE", log_date);
if(log.isInfoEnabled()){
log.info("Clusters stored.");
log.info(this.getClass().getSimpleName() + " Finished: "
+ Calendar.getInstance().getTime());
}