1 package com.calipso.reportgenerator.common; 2 3 import java.io.Serializable ; 4 5 8 public class QueryMetric implements Serializable { 9 10 private String name; 11 private int index; 12 private boolean visible; 13 private int metricOrder; 14 private boolean accumulable; 15 16 23 public QueryMetric(String name, int index, boolean visible, int metricOrder, boolean accumulable) { 24 this.name = name; 25 this.index = index; 26 this.visible = visible; 27 this.metricOrder = metricOrder; 28 this.accumulable = accumulable; 29 } 30 31 35 public String getName() { 36 return name; 37 } 38 39 43 public int getIndex() { 44 return index; 45 } 46 47 51 public boolean getVisible() { 52 return visible; 53 } 54 55 59 public void setVisible(boolean visible) { 60 this.visible = visible; 61 } 62 63 67 public int getMetricOrder() { 68 return metricOrder; 69 } 70 71 public void setName(String name) { 72 this.name = name; 73 } 74 75 79 public void setMetricOrder(int metricOrder) { 80 this.metricOrder = metricOrder; 81 } 82 83 88 public void setMetricProperties(boolean visible, int order) { 89 this.visible = visible; 90 if (order >= 0) { 91 this.metricOrder = order; 92 } 93 } 94 95 public boolean isAccumulable() { 96 return accumulable; 97 } 98 99 public void setAccumulable(boolean accumulable) { 100 this.accumulable = accumulable; 101 } 102 } 103 | Popular Tags |