Java Reference
In-Depth Information
}
catch(SQLException e){
System.err.println(e.getMessage());
}
}
public void createGroup(){
Connection con;
Statement stmt;
try
{
con = DriverManager.getConnection(url);
stmt = con.createStatement();
stmt.execute(SQL_GroupCreate + this.groupName);
}
catch(SQLException e){
System.err.println(e.getMessage());
}
finally
{
try
{
if (con != null) {
con.close();
}
if (stmt !=null) {
stmt.close();
}
}
catch (Exception ex) { // ignore }
}
}
public void deleteGroup(){
Connection con;
Statement stmt;
try
{
con = DriverManager.getConnection(url);
stmt = con.createStatement();
stmt.execute(SQL_GroupDelete + this.groupName);
}
catch(SQLException e) {
Search WWH ::




Custom Search