DatasourceItem.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * --------------------------------------------------------------------------
00022  * $Id: DatasourceItem.java,v 1.4 2003/11/12 17:19:36 antonma Exp $
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 // --------------------------------------------------------- Properties Variables
00035 
00036     private String name = null;
00037     private boolean deployed = false;
00038     private String jndiName = null;
00039     private int jdbcConnectionOpened = 0;
00040 
00041 // --------------------------------------------------------- Constructors
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 // --------------------------------------------------------- Properties Methods
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 }

Generated on Tue Feb 15 15:05:32 2005 for JOnAS by  doxygen 1.3.9.1