1 24 25 package com.mckoi.database; 26 27 37 38 public final class Assignment 39 implements StatementTreeObject, java.io.Serializable , Cloneable { 40 41 static final long serialVersionUID = 498589698743066869L; 42 43 46 private Variable variable; 47 48 51 private Expression expression; 52 53 56 public Assignment(Variable variable, Expression expression) { 57 this.variable = variable; 58 this.expression = expression; 59 } 60 61 64 public Variable getVariable() { 65 return variable; 66 } 67 68 71 public Expression getExpression() { 72 return expression; 73 } 74 75 public void prepareExpressions(ExpressionPreparer preparer) 77 throws DatabaseException { 78 if (expression != null) { 79 expression.prepare(preparer); 80 } 81 } 82 83 public Object clone() throws CloneNotSupportedException { 84 Assignment v = (Assignment) super.clone(); 85 v.variable = (Variable) variable.clone(); 86 v.expression = (Expression) expression.clone(); 87 return v; 88 } 89 90 } 91 | Popular Tags |