/*
 * Copyright (c) 2009-2013 Topi Nieminen
 */
package fi.tnie.db.query;

import java.io.Serializable;

public class QueryTime
	implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7899684211701751541L;
	private long queryExecutionTime;
	private long populationTime;
	
	/**
	 * No-argument constructor for GWT Serialization
	 */
	@SuppressWarnings("unused")
	private QueryTime() {
	}
	
	public QueryTime(long queryExecutionTime) {
		super();
		this.queryExecutionTime = queryExecutionTime;
	}

	public QueryTime(long queryExecutionTime, long populationTime) {
		super();
		this.queryExecutionTime = queryExecutionTime;
		this.populationTime = populationTime;
	}
	
	public long getQueryExecutionTime() {
		return queryExecutionTime;
	}
	
	public long getPopulationTime() {
		return populationTime;
	}
	
}

@@ -832,10 +832,318 @@
 e;%0A%09%7D%0A%09%0A
+%09@Override%0A%09public String toString() %7B%0A%09%09StringBuilder buf = new StringBuilder();%0A%09%09%0A%09%09buf.append(super.toString());%0A%09%09buf.append(%22: execution=%22);%0A%09%09buf.append(this.queryExecutionTime);%0A%09%09buf.append(%22ms; population: %22);%0A%09%09buf.append(this.populationTime);%0A%09%09buf.append(%22ms%22);%09%09%0A%09%09%0A%09%09return buf.toString();%0A%09%7D%0A
 %7D%0A

make toString() more verbose