1 23 package com.sun.enterprise.repository; 24 25 import java.io.Serializable ; 26 import java.util.*; 27 28 33 public class IASJdbcResource extends JdbcResource { 34 35 private JdbcConnectionPool jdbcConnectionPool_; 36 37 public IASJdbcResource(String name) { 38 super(name); 39 } 40 protected J2EEResource doClone(String name) { 41 IASJdbcResource clone = new IASJdbcResource(name); 42 clone.setEnabled(isEnabled()); 43 clone.setDescription(getDescription()); 44 clone.setJdbcConnectionPool(getJdbcConnectionPool()); 45 return clone; 46 } 47 48 public String getUserName() { 49 return getJdbcConnectionPool().getUserName(); 50 } 51 52 public String getPassword() { 53 return getJdbcConnectionPool().getPassword(); 54 } 55 56 public JdbcConnectionPool getJdbcConnectionPool() { 57 return jdbcConnectionPool_; 58 } 59 60 public void setJdbcConnectionPool(JdbcConnectionPool jdbcConnectionPool) { 61 jdbcConnectionPool_ = jdbcConnectionPool; 62 } 63 64 public Set getProperties() { 65 return getJdbcConnectionPool().getProperties(); 66 } 67 68 public void addProperty(ResourceProperty property) { 69 getJdbcConnectionPool().addProperty(property); 70 } 71 72 public boolean removeProperty(ResourceProperty property) { 73 return getJdbcConnectionPool().removeProperty(property); 74 } 75 76 public ResourceProperty getProperty(String propertyName) { 77 return getJdbcConnectionPool().getProperty(propertyName); 78 } 79 80 public String toString() { 81 return "< IAS JDBC Resource : " + getName() + " >"; 82 } 83 } 84 | Popular Tags |