Java SQL Execute executeShutDownForHSQL(java.sql.Connection connection)

Here you can find the source of executeShutDownForHSQL(java.sql.Connection connection)

Description

execute ShutDown For HSQL connection.

License

Open Source License

Parameter

Parameter Description
connection a parameter

Exception

Parameter Description
SQLException an exception

Declaration

public static void executeShutDownForHSQL(java.sql.Connection connection) throws SQLException 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

import java.sql.SQLException;
import java.sql.Statement;

public class Main {
    /**/*from   ww  w .j  av  a  2 s .  c  o m*/
     * execute ShutDown For HSQL connection.
     * 
     * @param connection
     * @throws SQLException
     */
    public static void executeShutDownForHSQL(java.sql.Connection connection) throws SQLException {
        Statement statement = connection.createStatement();
        statement.executeUpdate("SHUTDOWN;");//$NON-NLS-1$
        statement.close();
    }
}

Related

  1. executeInsert(Connection conn, String targetTable, String destinationTable)
  2. executeInsertSQL(String sql)
  3. executeQueries(Connection conn, InputStream stream)
  4. executeResource(Connection con, String resource)
  5. executeSetArgs(PreparedStatement stmt, Object... args)
  6. executeSP(Connection conn, String spName, Object... parameters)
  7. executeSql(Connection conn, String sql)
  8. executeSQL(Connection conn, String sql)
  9. executeSql(Connection conn, String sql)