1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.db; 27 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem; 28 29 32 public class DatasourceItem implements NameItem { 33 34 36 private String name = null; 37 private boolean deployed = false; 38 private String jndiName = null; 39 private int jdbcConnectionOpened = 0; 40 41 43 public DatasourceItem() { 44 } 45 46 public DatasourceItem(String p_Name, boolean p_Deployed) { 47 setName(p_Name); 48 setDeployed(p_Deployed); 49 } 50 51 public DatasourceItem(String p_Name, String p_JndiName, int p_JdbcConnectionOpened 52 , boolean p_Deployed) { 53 setName(p_Name); 54 setJndiName(p_JndiName); 55 setJdbcConnectionOpened(p_JdbcConnectionOpened); 56 setDeployed(p_Deployed); 57 } 58 59 61 public String getName() { 62 return name; 63 } 64 65 public void setName(String name) { 66 this.name = name; 67 } 68 69 public boolean isDeployed() { 70 return deployed; 71 } 72 73 public void setDeployed(boolean deployed) { 74 this.deployed = deployed; 75 } 76 77 public String getJndiName() { 78 return jndiName; 79 } 80 81 public void setJndiName(String jndiName) { 82 this.jndiName = jndiName; 83 } 84 85 public int getJdbcConnectionOpened() { 86 return jdbcConnectionOpened; 87 } 88 89 public void setJdbcConnectionOpened(int jdbcConnectionOpened) { 90 this.jdbcConnectionOpened = jdbcConnectionOpened; 91 } 92 } | Popular Tags |