1 23 package org.apache.slide.store.impl.rdbms.expression; 24 25 import org.jdom.Element; 26 27 29 public class RDBMSNotIsPrincipalExpression extends RDBMSCompareExpression { 30 31 public RDBMSNotIsPrincipalExpression(Element element, RDBMSQueryContext context) { 32 super(element, context); 33 } 34 35 protected String compile() { 36 return "(p" + _tableIndex + ".PROPERTY_NAME = 'resourcetype' AND " + 37 "p" + _tableIndex + ".PROPERTY_NAMESPACE = 'DAV:' AND " + 38 "p" + _tableIndex + ".PROPERTY_VALUE NOT LIKE '%<principal/>%')"; 39 } 40 41 protected String getPropertyName() { 42 return "resourcetype"; 43 } 44 45 protected String getPropertyNamespace() { 46 return "DAV:"; 47 } 48 49 } 50 | Popular Tags |