openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r441242 - in /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps: BinaryOpExpState.java ExpContext.java ExpState.java
Date Thu, 07 Sep 2006 21:45:54 GMT
Author: awhite
Date: Thu Sep  7 14:45:54 2006
New Revision: 441242

URL: http://svn.apache.org/viewvc?view=rev&rev=441242
Log:
Forgot to add new classes.


Added:
    incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/BinaryOpExpState.java
    incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpContext.java
    incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpState.java

Added: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/BinaryOpExpState.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/BinaryOpExpState.java?view=auto&rev=441242
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/BinaryOpExpState.java
(added)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/BinaryOpExpState.java
Thu Sep  7 14:45:54 2006
@@ -0,0 +1,31 @@
+package org.apache.openjpa.jdbc.kernel.exps;
+
+import org.apache.openjpa.jdbc.sql.Joins;
+
+/**
+ * Expression tree state for a binary operator.
+ * 
+ * @author Abe White
+ */
+class BinaryOpExpState 
+    extends ExpState {
+
+    /**
+     * State for first expression/value.
+     */
+    public ExpState state1;
+
+    /**
+     * State for second expression/value.
+     */
+    public ExpState state2;
+
+    public BinaryOpExpState() {
+    }
+
+    public BinaryOpExpState(Joins joins, ExpState state1, ExpState state2) {
+        super(joins);
+        this.state1 = state1;
+        this.state2 = state2;
+    }
+}

Added: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpContext.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpContext.java?view=auto&rev=441242
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpContext.java
(added)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpContext.java
Thu Sep  7 14:45:54 2006
@@ -0,0 +1,38 @@
+package org.apache.openjpa.jdbc.kernel.exps;
+
+import org.apache.openjpa.jdbc.kernel.JDBCFetchConfiguration;
+import org.apache.openjpa.jdbc.kernel.JDBCStore;
+
+/**
+ * Expression tree context.
+ * 
+ * @author Abe White
+ * @nojavadoc
+ */
+public class ExpContext {
+
+    /**
+     * Store.
+     */
+    public JDBCStore store;
+
+    /**
+     * Parameters to query.
+     */
+    public Object[] params;
+
+    /**
+     * Fetch configuration.
+     */
+    public JDBCFetchConfiguration fetch; 
+
+    public ExpContext() {
+    }
+
+    public ExpContext(JDBCStore store, Object[] params, 
+        JDBCFetchConfiguration fetch) {
+        this.store = store;
+        this.params = params;
+        this.fetch = fetch;
+    }
+}

Added: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpState.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpState.java?view=auto&rev=441242
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpState.java
(added)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/ExpState.java
Thu Sep  7 14:45:54 2006
@@ -0,0 +1,26 @@
+package org.apache.openjpa.jdbc.kernel.exps;
+
+import org.apache.openjpa.jdbc.sql.Joins;
+
+/**
+ * Expression tree state.
+ * 
+ * @author Abe White
+ * @nojavadoc
+ */
+public class ExpState {
+
+    /**
+     * State with no joins.
+     */
+    public static final ExpState NULL = new ExpState();
+
+    public Joins joins;
+
+    public ExpState() {
+    }
+
+    public ExpState(Joins joins) {
+        this.joins = joins;
+    }
+}



Mime
View raw message