1 19 package org.netbeans.modules.db.sql.visualeditor.querymodel; 20 21 import java.util.ArrayList ; 22 import java.util.Collection ; 23 24 28 public class NotNode implements Expression { 29 30 32 34 Expression _cond; 35 36 37 39 public NotNode(Expression cond) { 40 41 _cond = cond; 42 } 43 44 45 47 public Expression findExpression(String table1, String column1, String table2, String column2) { 48 return _cond.findExpression(table1, column1, table2, column2); 49 } 50 51 public void getReferencedColumns(Collection comlumns) { 53 _cond.getReferencedColumns(comlumns); 54 } 55 56 public void getQueryItems(Collection items) { 57 items.add(_cond); 58 } 59 60 public String genText() { 62 return " ( NOT " + _cond.genText() + ") "; } 64 65 public String toString() { 66 return ""; } 68 69 public boolean isParameterized() { 70 return _cond.isParameterized(); 71 } 72 73 public void renameTableSpec(String oldTableSpec, String corrName) { 74 _cond.renameTableSpec(oldTableSpec, corrName); 75 } 76 } 77 | Popular Tags |