1 8 package ersatz.resourceadapter; 9 10 import javax.resource.ResourceException; 11 import javax.resource.cci.ConnectionMetaData; 12 13 21 public class ConnectionMetaDataImpl 22 implements ConnectionMetaData 23 { 24 public String product="Ersatz EIS"; String version="1.1"; 26 String UserName="Ersatz_User_Name"; private ManagedConnectionImpl mc; 28 private ConnectionImpl conn; 29 String cName = "ConnectionImpl"; 30 31 public ConnectionMetaDataImpl(ConnectionImpl c, ManagedConnectionImpl mc) { Utility.log(cName+".constructor"); 39 this.mc=mc; 40 this.conn=c; 41 } 42 public String getEISProductName() 43 throws ResourceException 44 { 45 return (product); 46 } 47 public String getEISProductVersion() 48 throws ResourceException 49 { 50 return (version); 51 } 52 public String getUserName() 53 throws ResourceException 54 { 55 return (UserName); 56 } 57 } 58 | Popular Tags |