/**
*
* Copyright 2006 The Apache Software Foundation or its licensors, as
applicable.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.openejb.jee2;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "session-beanType", propOrder = {
"description",
"displayName",
"icon",
"ejbName",
"mappedName",
"home",
"remote",
"localHome",
"local",
"businessLocal",
"businessRemote",
"serviceEndpoint",
"ejbClass",
"sessionType",
"timeoutMethod",
"initMethod",
"removeMethod",
"transactionType",
"aroundInvoke",
"envEntry",
"ejbRef",
"ejbLocalRef",
"serviceRef",
"resourceRef",
"resourceEnvRef",
"messageDestinationRef",
"persistenceContextRef",
"persistenceUnitRef",
"postConstruct",
"preDestroy",
"postActivate",
"prePassivate",
"securityRoleRef",
"securityIdentity"
})
public class SessionBeanType extends EnterpriseBean {
protected String home;
protected String remote;
@XmlElement(name = "local-home")
protected String localHome;
protected String local;
@XmlElement(name = "business-local", required = true)
protected List businessLocal;
@XmlElement(name = "business-remote", required = true)
protected List businessRemote;
@XmlElement(name = "service-endpoint")
protected String serviceEndpoint;
@XmlElement(name = "session-type")
protected SessionTypeType sessionType;
@XmlElement(name = "timeout-method")
protected NamedMethodType timeoutMethod;
@XmlElement(name = "init-method", required = true)
protected List initMethod;
@XmlElement(name = "remove-method", required = true)
protected List removeMethod;
@XmlElement(name = "transaction-type")
protected TransactionTypeType transactionType;
@XmlElement(name = "post-activate", required = true)
protected List postActivate;
@XmlElement(name = "pre-passivate", required = true)
protected List prePassivate;
@XmlElement(name = "security-role-ref", required = true)
protected List securityRoleRef;
public String getHome() {
return home;
}
public void setHome(String value) {
this.home = value;
}
public String getRemote() {
return remote;
}
public void setRemote(String value) {
this.remote = value;
}
public String getLocalHome() {
return localHome;
}
public void setLocalHome(String value) {
this.localHome = value;
}
public String getLocal() {
return local;
}
public void setLocal(String value) {
this.local = value;
}
public List getBusinessLocal() {
if (businessLocal == null) {
businessLocal = new ArrayList();
}
return this.businessLocal;
}
public List getBusinessRemote() {
if (businessRemote == null) {
businessRemote = new ArrayList();
}
return this.businessRemote;
}
public String getServiceEndpoint() {
return serviceEndpoint;
}
public void setServiceEndpoint(String value) {
this.serviceEndpoint = value;
}
public SessionTypeType getSessionType() {
return sessionType;
}
public void setSessionType(SessionTypeType value) {
this.sessionType = value;
}
public NamedMethodType getTimeoutMethod() {
return timeoutMethod;
}
public void setTimeoutMethod(NamedMethodType value) {
this.timeoutMethod = value;
}
public List getInitMethod() {
if (initMethod == null) {
initMethod = new ArrayList();
}
return this.initMethod;
}
public List getRemoveMethod() {
if (removeMethod == null) {
removeMethod = new ArrayList();
}
return this.removeMethod;
}
public TransactionTypeType getTransactionType() {
return transactionType;
}
public void setTransactionType(TransactionTypeType value) {
this.transactionType = value;
}
public List getPostActivate() {
if (postActivate == null) {
postActivate = new ArrayList();
}
return this.postActivate;
}
public List getPrePassivate() {
if (prePassivate == null) {
prePassivate = new ArrayList();
}
return this.prePassivate;
}
public List getSecurityRoleRef() {
if (securityRoleRef == null) {
securityRoleRef = new ArrayList();
}
return this.securityRoleRef;
}
}