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: * EntityB.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="EntityB"
040: * jndi-name="EntityB"
041: * view-type="remote"
042: * type="CMP"
043: * cmp-version="2.x"
044: * primkey-field="id"
045: * @ejb:finder signature="java.util.Collection findAll()"
046: * unchecked="yes"
047: * @ejb:pk class="java.lang.Integer"
048: * @ejb:resource-ref res-name="datasource"
049: * res-type="javax.sql.DataSource"
050: * res-auth="Container"
051: * @jboss:resource-ref res-ref-name="datasource"
052: * resource-name="TestDS"
053: * @jboss:resource-manager res-man-name="TestDS"
054: * res-man-jndi-name="java:/XmlDeployTestDS"
055: * @jboss:datasource name="java:/XmlDeployTestDS"
056: * mapping="Hypersonic SQL"
057: */
058:
059: public abstract class EntityBBean implements EntityBean {
060: public EntityBBean() {
061:
062: }
063:
064: /**
065: * Abstract cmp2 field get-set pair for field id
066: * Get the value of id
067: * @return value of id
068: *
069: * @ejb:interface-method
070: * @ejb:persistent-field
071: */
072: public abstract Integer getId();
073:
074: /**
075: * Set the value of id
076: * @param id Value to assign to id
077: *
078: * @ejb:interface-method view-type="remote"
079: */
080: public abstract void setId(Integer id);
081:
082: /**
083: * Abstract cmp2 field get-set pair for field value
084: * Get the value of value
085: * @return value of value
086: *
087: * @ejb:interface-method
088: * @ejb:persistent-field
089: */
090: public abstract String getValue();
091:
092: /**
093: * Set the value of value
094: * @param value Value to assign to value
095: *
096: * @ejb:interface-method view-type="remote"
097: */
098: public abstract void setValue(String value);
099:
100: public void ejbActivate() throws RemoteException {
101: }
102:
103: public void ejbPassivate() throws RemoteException {
104: }
105:
106: public void ejbLoad() throws RemoteException {
107: }
108:
109: public void ejbStore() throws RemoteException {
110: }
111:
112: public void ejbRemove() throws RemoteException, RemoveException {
113: }
114:
115: public void setEntityContext(EntityContext ctx)
116: throws RemoteException {
117: }
118:
119: public void unsetEntityContext() throws RemoteException {
120: }
121:
122: }// EntityB
|