1 28 29 package com.caucho.db.sql; 30 31 import com.caucho.log.Log; 32 33 import java.sql.SQLException ; 34 import java.util.ArrayList ; 35 import java.util.logging.Logger ; 36 37 class NullExpr extends Expr { 38 private static final Logger log = Log.open(NullExpr.class); 39 40 NullExpr() 41 { 42 } 43 44 47 public boolean isNull(QueryContext context) 48 throws SQLException 49 { 50 return true; 51 } 52 53 56 public Class getType() 57 { 58 return String .class; 59 } 60 61 64 public long subCost(ArrayList <FromItem> fromList) 65 { 66 return 0; 67 } 68 69 72 public String evalString(QueryContext context) 73 throws SQLException 74 { 75 return null; 76 } 77 78 public String toString() 79 { 80 return "null"; 81 } 82 } 83 | Popular Tags |