1 23 package org.apache.slide.store.impl.rdbms.expression; 24 25 import org.apache.slide.content.NodeProperty.NamespaceCache; 26 import org.apache.slide.search.basic.Literals; 27 import org.jdom.Element; 28 29 31 public class RDBMSIsDefinedExpression extends RDBMSCompareExpression { 32 33 public RDBMSIsDefinedExpression(Element element, RDBMSQueryContext context) { 34 super(element, context); 35 } 36 37 protected String compile() { 38 Element property = (Element) _element.getChild(Literals.PROP, NamespaceCache.DEFAULT_NAMESPACE).getChildren().get(0); 39 return "(p" + _tableIndex + ".PROPERTY_NAME = '" + property.getName() + "' AND " + 40 "p" + _tableIndex + ".PROPERTY_NAMESPACE = '" + property.getNamespaceURI() + "')"; 41 } 42 43 } 44 | Popular Tags |