001: /**
002: * EasyBeans
003: * Copyright (C) 2006 Bull S.A.S.
004: * Contact: easybeans@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: Session.java 503 2006-05-24 13:44:31Z benoitf $
023: * --------------------------------------------------------------------------
024: */package com.bm.ejb3metadata.xml.struct;
025:
026: import java.util.ArrayList;
027: import java.util.List;
028:
029: /**
030: * Defines a representation for <session> element.
031: *
032: * @author Florent Benoit
033: */
034: public class Session extends AbsBean {
035:
036: /**
037: * Name of this element.
038: */
039: public static final String NAME = "session";
040:
041: /**
042: * business-remote interfaces.
043: */
044: private List<String> businessRemoteList = null;
045:
046: /**
047: * business-local interfaces.
048: */
049: private List<String> businessLocalList = null;
050:
051: /**
052: * Type of session bean (stateless/stateful).
053: */
054: private String sessionType = null;
055:
056: /**
057: * Type of transaction.
058: */
059: private String transactionType = null;
060:
061: /**
062: * Constructor.
063: */
064: public Session() {
065: super ();
066: businessRemoteList = new ArrayList<String>();
067: businessLocalList = new ArrayList<String>();
068:
069: }
070:
071: /**
072: * Gets the business-remote interface list.
073: *
074: * @return business-remote interface list
075: */
076: public List<String> getBusinessRemoteList() {
077: return businessRemoteList;
078: }
079:
080: /**
081: * Gets the business-local interface list.
082: *
083: * @return business-local interface list
084: */
085: public List<String> getBusinessLocalList() {
086: return businessLocalList;
087: }
088:
089: /**
090: * Add the business-remote interface.
091: *
092: * @param businessRemote
093: * business-remote interface.
094: */
095: public void addBusinessRemote(final String businessRemote) {
096: businessRemoteList.add(businessRemote);
097: }
098:
099: /**
100: * Add the business-local interface.
101: *
102: * @param businessLocal
103: * business-remote interface.
104: */
105: public void addBusinessLocal(final String businessLocal) {
106: businessLocalList.add(businessLocal);
107: }
108:
109: /**
110: * Gets the session-type.
111: *
112: * @return the session-type.
113: */
114: public String getSessionType() {
115: return sessionType;
116: }
117:
118: /**
119: * Set the session-type.
120: *
121: * @param sessionType
122: * the type of session.
123: */
124: public void setSessionType(final String sessionType) {
125: this .sessionType = sessionType;
126: }
127:
128: /**
129: * Gets the transaction-type.
130: *
131: * @return the transaction-type
132: */
133: public String getTransactionType() {
134: return transactionType;
135: }
136:
137: /**
138: * Set the transaction-type.
139: *
140: * @param transactionType
141: * transaction-type.
142: */
143: public void setTransactionType(final String transactionType) {
144: this.transactionType = transactionType;
145: }
146:
147: }
|