00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 package org.objectweb.jonas.webapp.jonasadmin.service.db;
00027 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
00028
00032 public class DatasourceItem implements NameItem {
00033
00034
00035
00036 private String name = null;
00037 private boolean deployed = false;
00038 private String jndiName = null;
00039 private int jdbcConnectionOpened = 0;
00040
00041
00042
00043 public DatasourceItem() {
00044 }
00045
00046 public DatasourceItem(String p_Name, boolean p_Deployed) {
00047 setName(p_Name);
00048 setDeployed(p_Deployed);
00049 }
00050
00051 public DatasourceItem(String p_Name, String p_JndiName, int p_JdbcConnectionOpened
00052 , boolean p_Deployed) {
00053 setName(p_Name);
00054 setJndiName(p_JndiName);
00055 setJdbcConnectionOpened(p_JdbcConnectionOpened);
00056 setDeployed(p_Deployed);
00057 }
00058
00059
00060
00061 public String getName() {
00062 return name;
00063 }
00064
00065 public void setName(String name) {
00066 this.name = name;
00067 }
00068
00069 public boolean isDeployed() {
00070 return deployed;
00071 }
00072
00073 public void setDeployed(boolean deployed) {
00074 this.deployed = deployed;
00075 }
00076
00077 public String getJndiName() {
00078 return jndiName;
00079 }
00080
00081 public void setJndiName(String jndiName) {
00082 this.jndiName = jndiName;
00083 }
00084
00085 public int getJdbcConnectionOpened() {
00086 return jdbcConnectionOpened;
00087 }
00088
00089 public void setJdbcConnectionOpened(int jdbcConnectionOpened) {
00090 this.jdbcConnectionOpened = jdbcConnectionOpened;
00091 }
00092 }