BioServiceBean.java
// license-header java merge-point
//
// Generated by SessionBeanImpl.vsl in andromda-ejb3-cartridge on 08/06/2014 10:56:22.
// Modify as necessary. If deleted it will be regenerated.
//
package org.andromda.demo.ejb3.bio;
import java.util.Collection;
/**
* @see BioServiceBase
*
* Remember to manually configure the local business interface this bean implements if originally you only
* defined the remote business interface. However, this change is automatically reflected in the ejb-jar.xml.
*
* Do not specify the javax.ejb.Stateless annotation
* Instead, the session bean is defined in the ejb-jar.xml descriptor.
*/
// Uncomment to enable webservices for BioServiceBean
// @javax.jws.WebService(endpointInterface = "org.andromda.demo.ejb3.bio.BioServiceWSInterface", serviceName = "BioService")
public class BioServiceBean
extends BioServiceBase
implements BioServiceRemote
{
// --------------- Constructors ---------------
/**
* Default constructor extending base class default constructor
*/
public BioServiceBean()
{
super();
}
// -------- Business Methods Impl --------------
/**
* @see BioServiceBase#addBio(Bio)
*/
@Override
protected void handleAddBio(Bio bio)
throws Exception
{
getBioDao().create(bio);
}
/**
* @see BioServiceBase#getBio(Long)
*/
@Override
protected Bio handleGetBio(Long id)
throws Exception
{
return getBioDao().load(id);
}
/**
* @see BioServiceBase#getAllBios()
*/
@Override
protected Collection handleGetAllBios()
throws Exception
{
return getBioDao().loadAll();
}
// -------- Lifecycle Callback Implementation --------------
}