001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: Eric Hardesty
023: * --------------------------------------------------------------------------
024: * $Id: JonasConnectionDefinitionDesc.java 5459 2004-09-17 22:33:33Z ehardesty $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_rar.deployment.api;
027:
028: import java.io.Serializable;
029: import java.util.List;
030:
031: import org.objectweb.jonas_rar.deployment.xml.JonasConnectionDefinition;
032:
033: /**
034: * This class defines the implementation of the element jonas-connection-definition
035: *
036: * @author Eric Hardesty
037: */
038:
039: public class JonasConnectionDefinitionDesc implements Serializable {
040:
041: /**
042: * id
043: */
044: private String id = null;
045:
046: /**
047: * description
048: */
049: private List descriptionList = null;
050:
051: /**
052: * jndi-name
053: */
054: private String jndiName = null;
055:
056: /**
057: * log-enabled
058: */
059: private String logEnabled = null;
060:
061: /**
062: * log-topic
063: */
064: private String logTopic = null;
065:
066: /**
067: * pool-params
068: */
069: private PoolParamsDesc poolParamsDesc = null;
070:
071: /**
072: * jdbc-conn-params
073: */
074: private JdbcConnParamsDesc jdbcConnParamsDesc = null;
075:
076: /**
077: * jonas-config-property
078: */
079: private List jonasConfigPropertyList = null;
080:
081: /**
082: * Constructor
083: */
084: public JonasConnectionDefinitionDesc(JonasConnectionDefinition jcd) {
085: if (jcd != null) {
086: id = jcd.getId();
087: descriptionList = jcd.getDescriptionList();
088: jndiName = jcd.getJndiName();
089: logEnabled = jcd.getLogEnabled();
090: logTopic = jcd.getLogTopic();
091: poolParamsDesc = new PoolParamsDesc(jcd.getPoolParams());
092: jdbcConnParamsDesc = new JdbcConnParamsDesc(jcd
093: .getJdbcConnParams());
094: jonasConfigPropertyList = Utility.jonasConfigProperty(jcd
095: .getJonasConfigPropertyList());
096: }
097: }
098:
099: /**
100: * Gets the id
101: * @return the id
102: */
103: public String getId() {
104: return id;
105: }
106:
107: /**
108: * Gets the description
109: * @return the description
110: */
111: public List getDescriptionList() {
112: return descriptionList;
113: }
114:
115: /**
116: * Gets the jndi-name
117: * @return the jndi-name
118: */
119: public String getJndiName() {
120: return jndiName;
121: }
122:
123: /**
124: * Gets the log-enabled
125: * @return the log-enabled
126: */
127: public String getLogEnabled() {
128: return logEnabled;
129: }
130:
131: /**
132: * Gets the log-topic
133: * @return the log-topic
134: */
135: public String getLogTopic() {
136: return logTopic;
137: }
138:
139: /**
140: * Gets the pool-params
141: * @return the pool-params
142: */
143: public PoolParamsDesc getPoolParamsDesc() {
144: return poolParamsDesc;
145: }
146:
147: /**
148: * Gets the jdbc-conn-params
149: * @return the jdbc-conn-params
150: */
151: public JdbcConnParamsDesc getJdbcConnParamsDesc() {
152: return jdbcConnParamsDesc;
153: }
154:
155: /**
156: * Gets the jonas-config-property
157: * @return the jonas-config-property
158: */
159: public List getJonasConfigPropertyList() {
160: return jonasConfigPropertyList;
161: }
162:
163: }
|