1 22 package org.enhydra.jdbc.pool; 23 24 31 public class GenerationObject { 32 Object obj; int generation; 36 String user; 37 String password; 38 39 42 public GenerationObject(Object o, int generation) { 43 this.obj = o; 44 this.generation = generation; 45 } 46 47 50 public GenerationObject(Object o, int generation, String user, String password) { 51 this.obj = o; 52 this.generation = generation; 53 this.user = user; 54 this.password = password; 55 } 56 57 public int getGeneration() { 58 return this.generation; 59 } 60 61 public Object getObj() { 62 return this.obj; 63 } 64 65 public String getUser() { 66 return this.user; 67 } 68 69 public String getPassword() { 70 return this.password; 71 } 72 73 public void killObject() { 74 obj = null; 75 } 76 77 } 78 | Popular Tags |