Пример #1
0
 private static void processCLIStmt(String query) {
   try {
     cliClient_.executeCLIStmt(query);
   } catch (Exception e) {
     System.err.println("Exception " + e.getMessage());
     e.printStackTrace(System.err);
   }
   return;
 }
Пример #2
0
  private static void processServerQuery(String query) {
    if (!isConnected()) return;

    try {
      cliClient_.executeQueryOnServer(query);
    } catch (Exception e) {
      System.err.println("Exception " + e.getMessage());
      e.printStackTrace(System.err);
    }
    return;
  }