1 15 package org.apache.tapestry.vlib.ejb; 16 17 import java.io.Serializable ; 18 19 import org.apache.commons.lang.builder.ToStringBuilder; 20 21 31 32 public class SortOrdering implements Serializable 33 { 34 private static final long serialVersionUID = -1621923918904975133L; 35 36 private SortColumn _column; 37 private boolean _descending; 38 39 public SortOrdering(SortColumn column) 40 { 41 this(column, false); 42 } 43 44 public SortOrdering(SortColumn column, boolean descending) 45 { 46 _column = column; 47 _descending = descending; 48 } 49 50 public boolean isDescending() 51 { 52 return _descending; 53 } 54 55 public SortColumn getColumn() 56 { 57 return _column; 58 } 59 60 public String toString() 61 { 62 ToStringBuilder builder = new ToStringBuilder(this); 63 builder.append("column", _column); 64 builder.append("descending", _descending); 65 66 return builder.toString(); 67 } 68 69 } 70 | Popular Tags |