[Join-cvs] join/src/main/org/figure8/join/businessobjects/configuration/ejb ClientBean.java,NONE,1.1
Brought to you by:
lbroudoux
|
From: <lbr...@us...> - 2003-07-30 09:09:57
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration/ejb
In directory sc8-pr-cvs1:/tmp/cvs-serv31520
Modified Files:
Tag: 1.12
ClientBean.java
Log Message:
Misspelled "notifier" (not notifyer ... oops!)
--- NEW FILE: ClientBean.java ---
/*
* ClientBean.java
*
* Created on 20 october 2002, 18:12
*/
package org.figure8.join.businessobjects.configuration.ejb;
import org.figure8.join.businessobjects.configuration.util.ClientUtil;
import org.figure8.join.businessobjects.configuration.interfaces.ClientData;
import org.figure8.join.businessobjects.configuration.interfaces.ConfigurationLocal;
import java.util.Set;
/**
* This object is the representation of a client project for the software project
* to join. It means that current project can be seen as an "Information System Type"
* and current environments as "Information System" of the client. <br>
* In order to have the most efficiency, integration systems of this two projects
* must be connected together. A Client handles information on the client project
* itself (name, home page, ...) and how to notify it of new version creation
* and environment updates.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="Client"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.conf.client.jndi-name}"
local-jndi-name="${objects.conf.client.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.configuration.interfaces.ClientLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.configuration.interfaces.ClientLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.configuration.interfaces"
*
* @ejb.pk class="java.lang.String" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.conf.client.table-name}"
*
* @jboss.tuned-updates "true"
* @jboss.read-ahead strategy="on-load"
* page-size="2"
*/
public abstract class ClientBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Client id
* @ejb.pk-field
* @ejb.persistence column-name="s_id"
*/
public abstract String getId();
/** Client id */
public abstract void setId(String id);
/**
* Client name
* @ejb.interface-method
* @ejb.persistence column-name="s_name"
*/
public abstract String getName();
/**
* Client name
* @ejb.interface-method
*/
public abstract void setName(String name);
/**
* Client home page
* @ejb.interface-method
* @ejb.persistence column-name="s_homepage"
*/
public abstract String getHomePage();
/**
* Client home page
* @ejb.interface-method
*/
public abstract void setHomePage(String homePage);
/**
* Client notifier implementation
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerimpl"
*/
public abstract String getNotifierImpl();
/**
* Client notifier implementation
* @ejb.interface-method
*/
public abstract void setNotifierImpl(String implementation);
/**
* Client notifier implementation params for
* notification of version creation
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerversionparams"
*/
public abstract String getNotifierVersionParams();
/**
* Client notifier implementation params for
* notification of version creation
* @ejb.interface-method
*/
public abstract void setNotifierVersionParams(String params);
/**
* Client notifier implementation params for
* notification of environment update
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerupdateparams"
*/
public abstract String getNotifierUpdateParams();
/**
* Client notifier implementation params for
* notification of environment update
* @ejb.interface-method
*/
public abstract void setNotifierUpdateParams(String param);
/**
* Client notifier implementation params for notification
* of logical environment creation
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerenvironmentparams"
*/
public abstract String getNotifierEnvironmentParams();
/**
* Client notifier implementation params for notification
* of logical environment creation
* @ejb.interface-method
*/
public abstract void setNotifierEnvironmentParams(String param);
/**
* Configuration to which the client is tied
* @ejb.interface-method view-type="local"
* @ejb.relation name="Configuration-OneToMany-Clients-Bi"
* role-name="Client-has-Configuration"
* cascade-delete="yes"
* @jboss.relation fk-constraint="true"
* related-pk-field="id"
* fk-column="s_configuration_fk"
*/
public abstract ConfigurationLocal getConfiguration();
/**
* Configuration to which the client is tied
* @ejb.interface-method view-type="local"
*/
public abstract void setConfiguration(ConfigurationLocal configuration);
/**
* Failures happened when notifying this client
* @ejb.interface-method view-type="local"
* @ejb.relation name="Client-OneToMany-Failures-Bi"
* role-name="Client-has-Failures"
*/
public abstract Set getNotificationFailures();
/**
* Failures happened when notifying this client
* @ejb.interface-method view-type="local"
*/
public abstract void setNotificationFailures(Set failures);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract ClientData getData();
/** Generated bulk accessor */
public abstract void setData(ClientData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Client
* @ejb.create-method
*/
public String ejbCreate(ClientData data, ConfigurationLocal configuration) throws javax.ejb.CreateException{
if (data != null){
setId(ClientUtil.generateGUID(this));
setData(data);
}
else throw new javax.ejb.CreateException("Data object for Client must be non null.");
return null;
}
/** Create a new Client */
public void ejbPostCreate(ClientData data, ConfigurationLocal configuration) throws javax.ejb.CreateException{
setConfiguration(configuration);
}
/**
* Remove this Client
* @ejb.transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
|