1 23 package com.sun.enterprise.repository; 24 25 import java.io.Serializable ; 26 27 32 public class PMFResource extends J2EEResourceBase implements Serializable { 33 34 private String factoryClass_; 35 private String jdbcResourceJndiName_; 36 37 public PMFResource(String name) { 38 super(name); 39 } 40 41 protected J2EEResource doClone(String name) { 42 PMFResource clone = new PMFResource(name); 43 clone.setFactoryClass(getFactoryClass()); 44 clone.setJdbcResourceJndiName(getJdbcResourceJndiName()); 45 return clone; 46 } 47 48 public int getType() { 49 return J2EEResource.PMF_RESOURCE; 50 } 51 52 public String getFactoryClass() { 53 return factoryClass_; 54 } 55 56 public void setFactoryClass(String factoryClass) { 57 factoryClass_ = factoryClass; 58 } 59 60 public String getJdbcResourceJndiName() { 61 return jdbcResourceJndiName_; 62 } 63 64 public void setJdbcResourceJndiName(String jdbcResourceJndiName) { 65 jdbcResourceJndiName_ = jdbcResourceJndiName; 66 } 67 68 public String toString() { 69 return "< PMF Resource : " + getName() + "... >"; 70 } 71 } 72 | Popular Tags |