1 24 25 package com.mckoi.database.interpret; 26 27 import com.mckoi.database.*; 28 29 35 36 public final class ByColumn 37 implements java.io.Serializable , StatementTreeObject, Cloneable { 38 39 static final long serialVersionUID = 8194415767416200855L; 40 41 44 public Variable name; 45 46 49 public Expression exp; 50 51 54 public boolean ascending = true; 55 56 57 public void prepareExpressions(ExpressionPreparer preparer) 58 throws DatabaseException { 59 if (exp != null) { 60 exp.prepare(preparer); 61 } 62 } 63 64 public Object clone() throws CloneNotSupportedException { 65 ByColumn v = (ByColumn) super.clone(); 66 if (name != null) { 67 v.name = (Variable) name.clone(); 68 } 69 if (exp != null) { 70 v.exp = (Expression) exp.clone(); 71 } 72 return v; 73 } 74 75 public String toString() { 76 return "ByColumn(" + name + ", " + exp + ", " + ascending + ")"; 77 } 78 79 } 80 | Popular Tags |