} catch (Exception e)
{. err.println ( Error in Car Del ) ;. printStackTrace ();=false;
} resQuery;
}
//======================================== ==================== boolean DeleteUser (int idUser)
{conn=null; .sql.Statement S=null; result=null; rs=null; resQuery=false;
sql=new StringBuffer () ;. append ( call U_Del () ;. append (idUser) ;. append (); );
{. forName ( com.mysql.jdbc.Driver ). newInstance ();=DriverManager.getConnection (DB_HOST, DB_USER, DB_PASSWORD);=conn.createStatement ();
. out.println (sql);
=S.executeQuery (sql.toString ());=result.getMetaData ();
. out.println ( Database connection established ) ;. close ();=true;
} catch (Exception e)
{. err.println ( Error in Del User ) ;. printStackTrace ();=false;
} resQuery;
}
//======================================== ==================== boolean DeleteShift (int idShift)
{conn=null; .sql.Statement S=null; result=null; rs=null; resQuery=false;
sql=new StringBuffer () ;. append ( call S_Del () ;. append (idShift) ;. append (); );
{. forName ( com.mysql.jdbc.Driver ). newInstance ();=DriverManager.getConnection (DB_HOST, DB_USER, DB_PASSWORD);=conn.createStatement ();
. out.println (sql);
=S.executeQuery (sql.toString ());=result.getMetaData ();
. out.println ( Database connection established ) ;. close ();=true;
} catch (Exception e)
{. err.println ( Error in Shift Del ) ;. printStackTrace ();=false;
} resQuery;
}
//======================================== ==================== boolean DeleteClient (int idClient)
{conn=null; .sql.Statement S=null; result=null; rs=null; resQuery=false;
sql=new StringBuffer () ;. append ( call Cl_Del () ;. append (idClient) ;. append (); );
{. forName ( com.mysql.jdbc.Driver ). newInstance ();=DriverManager.getConnection (DB_HOST, DB_USER, DB_PASSWORD);=conn.createStatement ();
. out.println (sql);
=S.executeQuery (sql.toString ());=result.getMetaData ();
. out.println ( Database connection established ) ;. close ();=true;
} catch (Exception e)
{. err.println ( Error in Client Del ) ;. printStackTrace ();=false;
} resQuery;
}
//======================================== ==================== boolean DeleteRate (int idRate)
{conn=null; .sql.Statement S=null; result=null; rs=null; resQuery=false;
sql=new StringBuffer () ;. append ( call R_Del () ;. append (idRate) ;. append (); );
{. forName ( com.mysql.jdbc.Driver ). newInstance ();=DriverManager.getConnection (DB_HOST, DB_USER, DB_PASSWORD);=conn.createStatement ();
. out.println (sql);
=S.executeQuery (sql.toString ());=result.getMetaData ();
. out.println ( Database connection established ) ;. close ();=true;
} catch (Exception e)
{. err.println ( Error in Rate Del ) ;. printStackTrace ();=false;
} resQuery;
}
//======================================== ==================== boolean DeleteDriver (int idDriver)
{conn=null; .sql.Statement S=null; result=null; rs=null; resQuery=false;
sql=new StringBuffer () ;. append ( call DR_Del () ;. append (idDriver) ;. append (); );
{. forName ( com.mysql.jdbc.Driver ). newInstance ();=DriverManager.getConnection (DB_HOST, DB_USER, DB_PASSWORD);=conn.createStatement ();
. out.println (sql);
=S.executeQuery (sql.toString ());=result.getMetaData ();
. out.println ( Database connection established ) ;. close ();=true;
} catch (Exception e)
{. err.println ( Error in Driver Del ) ;. printStackTrace ();=false;
} resQuery;
}
}