java-specific
Friday, October 5, 2012
db executeUpdate , return boolean instead of int {smart code}
public boolean dbDelete(sql){
return ( db.executeUpdate(sql) ) > 0 ;
}
timer task
final Timer timer = new Timer();
timer.schedule(new TimerTask(){
@override
public void run(){
// write your business here
timer.cancel();
}
},5000);
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)