From d2260d05d4a2f339ca5a8b6c5dd821dfffebe12b Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Wed, 18 Nov 2009 02:07:52 +0000 Subject: [PATCH] Implements all the interfaces/classes, but everything returns null still. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881643 13f79535-47bb-0310-9956-ffa450edef68 --- framework/sql/src/org/ofbiz/sql/Main.java | 43 +++++++++++++++++------ 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/framework/sql/src/org/ofbiz/sql/Main.java b/framework/sql/src/org/ofbiz/sql/Main.java index 060ed2c92e..4696a7f6b4 100644 --- a/framework/sql/src/org/ofbiz/sql/Main.java +++ b/framework/sql/src/org/ofbiz/sql/Main.java @@ -19,6 +19,7 @@ package org.ofbiz.sql; import java.util.List; +import java.util.Map; public final class Main { public static void main(String[] args) throws Exception { @@ -35,33 +36,53 @@ public final class Main { System.err.println("\tplan=" + plan); } - private final static class DebugPlanner extends Planner { + private final static class DebugPlanner extends Planner { public DebugPlanner() { - super(null); + super(new DebugConditionPlanner()); } - public SQLPlan plan(SQLStatement statement) { + public DebugDeletePlan plan(SQLDelete deleteStatement) { return null; } - public DeletePlan plan(SQLDelete deleteStatement) { + public DebugInsertPlan plan(SQLInsert insertStatement) { return null; } - public InsertPlan plan(SQLInsert insertStatement) { + public DebugSelectPlan plan(SQLSelect selectStatement) { return null; } - public SelectPlan plan(SQLSelect selectStatement) { + public DebugUpdatePlan plan(SQLUpdate updateStatement) { return null; } - public UpdatePlan plan(SQLUpdate updateStatement) { - return null; - } - - public ViewPlan plan(SQLView viewStatement) { + public DebugViewPlan plan(SQLView viewStatement) { return null; } } + + private final static class DebugConditionPlanner implements ConditionPlanner { + public DebugCondition parse(Condition originalCondition, Map params) throws ParameterizedConditionException { + return null; + } + } + + private final static class DebugCondition { + } + + private final static class DebugDeletePlan extends DeletePlan { + } + + private final static class DebugInsertPlan extends InsertPlan { + } + + private final static class DebugSelectPlan extends SelectPlan { + } + + private final static class DebugUpdatePlan extends UpdatePlan { + } + + private final static class DebugViewPlan extends ViewPlan { + } }