1 13 package com.tonbeller.jpivot.olap.query; 14 15 import java.io.Serializable ; 16 17 21 public abstract class Memento implements Serializable { 22 23 private String mdxQuery; 24 25 boolean axesSwapped = false; 26 27 int topBottomCount = 0; 29 int sortMode = 0; 30 boolean sorting = false; 31 String [] sortPosMembers = null; 32 int quaxToSort = 0; 34 private QuaxBean[] quaxes; 35 36 boolean useQuax = false; 38 42 public String getMdxQuery() { 43 return mdxQuery; 44 } 45 46 50 public void setMdxQuery(String mdxQuery) { 51 this.mdxQuery = mdxQuery; 52 } 53 54 58 public boolean isAxesSwapped() { 59 return axesSwapped; 60 } 61 62 66 public void setAxesSwapped(boolean axesSwapped) { 67 this.axesSwapped = axesSwapped; 68 } 69 70 73 public int getTopBottomCount() { 74 return topBottomCount; 75 } 76 77 81 public void setTopBottomCount(int topBottomCount) { 82 this.topBottomCount = topBottomCount; 83 } 84 85 88 public int getSortMode() { 89 return sortMode; 90 } 91 92 96 public void setSortMode(int sortMode) { 97 this.sortMode = sortMode; 98 } 99 100 103 public boolean isSorting() { 104 return sorting; 105 } 106 107 111 public void setSorting(boolean sorting) { 112 this.sorting = sorting; 113 } 114 115 118 public String [] getSortPosMembers() { 119 return sortPosMembers; 120 } 121 122 125 public int getQuaxToSort() { 126 return quaxToSort; 127 } 128 129 133 public void setQuaxToSort(int quaxToSort) { 134 this.quaxToSort = quaxToSort; 135 } 136 137 138 142 public void setSortPosMembers(String [] members) { 143 sortPosMembers = members; 144 } 145 146 149 public QuaxBean[] getQuaxes() { 150 return quaxes; 151 } 152 153 157 public void setQuaxes(QuaxBean[] beans) { 158 quaxes = beans; 159 } 160 161 164 public boolean isUseQuax() { 165 return useQuax; 166 } 167 168 171 public void setUseQuax(boolean b) { 172 useQuax = b; 173 } 174 175 public abstract int getVersion(); 176 177 public abstract void setVersion(int i); 178 179 } | Popular Tags |