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.proxycompiler.beans.ejb; // Generated package name
023:
024: import java.rmi.RemoteException;
025:
026: import javax.ejb.EntityBean;
027:
028: import javax.ejb.EntityContext;
029: import javax.ejb.CreateException;
030:
031: import org.jboss.test.proxycompiler.Util;
032:
033: /**
034: * ReadOnlyBean.java
035: *
036: *
037: * Created: Tue Jan 22 17:13:36 2002
038: *
039: * @author <a href="mailto:neale@isismanor.co.uk">Neale Swinnerton</a>
040: * @version
041: *
042: *
043: * @ejb:bean name="ProxyCompilerTest"
044: * jndi-name="ProxyCompilerTest"
045: * local-jndi-name="LocalProxyCompilerTest"
046: * view-type="both"
047: * type="CMP"
048: * cmp-version="2.x"
049: * primkey-field="pk"
050: * @ejb:pk class="java.lang.Integer"
051: * @ejb:finder signature="java.util.Collection findAll()"
052: */
053:
054: public abstract class ProxyCompilerTestBean implements EntityBean {
055: public ProxyCompilerTestBean() {
056:
057: }
058:
059: /**
060: * @ejb:create-method
061: */
062: public Integer ejbCreate(Integer pk) throws CreateException {
063: setPk(pk);
064: return pk;
065: }
066:
067: public void ejbPostCreate(Integer pk) {
068: }
069:
070: /**
071: * @ejb:persistent-field
072: * @ejb:interface-method
073: */
074: public abstract Integer getPk();
075:
076: /**
077: * @ejb:interface-method
078: */
079: public abstract void setPk(Integer pk);
080:
081: /**
082: * @ejb:persistent-field
083: * @ejb:interface-method
084: */
085: public abstract boolean getBool();
086:
087: /**
088: * @ejb:interface-method
089: */
090: public abstract void setBool(boolean arg);
091:
092: /**
093: * @ejb:persistent-field
094: * @ejb:interface-method
095: */
096: public abstract byte getByte();
097:
098: /**
099: * @ejb:interface-method
100: */
101: public abstract void setByte(byte arg);
102:
103: /**
104: * @ejb:persistent-field
105: * @ejb:interface-method
106: */
107: public abstract char getChar();
108:
109: /**
110: * @ejb:interface-method
111: */
112: public abstract void setChar(char arg);
113:
114: /**
115: * @ejb:persistent-field
116: * @ejb:interface-method
117: */
118: public abstract double getDouble();
119:
120: /**
121: * @ejb:interface-method
122: */
123: public abstract void setDouble(double arg);
124:
125: /**
126: * @ejb:persistent-field
127: * @ejb:interface-method
128: */
129: public abstract float getFloat();
130:
131: /**
132: * @ejb:interface-method
133: */
134: public abstract void setFloat(float arg);
135:
136: /**
137: * @ejb:persistent-field
138: * @ejb:interface-method
139: */
140: public abstract int getInt();
141:
142: /**
143: * @ejb:interface-method
144: */
145: public abstract void setInt(int arg);
146:
147: /**
148: * @ejb:persistent-field
149: * @ejb:interface-method
150: */
151: public abstract long getLong();
152:
153: /**
154: * @ejb:interface-method
155: */
156: public abstract void setLong(long arg);
157:
158: /**
159: * @ejb:persistent-field
160: * @ejb:interface-method
161: */
162: public abstract short getShort();
163:
164: /**
165: * @ejb:interface-method
166: */
167: public abstract void setShort(short arg);
168:
169: /**
170: * @ejb:persistent-field
171: * @ejb:interface-method
172: */
173: public abstract Object[] getObjectArray();
174:
175: /**
176: * @ejb:interface-method
177: */
178: public abstract void setObjectArray(Object[] arg);
179:
180: /**
181: * @ejb:persistent-field
182: * @ejb:interface-method
183: */
184: public abstract int[] getIntArray();
185:
186: /**
187: * @ejb:interface-method
188: */
189: public abstract void setIntArray(int[] arg);
190:
191: /**
192: * @ejb:interface-method
193: */
194: public boolean noArgsMethod() {
195: return true;
196: }
197:
198: /**
199: * @ejb:interface-method
200: */
201: public String complexSignatureMethod(int i, Object ref, int[] ints,
202: Object[] objectRefs) {
203: return Util.getStringRepresentation(i, ref, ints, objectRefs);
204: }
205:
206: public void ejbActivate() throws RemoteException {
207: }
208:
209: public void ejbPassivate() throws RemoteException {
210: }
211:
212: public void ejbLoad() throws RemoteException {
213: }
214:
215: public void ejbStore() throws RemoteException {
216: }
217:
218: public void ejbRemove() throws RemoteException {
219: }
220:
221: public void setEntityContext(EntityContext ctx)
222: throws RemoteException {
223: }
224:
225: public void unsetEntityContext() throws RemoteException {
226: }
227:
228: }// ReadOnlyBean
|