1 19 20 package org.netbeans.db.antext; 21 22 import java.sql.Statement ; 23 import java.sql.Connection ; 24 import java.sql.DriverManager ; 25 26 34 public class StopPointBaseServer extends Object { 35 private static final String shutdown = "shutdown force"; 37 public static void main(String [] atrg) { 38 try { 43 Class.forName(System.getProperty("pointbase.db.driverclass") ); Connection connection = DriverManager.getConnection(System.getProperty("pointbase.db.url"), System.getProperty("pointbase.db.user"), System.getProperty("pointbase.db.password") ); Statement statement = connection.createStatement(); 46 statement.executeUpdate(shutdown); 47 } catch (Exception exc) { 48 exc.printStackTrace(); 49 } 50 } 51 } 52 | Popular Tags |