Exemple #1
0
 @Override
 public void connect() {
   if (!isConnected()) {
     super.connect();
     if (password != null) {
       auth(password);
       getStatusCodeReply();
     }
     if (db > 0) {
       select(Long.valueOf(db).intValue());
       getStatusCodeReply();
     }
   }
 }
Exemple #2
0
 public void disconnect() {
   db = 0;
   super.disconnect();
 }