[validation] Removed sample validation. Will be added later
authorAntonio Moreno <antonio.moreno@openbravo.com>
Wed, 31 Mar 2010 18:49:37 +0200
changeset 6908 230f280b9b72
parent 6907 544cfe0036ca
child 6909 93c9eef4f1b6
[validation] Removed sample validation. Will be added later
src-util/buildvalidation/src/org/openbravo/buildvalidation/Cbpvendoracct.java
src-util/buildvalidation/src/org/openbravo/buildvalidation/CbpvendoracctData.xsql
src-util/diagnostic/.classpath
src-util/diagnostic/.project
src-util/diagnostic/.settings/.jsdtscope
src-util/diagnostic/.settings/org.eclipse.jdt.core.prefs
src-util/diagnostic/.settings/org.eclipse.jst.common.project.facet.core.prefs
src-util/diagnostic/.settings/org.eclipse.wst.common.component
src-util/diagnostic/.settings/org.eclipse.wst.common.project.facet.core.xml
src-util/diagnostic/.settings/org.eclipse.wst.jsdt.ui.superType.container
src-util/diagnostic/.settings/org.eclipse.wst.jsdt.ui.superType.name
src-util/diagnostic/WebContent/META-INF/MANIFEST.MF
src-util/diagnostic/WebContent/WEB-INF/web.xml
src-util/diagnostic/build-create.xml
src-util/diagnostic/build.xml
src-util/diagnostic/build/.keep
src-util/diagnostic/check-ob-perms.sh
src-util/diagnostic/config/diagnostics.properties
src-util/diagnostic/config/log4j.properties
src-util/diagnostic/src/Test.java
src-util/diagnostic/src/org/openbravo/check/Check.java
src-util/diagnostic/src/org/openbravo/task/CheckDB.java
src-util/diagnostic/src/org/openbravo/task/CheckEnvironmentVariables.java
src-util/diagnostic/src/org/openbravo/task/CheckJVMVersion.java
src-util/diagnostic/src/org/openbravo/task/CheckMemory.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatAntExecution.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatFilePermissions.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatMemory.java
src-util/diagnostic/src/org/openbravo/task/CheckTomcatVersion.java
src-util/diagnostic/src/org/openbravo/task/CheckX.java
src-util/diagnostic/src/org/openbravo/task/CompareVersion.java
src-util/diagnostic/src/org/openbravo/utils/PropertiesManager.java
src-util/diagnostic/src/org/openbravo/utils/ServerConnection.java
src-util/diagnostic/src/org/openbravo/utils/Version.java
--- a/src-util/buildvalidation/src/org/openbravo/buildvalidation/Cbpvendoracct.java	Wed Mar 31 18:45:43 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-package org.openbravo.buildvalidation;
-
-import java.util.ArrayList;
-
-import org.openbravo.database.ConnectionProvider;
-
-public class Cbpvendoracct extends BuildValidation {
-
-  public ArrayList<String> execute() {
-    ConnectionProvider cp = getConnectionProvider();
-    ArrayList<String> errors = new ArrayList<String>();
-    try {
-      int a=Integer.parseInt(CbpvendoracctData.countNoDistinct(cp));
-      int b=Integer.parseInt(CbpvendoracctData.countDistinct(cp));
-      if(a!=b){
-          errors.add("Error message for Amedios validation (TBD)");
-      }
-    } catch (Exception e) {
-      e.printStackTrace();
-    }
-    return errors;
-  }
-
-}
--- a/src-util/buildvalidation/src/org/openbravo/buildvalidation/CbpvendoracctData.xsql	Wed Mar 31 18:45:43 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html 
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License. 
- * The Original Code is Openbravo ERP. 
- * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2008-2009 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-<SqlClass name="CbpvendoracctData" package="org.openbravo.buildvalidation">
-  <SqlMethod name="countNoDistinct" type="preparedStatement" return="string">
-      <SqlMethodComment></SqlMethodComment>
-      <Sql><![CDATA[
-         SELECT count(*) from (select c_acctschema_id, c_bpartner_id, status from c_bp_vendor_acct) a
-          ]]>
-      </Sql>
-  </SqlMethod>
-  <SqlMethod name="countDistinct" type="preparedStatement" return="string">
-      <SqlMethodComment></SqlMethodComment>
-      <Sql><![CDATA[
-         SELECT count(*) from (select distinct c_acctschema_id, c_bpartner_id, status from c_bp_vendor_acct) a
-          ]]>
-      </Sql>
-  </SqlMethod>
-</SqlClass>