public boolean executeCommand ( String query ) throws SQLException , ClassNotFoundException { if ( ! connected ) { open ( ) ; } Statement stmt = con . createStatement ( ) ; return stmt . execute ( query ) ; }
Execute the specified SQL command If the SQL connection if not open it will be opened automatically