1 28 29 package com.caucho.amber.expr; 30 31 import com.caucho.amber.query.FromItem; 32 33 34 37 public class CollectionIdExpr extends IdExpr { 38 private AmberExpr _path; 39 40 43 public CollectionIdExpr(FromItem fromItem, AmberExpr path) 44 { 45 super(fromItem); 46 47 _path = path; 48 } 49 50 53 AmberExpr getPath() 54 { 55 return _path; 56 } 57 58 61 public boolean usesFrom(FromItem from, int type, boolean isNot) 62 { 63 return ((getFromItem() == from) || 64 (getFromItem().getJoinExpr().getJoinTarget() == from)); 65 } 66 } 67 | Popular Tags |