/*
 * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
 */
package org.ligoj.app.plugin.prov.dao;

import lombok.Getter;

/**
 * Optimizer type of lookups
 */
@Getter
public enum Optimizer {

	/**
	 * Optimization by cost (USD)
	 */
	COST("totalCost", "totalCo2"),

	/**
	 * Optimization by CO2 consumption (g)
	 */
	CO2("totalCo2", "totalCost");

	/**
	 * The primary ascending sorted property name.
	 */
	private final String orderPrimary;

	/**
	 * The secondary ascending sorted property name.
	 */
	private final String orderSecondary;

	Optimizer(final String orderPrimary, final String orderSecondary) {
		this.orderPrimary = orderPrimary;
		this.orderSecondary = orderSecondary;
	}

}

@@ -258,33 +258,8 @@
 COST
-(%22totalCost%22, %22totalCo2%22)
 ,%0A%0A%09
@@ -315,377 +315,9 @@
 %09CO2
-(%22totalCo2%22, %22totalCost%22);%0A%0A%09/**%0A%09 * The primary ascending sorted property name.%0A%09 */%0A%09private final String orderPrimary;%0A%0A%09/**%0A%09 * The secondary ascending sorted property name.%0A%09 */%0A%09private final String orderSecondary;%0A%0A%09Optimizer(final String orderPrimary, final String orderSecondary) %7B%0A%09%09this.orderPrimary = orderPrimary;%0A%09%09this.orderSecondary = orderSecondary;%0A%09%7D
+;
 %0A%0A%7D%0A

Remove unused optimizer attributes