001: /**
002: * EasyBeans
003: * Copyright (C) 2006 Bull S.A.S.
004: * Contact: easybeans@ow2.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: AbsBean.java 2059 2007-11-22 17:22:33Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.deployment.xml.struct;
025:
026: import org.ow2.easybeans.deployment.xml.struct.common.AbsEnvironment;
027:
028: /**
029: * Defines common rules used by Bean (Session, MDB).
030: * @author Florent Benoit
031: *
032: */
033: public class AbsBean extends AbsEnvironment {
034:
035: /**
036: * ejb-name.
037: */
038: private String ejbName = null;
039:
040: /**
041: * ejb-class.
042: */
043: private String ejbClass = null;
044:
045: /**
046: * Run-As Role.
047: */
048: private String runAsRole = null;
049:
050: /**
051: * Mapped name.
052: */
053: private String mappedName = null;
054:
055: /**
056: * Type of transaction.
057: */
058: private String transactionType = null;
059:
060: /**
061: * Constructor.
062: */
063: public AbsBean() {
064: super ();
065: }
066:
067: /**
068: * Gets the ejb-name.
069: * @return the ejb-name
070: */
071: public String getEjbName() {
072: return ejbName;
073: }
074:
075: /**
076: * Set the ejb-name.
077: * @param ejbName ejbName
078: */
079: public void setEjbName(final String ejbName) {
080: this .ejbName = ejbName;
081: }
082:
083: /**
084: * Gets the ejb-class.
085: * @return the ejb-class
086: */
087: public String getEjbClass() {
088: return ejbClass;
089: }
090:
091: /**
092: * Set the ejb-class.
093: * @param ejbClass ejb-class
094: */
095: public void setEjbClass(final String ejbClass) {
096: this .ejbClass = ejbClass;
097: }
098:
099: /**
100: * Gets the run-as role.
101: * @return the run-as role
102: */
103: public String getRunAsRole() {
104: return runAsRole;
105: }
106:
107: /**
108: * Set the run-as role.
109: * @param runAsRole the run-as role
110: */
111: public void setRunAsRole(final String runAsRole) {
112: this .runAsRole = runAsRole;
113: }
114:
115: /**
116: * Gets the mapped name.
117: * @return the mapped name
118: */
119: public String getMappedName() {
120: return mappedName;
121: }
122:
123: /**
124: * Set the mapped name.
125: * @param mappedName the given mapped name.
126: */
127: public void setMappedName(final String mappedName) {
128: this .mappedName = mappedName;
129: }
130:
131: /**
132: * Gets the transaction-type.
133: * @return the transaction-type
134: */
135: public String getTransactionType() {
136: return transactionType;
137: }
138:
139: /**
140: * Set the transaction-type.
141: * @param transactionType transaction-type.
142: */
143: public void setTransactionType(final String transactionType) {
144: this.transactionType = transactionType;
145: }
146: }
|