svn commit: r881189 - in /ofbiz/trunk/framework: entity/src/org/ofbiz/entity/sql/EntityPlanner.java sql/src/org/ofbiz/sql/Main.java sql/src/org/ofbiz/sql/Planner.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r881189 - in /ofbiz/trunk/framework: entity/src/org/ofbiz/entity/sql/EntityPlanner.java sql/src/org/ofbiz/sql/Main.java sql/src/org/ofbiz/sql/Planner.java

doogie-3
Author: doogie
Date: Tue Nov 17 08:26:58 2009
New Revision: 881189

URL: http://svn.apache.org/viewvc?rev=881189&view=rev
Log:
Convert Planner from an interface to a class.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java
    ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Main.java
    ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java?rev=881189&r1=881188&r2=881189&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java Tue Nov 17 08:26:58 2009
@@ -63,7 +63,7 @@
 import org.ofbiz.sql.TableName;
 import org.ofbiz.sql.Value;
 
-public class EntityPlanner implements Planner<EntityPlanner, EntityDeletePlan, EntityInsertPlan, EntitySelectPlan, EntityUpdatePlan, EntityViewPlan> {
+public class EntityPlanner extends Planner<EntityPlanner, EntityDeletePlan, EntityInsertPlan, EntitySelectPlan, EntityUpdatePlan, EntityViewPlan> {
     public EntityDeletePlan plan(SQLDelete<?> deleteStatement) {
         return null;
     }

Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Main.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Main.java?rev=881189&r1=881188&r2=881189&view=diff
==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Main.java (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Main.java Tue Nov 17 08:26:58 2009
@@ -35,7 +35,7 @@
         System.err.println("\tplan=" + plan);
     }
 
-    private final static class DebugPlanner implements Planner {
+    private final static class DebugPlanner extends Planner {
         public SQLPlan plan(SQLStatement statement) {
             return null;
         }

Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java?rev=881189&r1=881188&r2=881189&view=diff
==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Planner.java Tue Nov 17 08:26:58 2009
@@ -18,10 +18,10 @@
  */
 package org.ofbiz.sql;
 
-public interface Planner<P extends Planner<P, D, I, S, U, V>, D extends DeletePlan<D>, I extends InsertPlan<I>, S extends SelectPlan<S>, U extends UpdatePlan<U>, V extends ViewPlan<V>> {
-    D plan(SQLDelete<?> deleteStatement);
-    I plan(SQLInsert<?> insertStatement);
-    S plan(SQLSelect<?> selectStatement);
-    U plan(SQLUpdate<?> updateStatement);
-    V plan(SQLView<?> viewStatement);
+public abstract class Planner<P extends Planner<P, D, I, S, U, V>, D extends DeletePlan<D>, I extends InsertPlan<I>, S extends SelectPlan<S>, U extends UpdatePlan<U>, V extends ViewPlan<V>> {
+    public abstract D plan(SQLDelete<?> deleteStatement);
+    public abstract I plan(SQLInsert<?> insertStatement);
+    public abstract S plan(SQLSelect<?> selectStatement);
+    public abstract U plan(SQLUpdate<?> updateStatement);
+    public abstract V plan(SQLView<?> viewStatement);
 }