User: fleury
Date: 00/09/26 17:46:35
Added: src/main/org/jboss/test/testbean/interfaces AComplexPK.java
BMTStateful.java BMTStatefulHome.java
BMTStateless.java BMTStatelessHome.java
BusinessMethodException.java EnterpriseEntity.java
EnterpriseEntityHome.java EntityBMP.java
EntityBMPHome.java EntityPK.java EntityPKHome.java
StatefulSession.java StatefulSessionHome.java
StatelessSession.java StatelessSessionHome.java
TxSession.java TxSessionHome.java
Log:
Added src for TestBean from ZOLA
Revision Changes Path
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/AComplexPK.java
Index: AComplexPK.java
===================================================================
package org.jboss.test.testbean.interfaces;
import java.io.Serializable;
import java.io.IOException;
public class AComplexPK implements Serializable{
public boolean aBoolean;
public int anInt;
public long aLong;
public double aDouble;
public String aString;
public AComplexPK() {};
public AComplexPK(boolean aBoolean, int anInt, long aLong, double aDouble,
String aString) {
this.aBoolean = aBoolean;
this.anInt = anInt;
this.aLong = aLong;
this.aDouble = aDouble;
this.aString = aString;
}
public int hashCode() {
// Missing the double but ok for test
return anInt*
(new Long(aLong)).intValue()*
(new Double(aDouble)).intValue()*
aString.hashCode();
}
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/BMTStateful.java
Index: BMTStateful.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface BMTStateful extends EJBObject
{
public String txExists() throws RemoteException;
public String txCommit() throws RemoteException;
public String txRollback() throws RemoteException;
public String txBegin() throws RemoteException;
public String txEnd() throws RemoteException;
public String dbCommit() throws RemoteException;
public String dbRollback() throws RemoteException;
public String getDbField() throws RemoteException;
public void createTable() throws RemoteException;
public void dropTable() throws RemoteException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/BMTStatefulHome.java
Index: BMTStatefulHome.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface BMTStatefulHome extends EJBHome {
public BMTStateful create() throws java.rmi.RemoteException,
javax.ejb.CreateException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/BMTStateless.java
Index: BMTStateless.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface BMTStateless extends EJBObject
{
public String txExists() throws RemoteException;
public String txCommit() throws RemoteException;
public String txRollback() throws RemoteException;
public String txBegin() throws RemoteException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/BMTStatelessHome.java
Index: BMTStatelessHome.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface BMTStatelessHome extends EJBHome {
public BMTStateless create() throws java.rmi.RemoteException,
javax.ejb.CreateException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/BusinessMethodException.java
Index: BusinessMethodException.java
===================================================================
package org.jboss.test.testbean.interfaces;
public class BusinessMethodException extends Exception {
public BusinessMethodException() {
}
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/EnterpriseEntity.java
Index: EnterpriseEntity.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface EnterpriseEntity extends EJBObject {
public String callBusinessMethodA() throws RemoteException;
public String callBusinessMethodB() throws RemoteException;
public String callBusinessMethodB(String words) throws RemoteException;
public void setOtherField(int value) throws RemoteException;
public int getOtherField() throws RemoteException;
public EnterpriseEntity createEntity(String newName) throws RemoteException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/EnterpriseEntityHome.java
Index: EnterpriseEntityHome.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBHome;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
public interface EnterpriseEntityHome extends EJBHome {
public EnterpriseEntity create(String name)
throws RemoteException, CreateException;
public EnterpriseEntity findByPrimaryKey(String name)
throws RemoteException, FinderException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/EntityBMP.java
Index: EntityBMP.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface EntityBMP extends EJBObject {
public String callBusinessMethodA() throws RemoteException;
public String callBusinessMethodB() throws RemoteException;
public String callBusinessMethodB(String words) throws RemoteException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/EntityBMPHome.java
Index: EntityBMPHome.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBHome;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import java.util.Collection;
import java.util.Enumeration;
public interface EntityBMPHome extends EJBHome {
public EntityBMP create()
throws RemoteException, CreateException;
public EntityBMP create(String name)
throws RemoteException, CreateException;
public EntityBMP findByPrimaryKey(String name)
throws RemoteException, FinderException;
public Collection findCollectionKeys(int num)
throws RemoteException, FinderException;
public Enumeration findEnumeratedKeys(int num)
throws RemoteException, FinderException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/EntityPK.java
Index: EntityPK.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface EntityPK extends EJBObject {
public AComplexPK readAllValues();
public void updateAllValues(AComplexPK aComplexPK);
public int getOtherField();
public void setOtherField(int newValue);
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/EntityPKHome.java
Index: EntityPKHome.java
===================================================================
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBHome;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
public interface EntityPKHome extends EJBHome {
public EntityPK create(boolean aBoolean, int anInt, long aLong, double aDouble,
String aString)
throws RemoteException, CreateException;
public EntityPK findByPrimaryKey(AComplexPK acomplexPK)
throws RemoteException, CreateException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/StatefulSession.java
Index: StatefulSession.java
===================================================================
//Title: telkel
//Version:
//Copyright: Copyright (c) 1999
//Author: Marc Fleury
//Company: telkel
//Description: Your description
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface StatefulSession extends EJBObject {
public String callBusinessMethodA() throws RemoteException;
public String callBusinessMethodB() throws RemoteException;
public String callBusinessMethodB(String words) throws RemoteException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/StatefulSessionHome.java
Index: StatefulSessionHome.java
===================================================================
//Title: telkel
//Version:
//Copyright: Copyright (c) 1999
//Author: Marc Fleury
//Company: telkel
//Description: Your description
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface StatefulSessionHome extends EJBHome {
public StatefulSession create() throws RemoteException, CreateException;
public StatefulSession create(String name) throws RemoteException,
CreateException;
public StatefulSession create(String name, String address) throws
RemoteException, CreateException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/StatelessSession.java
Index: StatelessSession.java
===================================================================
//Title: telkel
//Version:
//Copyright: Copyright (c) 1999
//Author: Marc Fleury
//Company: telkel
//Description: Your description
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface StatelessSession extends EJBObject {
public void callBusinessMethodA() throws RemoteException;
public String callBusinessMethodB() throws RemoteException;
public String callBusinessMethodB(String words) throws RemoteException;
public String callBusinessMethodC() throws RemoteException;
public void callBusinessMethodD() throws RemoteException, BusinessMethodException;
public String callBusinessMethodE() throws RemoteException;
public void testClassLoading() throws RemoteException, BusinessMethodException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/StatelessSessionHome.java
Index: StatelessSessionHome.java
===================================================================
//Title: telkel
//Version:
//Copyright: Copyright (c) 1999
//Author: Marc Fleury
//Company: telkel
//Description: Your description
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface StatelessSessionHome extends EJBHome {
public StatelessSession create() throws java.rmi.RemoteException,
javax.ejb.CreateException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/TxSession.java
Index: TxSession.java
===================================================================
/******************************************************
* File: TxSession.java
* created 07-Sep-00 8:31:50 PM by Administrator
*/
package org.jboss.test.testbean.interfaces;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface TxSession extends EJBObject
{
public String txRequired() throws RemoteException;
public String txRequiresNew() throws RemoteException;
public String txSupports() throws RemoteException;
public String txMandatory() throws RemoteException;
public String txNever() throws RemoteException;
public String txNotSupported() throws RemoteException;
public String requiredToSupports() throws RemoteException;
public String requiredToNotSupported() throws RemoteException;
public String requiredToRequiresNew() throws RemoteException;
}
1.1
jbosstest/src/main/org/jboss/test/testbean/interfaces/TxSessionHome.java
Index: TxSessionHome.java
===================================================================
/******************************************************
* File: TxSessionHome.java
* created 07-Sep-00 8:36:22 PM by Administrator
*/
package org.jboss.test.testbean.interfaces;
import javax.ejb.*;
import java.rmi.*;
public interface TxSessionHome extends EJBHome {
public TxSession create() throws java.rmi.RemoteException,
javax.ejb.CreateException;
}