1 19 package org.netbeans.modules.db.sql.visualeditor.querymodel; 20 21 import java.util.Collection ; 22 23 26 public class Literal implements Value { 27 28 30 private Object _value; 31 32 33 35 public Literal() { 36 } 37 38 public Literal(Object value) { 39 _value = value; 40 } 41 42 43 45 public String genText() { 46 return _value.toString(); 47 } 48 49 public String toString() { 50 return _value.toString(); 51 } 52 53 54 56 public Object getValue() { 57 return _value; 58 } 59 60 public void getReferencedColumns(Collection columns) {} 62 public void getQueryItems(Collection items) {} 63 public Expression findExpression(String table1, String column1, String table2, String column2) { 64 return null; 65 } 66 67 public boolean isParameterized() { 68 71 74 77 return (((_value.toString().indexOf("?")) != -1) && 81 ((_value.toString().indexOf("'?'")) == -1)); 82 } 83 84 public void renameTableSpec(String oldTableSpec, String corrName) {} 85 86 } 87 88 89 | Popular Tags |