This breaks the build, because stores currently does not depend from the
webdav layer.
The problems are the imports of AclConstants and DeltaV constants. Can
we resolve the informations from otherwhere, or want we the constants in the
shared util (org.apache.slide.util)?


regards, Stefan

[EMAIL PROTECTED] wrote:

unico       2004/10/01 04:35:37

Modified: src/stores/org/apache/slide/store/impl/rdbms/expression Tag:
SLIDE_2_1_RELEASE_BRANCH
RDBMSExpressionFactory.java
Log:
complete list of live properties that are not to be queried over SQL
Revision Changes Path
No revision
No revision
1.9.2.3 +15 -7 jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/expression/RDBMSExpressionFactory.java
Index: RDBMSExpressionFactory.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/expression/RDBMSExpressionFactory.java,v
retrieving revision 1.9.2.2
retrieving revision 1.9.2.3
diff -u -r1.9.2.2 -r1.9.2.3
--- RDBMSExpressionFactory.java 28 Sep 2004 11:35:42 -0000 1.9.2.2
+++ RDBMSExpressionFactory.java 1 Oct 2004 11:35:36 -0000 1.9.2.3
@@ -26,6 +26,7 @@
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
+import java.util.Set;
import org.apache.slide.content.NodeProperty.NamespaceCache;
import org.apache.slide.search.BadQueryException;
@@ -38,16 +39,23 @@
import org.apache.slide.search.basic.Literals;
import org.apache.slide.store.impl.rdbms.AbstractRDBMSStore;
import org.apache.slide.store.impl.rdbms.RDBMSComparableResourcesPool;
+import org.apache.slide.webdav.util.AclConstants;
+import org.apache.slide.webdav.util.DeltavConstants;
import org.jdom.Element;
/**
+ * DASL Basic search expression factory that compiles query expressions
+ * to native SQL queries.
*/
public class RDBMSExpressionFactory extends BasicExpressionFactory {
- private static final HashSet UNCOMPILABLE_PROPERTIES = new HashSet(11);
+ private static final Set LIVE_PROPERTIES = new HashSet();
+
static {
- UNCOMPILABLE_PROPERTIES.add("DAV:lockdiscovery");
- UNCOMPILABLE_PROPERTIES.add("DAV:supportedlock");
+ LIVE_PROPERTIES.addAll(DeltavConstants.DELTAV_PROPERTY_LIST);
+ LIVE_PROPERTIES.addAll(AclConstants.ACL_PROPERTY_LIST);
+ LIVE_PROPERTIES.add("lockdiscovery");
+ LIVE_PROPERTIES.add("supportedlock");
}
private final AbstractRDBMSStore _store;
@@ -179,7 +187,7 @@
}
public static boolean isSQLCompilableProperty(String namespace, String name) {
- return !UNCOMPILABLE_PROPERTIES.contains(namespace + name);
+ return "DAV:".equals(namespace) && !LIVE_PROPERTIES.contains(name);
}
/**


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to