User: salborini
Date: 00/11/28 17:15:09
Added: src/main/org/jboss/test/bench/ejb ComplexEntityBean.java
MySessionBean.java SimpleEntityBean.java
Log:
benchmark test
Revision Changes Path
1.1
jbosstest/src/main/org/jboss/test/bench/ejb/ComplexEntityBean.java
Index: ComplexEntityBean.java
===================================================================
package org.jboss.test.bench.ejb;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import org.jboss.test.bench.interfaces.AComplexPK;
public class ComplexEntityBean implements EntityBean {
public boolean aBoolean;
public int anInt;
public long aLong;
public double aDouble;
public String aString;
public String otherField;
public AComplexPK ejbCreate(boolean aBoolean, int anInt, long aLong, double
aDouble, String aString) throws RemoteException, CreateException {
this.aBoolean = aBoolean;
this.anInt = anInt;
this.aLong = aLong;
this.aDouble = aDouble;
this.aString = aString;
this.otherField = "";
return null;
}
public void ejbPostCreate(boolean aBoolean, int anInt, long aLong, double
aDouble, String aString) throws RemoteException, CreateException {}
public String getOtherField() throws RemoteException {
return otherField;
}
public void setOtherField(String otherField) throws RemoteException {
this.otherField = otherField;
}
public void ejbStore() throws RemoteException {}
public void ejbLoad() throws RemoteException {}
public void ejbActivate() throws RemoteException {}
public void ejbPassivate() throws RemoteException {}
public void ejbRemove() throws RemoteException {}
public void setEntityContext(EntityContext e) throws RemoteException {}
public void unsetEntityContext() throws RemoteException {}
}
1.1 jbosstest/src/main/org/jboss/test/bench/ejb/MySessionBean.java
Index: MySessionBean.java
===================================================================
package org.jboss.test.bench.ejb;
import java.rmi.*;
import javax.ejb.*;
public class MySessionBean implements SessionBean {
private SessionContext sessionContext;
public void ejbCreate() throws RemoteException, CreateException {
}
public void ejbActivate() throws RemoteException {
}
public void ejbPassivate() throws RemoteException {
}
public void ejbRemove() throws RemoteException {
}
public int getInt() {
return 4;
}
public void setSessionContext(SessionContext context) throws RemoteException {
sessionContext = context;
}
}
1.1
jbosstest/src/main/org/jboss/test/bench/ejb/SimpleEntityBean.java
Index: SimpleEntityBean.java
===================================================================
package org.jboss.test.bench.ejb;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
public class SimpleEntityBean implements EntityBean {
public Integer pk;
public int field;
public Integer ejbCreate(int pk) throws RemoteException, CreateException {
this.pk = new Integer(pk);
field = 0;
return null;
}
public void ejbPostCreate(int pk) throws RemoteException, CreateException {}
public int getField() throws RemoteException {
return field;
}
public void setField(int field) throws RemoteException {
this.field = field;
}
public void ejbStore() throws RemoteException {}
public void ejbLoad() throws RemoteException {}
public void ejbActivate() throws RemoteException {}
public void ejbPassivate() throws RemoteException {}
public void ejbRemove() throws RemoteException {}
public void setEntityContext(EntityContext e) throws RemoteException {}
public void unsetEntityContext() throws RemoteException {}
}