incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r912366 - /incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java
Date Sun, 21 Feb 2010 16:18:12 GMT
Author: kwright
Date: Sun Feb 21 16:18:12 2010
New Revision: 912366

URL: http://svn.apache.org/viewvc?rev=912366&view=rev
Log:
Clean out unused methods.

Modified:
    incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java

Modified: incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java?rev=912366&r1=912365&r2=912366&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java (original)
+++ incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java Sun Feb
21 16:18:12 2010
@@ -81,73 +81,6 @@
   /** Maintenance signal file */
   public static final String maintenanceFileSignalProperty = "org.apache.lcf.database.maintenanceflag";
 
-
-  /* Database test
-  public static void main(String[] argv)
-  {
-    initializeEnvironment();
-    Reader r = new InputStreamReader(System.in);
-
-    try
-    {
-      IThreadContext tc = ThreadContextFactory.make();
-      IDBInterface database = DBInterfaceFactory.make(tc,masterDatabaseName,masterDatabaseUsername,masterDatabasePassword);
-      while (true)
-      {
-        try
-        {
-          try
-          {
-            StringBuffer sb = new StringBuffer();
-            while (true)
-            {
-              int charval = r.read();
-              if (charval == -1)
-                return;
-              if (charval == '\r' || charval == '\n')
-                break;
-              sb.append((char)charval);
-            }
-            String query = sb.toString();
-            System.out.println("Doing query "+query);
-            if (!query.startsWith("select") && !query.startsWith("show"))
-              database.performModification(query,null,null);
-            else
-            {
-              IResultSet set = database.performQuery(query,null,null,null);
-              int i = 0;
-              while (i < set.getRowCount())
-              {
-                IResultRow row = set.getRow(i++);
-                Iterator iter = row.getColumns();
-                while (iter.hasNext())
-                {
-                  String colName = (String)iter.next();
-                  System.out.println(row.getValue(colName).toString());
-                }
-                System.out.println("-----");
-              }
-            }
-            System.out.println("Done");
-          }
-          catch (LCFException e)
-          {
-            e.printStackTrace();
-          }
-        }
-        catch (IOException e)
-        {
-          e.printStackTrace();
-        }
-      }
-    }
-    catch (LCFException e)
-    {
-      e.printStackTrace();
-    }
-  }
-  */
-
   /** Initialize environment.
   */
   public static synchronized void initializeEnvironment()
@@ -235,17 +168,6 @@
     }
   }
 
-
-  /** Get the path where all config files are.
-  *@return the path.
-  */
-  /*
-  public static final String getConfigPath()
-  {
-    return configPath;
-  }
-  */
-  
   /** Read a property.
   *@param s is the property name.
   *@return the property value, as an object.



Mime
View raw message