001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software 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 software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.test.jmx.ejb;
023:
024: import java.rmi.RemoteException;
025: import javax.ejb.EntityBean;
026: import javax.ejb.EntityContext;
027: import javax.ejb.RemoveException;
028:
029: /**
030: * EntityA.java
031: *
032: *
033: * Created: Wed Mar 6 20:08:11 2002
034: *
035: * @author <a href="mailto:d_jencks@users.sourceforge.net">David Jencks</a>
036: * @version
037: *
038: *
039: * @ejb:bean name="EntityA"
040: * jndi-name="EntityA"
041: * view-type="remote"
042: * type="CMP"
043: * cmp-version="2.x"
044: * primkey-field="id"
045: * @ejb:pk class="java.lang.Integer"
046: * @ejb:finder signature="java.util.Collection findAll()"
047: * unchecked="yes"
048: */
049:
050: public abstract class EntityABean implements EntityBean {
051: public EntityABean() {
052:
053: }
054:
055: /**
056: * Abstract cmp2 field get-set pair for field id
057: * Get the value of id
058: * @return value of id
059: *
060: * @ejb:interface-method
061: * @ejb:persistent-field
062: */
063: public abstract Integer getId();
064:
065: /**
066: * Set the value of id
067: * @param id Value to assign to id
068: *
069: * @ejb:interface-method view-type="remote"
070: */
071: public abstract void setId(Integer id);
072:
073: /**
074: * Abstract cmp2 field get-set pair for field value
075: * Get the value of value
076: * @return value of value
077: *
078: * @ejb:interface-method
079: * @ejb:persistent-field
080: */
081: public abstract String getValue();
082:
083: /**
084: * Set the value of value
085: * @param value Value to assign to value
086: *
087: * @ejb:interface-method view-type="remote"
088: */
089: public abstract void setValue(String value);
090:
091: public void ejbActivate() throws RemoteException {
092: }
093:
094: public void ejbPassivate() throws RemoteException {
095: }
096:
097: public void ejbLoad() throws RemoteException {
098: }
099:
100: public void ejbStore() throws RemoteException {
101: }
102:
103: public void ejbRemove() throws RemoteException, RemoveException {
104: }
105:
106: public void setEntityContext(EntityContext ctx)
107: throws RemoteException {
108: }
109:
110: public void unsetEntityContext() throws RemoteException {
111: }
112:
113: }// EntityA
|