1 23 package com.sun.enterprise.repository; 24 25 import java.io.Serializable ; 26 27 32 public class JdbcResource extends J2EEResourceBase 33 implements Serializable { 34 35 private String url_; 36 37 public JdbcResource(String name) { 38 super(name); 39 } 40 41 protected J2EEResource doClone(String name) { 42 JdbcResource clone = new JdbcResource(name); 43 clone.setUrl(getUrl()); 44 return clone; 45 } 46 47 public int getType() { 48 return J2EEResource.JDBC_RESOURCE; 49 } 50 51 public String getUrl() { 52 return url_; 53 } 54 55 public void setUrl(String url) { 56 url_ = url; 57 } 58 59 public String toString() { 60 return "< JDBC Resource : " + getName() + " , " + getUrl() + " >"; 61 62 } 63 } 64 | Popular Tags |