join-cvs Mailing List for Join Integration Management System (Page 64)
Brought to you by:
lbroudoux
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(68) |
Aug
(146) |
Sep
(35) |
Oct
(30) |
Nov
(56) |
Dec
(45) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
(48) |
Mar
(56) |
Apr
(13) |
May
(15) |
Jun
(37) |
Jul
(113) |
Aug
(41) |
Sep
(24) |
Oct
(44) |
Nov
(52) |
Dec
|
| 2005 |
Jan
(73) |
Feb
(14) |
Mar
(19) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(90) |
Sep
(51) |
Oct
(5) |
Nov
(24) |
Dec
(1) |
| 2006 |
Jan
(26) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(165) |
Aug
(4) |
Sep
(5) |
Oct
(48) |
Nov
(3) |
Dec
(10) |
| 2007 |
Jan
(38) |
Feb
(48) |
Mar
(3) |
Apr
(31) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
(9) |
Dec
|
| 2008 |
Jan
(21) |
Feb
(41) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(12) |
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
| 2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <lbr...@us...> - 2003-07-18 13:58:55
|
Update of /cvsroot/join/join/src/main/org/figure8/join/taglib In directory sc8-pr-cvs1:/tmp/cvs-serv16993/taglib Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/taglib added to the repository |
|
From: <lbr...@us...> - 2003-07-10 13:52:16
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/component/ejb In directory sc8-pr-cvs1:/tmp/cvs-serv17210/ejb Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/businessobjects/component/ejb added to the repository |
|
From: <lbr...@us...> - 2003-07-10 13:51:56
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/component In directory sc8-pr-cvs1:/tmp/cvs-serv17152/component Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/businessobjects/component added to the repository |
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/environment/ejb
In directory sc8-pr-cvs1:/tmp/cvs-serv1463
Added Files:
EnvMappingBean.java LogicalEnvBean.java PhysicalEnvBean.java
StatusBean.java StepBean.java TargetBean.java
Log Message:
Initial checkin
--- NEW FILE: EnvMappingBean.java ---
/*
* EnvMappingBean.java
*
* Created on 3 september 2002, 14:13
*/
package org.figure8.join.businessobjects.environment.ejb;
import org.figure8.join.view.EnvMappingView;
import org.figure8.join.businessobjects.environment.util.EnvMappingUtil;
import org.figure8.join.businessobjects.environment.interfaces.EnvMappingData;
import org.figure8.join.businessobjects.environment.interfaces.LogicalEnvLocal;
import org.figure8.join.businessobjects.environment.interfaces.PhysicalEnvLocal;
import java.sql.Date;
import java.util.Set;
/**
* This object represents the mapping between a Join logical environment
* and a Join physical environment. Mappings are kept in datastore for history
* purpose ; the current one for a specific environment is the one having
* <code>endDate</code> equals to null.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="EnvMapping"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.env.envMapping.jndi-name}"
local-jndi-name="${objects.env.envMapping.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.environment.interfaces.EnvMappingLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.environment.interfaces.EnvMappingLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.environment.interfaces"
*
* @ejb.finder signature="Collection findActivesForLogical(org.figure8.join.businessobjects.environment.interfaces.LogicalEnvLocal env)"
unchecked="true" transaction-type="Supports"
query="SELECT DISTINCT OBJECT(m) FROM EnvMapping AS m WHERE m.logicalEnv=?1 AND m.endDate IS NULL"
* @ejb.finder signature="Collection findActivesForPhysical(org.figure8.join.businessobjects.environment.interfaces.PhysicalEnvLocal env)"
unchecked="true" transaction-type="Supports"
query="SELECT DISTINCT OBJECT(m) FROM EnvMapping AS m WHERE m.physicalEnv=?1 AND m.endDate IS NULL"
* @ejb.finder signature="Collection findActivesForPhysicalAndDate(org.figure8.join.businessobjects.environment.interfaces.PhysicalEnvLocal env, java.util.Date date)"
unchecked="true" transaction-type="Supports"
query="SELECT DISTINCT OBJECT(m) FROM EnvMapping AS m WHERE m.physicalEnv=?1 AND (m.creationDate<?2 OR m.creationDate=?2) AND (m.endDate>?2 OR m.endDate=?2)"
*
* @ejb.pk class="java.lang.String" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.env.envMapping.table-name}"
*
* @jboss.read-ahead strategy="${objects.env.envMapping.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.env.envMapping.jboss.tuned-updates}"
*/
public abstract class EnvMappingBean implements javax.ejb.EntityBean{
// Attributes ---------------------------------------------------------------
protected EnvMappingView viewHolder = null;
// Public -------------------------------------------------------------------
/**
* Environment Mapping id
* @ejb.pk-field
* @ejb.persistence column-name="s_id"
*/
public abstract String getId();
/** Environment Mapping id */
public abstract void setId(String id);
/**
* Environment Mapping creation date
* @ejb.interface-method
* @ejb.persistence column-name="d_creation"
* sql-type="TIMESTAMP"
*/
public abstract java.sql.Date getCreationDate();
/**
* Environment Mapping creation date
* @ejb.interface-method
*/
public abstract void setCreationDate(java.sql.Date creationDate);
/**
* Environment Mapping end date
* @ejb.interface-method
* @ejb.persistence column-name="d_end"
* sql-type="TIMESTAMP"
*/
public abstract java.sql.Date getEndDate();
/**
* Environment Mapping end date
* @ejb.interface-method
*/
public abstract void setEndDate(java.sql.Date endDate);
/**
* Logical environment of this Mapping
* @ejb.interface-method view-type="local"
* @ejb.relation name="LogicalEnv-OneToMany-EnvMappings-Bi"
* role-name="EnvMapping-has-LogicalEnv"
* @jboss.relation fk-constraint="true"
* related-pk-field="id"
* fk-column="n_logicalenv_fk"
*/
public abstract LogicalEnvLocal getLogicalEnv();
/**
* Logical environment of this Mapping
* @ejb.interface-method view-type="local"
*/
public abstract void setLogicalEnv(LogicalEnvLocal environment);
/**
* Physical environment of this Mapping
* @ejb.interface-method view-type="local"
* @ejb.relation name="PhysicalEnv-OneToMany-EnvMappings-Bi"
* role-name="EnvMapping-has-PhysicalEnv"
* @jboss.relation fk-constraint="true"
* related-pk-field="id"
* fk-column="n_physicalenv_fk"
*/
public abstract PhysicalEnvLocal getPhysicalEnv();
/**
* Physical environment of this Mapping
* @ejb.interface-method view-type="local"
*/
public abstract void setPhysicalEnv(PhysicalEnvLocal environment);
/**
* Updates made on environment during this Mapping
* @ejb.interface-method view-type="local"
* @ejb.relation name="EnvMapping-OneToMany-Updates-Bi"
* role-name="EnvMapping-has-Updates"
*/
public abstract Set getUpdates();
/**
* Updates made on environment during this Mapping
* @ejb.interface-method view-type="local"
*/
public abstract void setUpdates(Set updates);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract EnvMappingData getData();
/** Generated bulk accessor */
public abstract void setData(EnvMappingData data);
/**
* Make this mapping between logical and physical environments end.
* @ejb.interface-method
*/
public void close(){
setEndDate(new java.sql.Date(System.currentTimeMillis()));
}
/**
* Business view on Environment Mapping
* @ejb.interface-method
*/
public EnvMappingView getView(){
if (viewHolder == null)
viewHolder = new EnvMappingView(getData(), getLogicalEnv().getData(), getPhysicalEnv().getData());
return viewHolder;
}
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Environment Mapping
* @ejb.create-method
*/
public String ejbCreate(EnvMappingData data, LogicalEnvLocal logical, PhysicalEnvLocal physical) throws javax.ejb.CreateException{
if (data != null){
setId(EnvMappingUtil.generateGUID(this));
setData(data);
}
else throw new javax.ejb.CreateException("Data object for EnvMapping must be non null.");
return null;
}
/** Create a new Environment Mapping */
public void ejbPostCreate(EnvMappingData data, LogicalEnvLocal logical, PhysicalEnvLocal physical) throws javax.ejb.CreateException{
setLogicalEnv(logical);
setPhysicalEnv(physical);
}
/**
* Remove this Environment Mapping
* @ejb.transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
--- NEW FILE: LogicalEnvBean.java ---
/*
* LogicalEnvBean.java
*
* Created on 20 august 2002, 20:37
*/
package org.figure8.join.businessobjects.environment.ejb;
import org.figure8.join.businessobjects.access.interfaces.UserLocal;
import org.figure8.join.businessobjects.component.interfaces.ReleaseLocal;
import org.figure8.join.businessobjects.environment.interfaces.StepLocal;
import org.figure8.join.businessobjects.environment.interfaces.LogicalEnvData;
import org.figure8.join.businessobjects.environment.interfaces.PhysicalEnvLocal;
import java.util.Set;
/**
* This object is a representation of a Join logical environment.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="LogicalEnv"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.env.logicalEnv.jndi-name}"
local-jndi-name="${objects.env.logicalEnv.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.environment.interfaces.LogicalEnvLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.environment.interfaces.LogicalEnvLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.environment.interfaces"
*
* @ejb.finder signature="Collection findAll()"
unchecked="true" transaction-type="NotSupported"
query="SELECT DISTINCT OBJECT(le) FROM LogicalEnv AS le"
*
* @ejb.pk class="java.lang.Integer" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.env.logicalEnv.table-name}"
*
* @jboss.read-ahead strategy="${objects.env.logicalEnv.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.env.logicalEnv.jboss.tuned-updates}"
*
* @jboss:query signature="Collection findAll()"
query="SELECT OBJECT(le) FROM LogicalEnv AS le ORDER BY le.id ASC"
*/
public abstract class LogicalEnvBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Logical environment id
* @ejb.pk-field
* @ejb.persistence column-name="n_id"
*/
public abstract Integer getId();
/** Logical environment id (not interface method) */
public abstract void setId(Integer id);
/**
* Logical environment label
* @ejb.interface-method
* @ejb.persistence column-name="s_label"
*/
public abstract String getLabel();
/**
* Logical environment name
* @ejb.interface-method
*/
public abstract void setLabel(String label);
/**
* Logical environment description
* @ejb.interface-method
* @ejb.persistence column-name="s_description"
*/
public abstract String getDescription();
/**
* Logical environment description
* @ejb.interface-method
*/
public abstract void setDescription(String description);
/**
* Logical environment manager
* @ejb.interface-method
* @ejb.persistence column-name="s_manager_fk"
*/
public abstract String getManagerId();
/**
* Logical environment manager
* @ejb.interface-method
*/
public abstract void setManagerId(String managerId);
/**
* Logical environment is mapped on logical ones using EnvMappings
* @ejb.interface-method view-type="local"
* @ejb.relation name="LogicalEnv-OneToMany-EnvMappings-Bi"
* role-name="LogicalEnv-has-EnvMappings"
*/
public abstract Set getEnvMappings();
/**
* Logical environment is mapped on logical ones using EnvMappings
* @ejb.interface-method view-type="local"
*/
public abstract void setEnvMappings(Set envMappings);
/**
* Logical environment is dedicated to a Step
* @ejb.interface-method view-type="local"
* @ejb.relation name="Step-OneToMany-LogicalEnvs-Uni"
* role-name="LogicalEnv-belongsto-Step"
* target-role-name="Step-has-LogicalEnvs"
* target-ejb="Step"
* target-multiple="yes"
* @jboss.relation fk-constraint="true"
* related-pk-field="id"
* fk-column="s_step_fk"
*/
public abstract StepLocal getStep();
/**
* Logical environment is dedicated to a Step
* @ejb.interface-method view-type="local"
*/
public abstract void setStep(StepLocal step);
/**
* Logical environment is dedicated to a Release
* @ejb.interface-method view-type="local"
* @ejb.relation name="Release-OneToMany-LogicalEnvs-Uni"
* role-name="LogicalEnv-belongsto-Release"
* target-role-name="Release-has-LogicalEnvs"
* target-ejb="Release"
* target-multiple="yes"
* @jboss.relation fk-constraint="true"
* related-pk-field="id"
* fk-column="s_release_fk"
*/
public abstract ReleaseLocal getRelease();
/**
* Logical environment is dedicated to a Release
* @ejb.interface-method view-type="local"
*/
public abstract void setRelease(ReleaseLocal release);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract LogicalEnvData getData();
/** Generated bulk accessor */
public abstract void setData(LogicalEnvData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Logical Environment
* @ejb.create-method
*/
public Integer ejbCreate(LogicalEnvData data) throws javax.ejb.CreateException{
if (data.getId() != null){
setId(data.getId());
setData(data);
}
else throw new javax.ejb.CreateException("Identifier (id) of LogicalEnv must be non null.");
return null;
}
/** Create a new LogicalEnvironment */
public void ejbPostCreate(LogicalEnvData data) throws javax.ejb.CreateException {}
/**
* Remove this Logical Environment
* @ejb:transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
--- NEW FILE: PhysicalEnvBean.java ---
/*
* PhysicalEnvBean.java
*
* Created on 28 august 2002, 11:37
*/
package org.figure8.join.businessobjects.environment.ejb;
import org.figure8.join.businessobjects.resource.interfaces.BoundGatewayLocal;
import org.figure8.join.businessobjects.environment.interfaces.LogicalEnvLocal;
import org.figure8.join.businessobjects.environment.interfaces.PhysicalEnvData;
import java.util.Set;
/**
* This object is a representation of a Join physical environment.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="PhysicalEnv"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.env.physicalEnv.jndi-name}"
local-jndi-name="${objects.env.physicalEnv.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.environment.interfaces.PhysicalEnvLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.environment.interfaces.PhysicalEnvLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.environment.interfaces"
*
* @ejb.finder signature="Collection findAll()" unchecked="true" transaction-type="NotSupported"
* @ejb.finder signature="Collection findActives()" unchecked="true" transaction-type="Supports"
* query="SELECT DISTINCT OBJECT(p) FROM PhysicalEnv AS p, IN(p.envMappings) AS m WHERE m.endDate IS NULL"
*
* @ejb.pk class="java.lang.Integer" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.env.physicalEnv.table-name}"
*
* @jboss.read-ahead strategy="${objects.env.physicalEnv.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.env.physicalEnv.jboss.tuned-updates}"
*/
public abstract class PhysicalEnvBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Physical environment id
* @ejb.pk-field
* @ejb.persistence column-name="n_id"
*/
public abstract Integer getId();
/** Physical environment id */
public abstract void setId(Integer id);
/**
* Physical environment label
* @ejb.interface-method
* @ejb.persistence column-name="s_label"
*/
public abstract String getLabel();
/**
* Physical environment label
* @ejb.interface-method
*/
public abstract void setLabel(String label);
/**
* Physical environment is mapped on logical ones using EnvMappings
* @ejb.interface-method view-type="local"
* @ejb.relation name="PhysicalEnv-OneToMany-EnvMappings-Bi"
* role-name="PhysicalEnv-has-EnvMappings"
*/
public abstract Set getEnvMappings();
/**
* Physical environment is mapped on logical ones using EnvMappings
* @ejb.interface-method view-type="local"
*/
public abstract void setEnvMappings(Set envMappings);
/**
* Physical environment Bound Services
* @ejb.interface-method view-type="local"
* @ejb.relation name="PhysicalEnv-OneToMany-BoundServices-Bi"
* role-name="PhysicalEnv-has-BoundServices"
*/
public abstract Set getBoundServices();
/**
* Physical environment Bound Services
* @ejb.interface-method view-type="local"
*/
public abstract void setBoundServices(Set boundServices);
/**
* Physical environment Bound Resources
* @ejb.interface-method view-type="local"
* @ejb.relation name="PhysicalEnv-OneToMany-BoundResources-Bi"
* role-name="PhysicalEnv-has-BoundResources"
*/
public abstract Set getBoundResources();
/**
* Physical environment Bound Resources
* @ejb.interface-method view-type="local"
*/
public abstract void setBoundResources(Set boundResources);
/**
* Physical environment Gateway
* @ejb.interface-method view-type="local"
* @ejb.relation name="PhysicalEnv-OneToMany-BoundGateways-Bi"
* role-name="PhysicalEnv-has-BoundGateways"
*/
public abstract Set getBoundGateways();
/**
* Physical environment Gateway
* @ejb.interface-method view-type="local"
*/
public abstract void setBoundGateways(Set boundGateways);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract PhysicalEnvData getData();
/** Generated bulk accessor */
public abstract void setData(PhysicalEnvData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Physical environment
* @ejb.create-method
*/
public Integer ejbCreate(PhysicalEnvData data) throws javax.ejb.CreateException{
if (data.getId() != null){
setId(data.getId());
setData(data);
}
else throw new javax.ejb.CreateException();
return null;
}
/** Create a new Physical environment */
public void ejbPostCreate(PhysicalEnvData data) throws javax.ejb.CreateException {}
/**
* Remove this Physical environment
* @ejb.transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
--- NEW FILE: StatusBean.java ---
/*
* StatusBean.java
*
* Created on 20 august 2002, 22:58
*/
package org.figure8.join.businessobjects.environment.ejb;
import org.figure8.join.businessobjects.environment.interfaces.StatusData;
import java.util.Set;
/**
* This is the object representation of an update Status
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="Status"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.env.status.jndi-name}"
local-jndi-name="${objects.env.status.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.environment.interfaces.StatusLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.environment.interfaces.StatusLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.environment.interfaces"
*
* @ejb.finder signature="Collection findAll()" unchecked="true" transaction-type="NotSupported"
*
* @ejb.pk class="java.lang.String" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.env.status.table-name}"
*
* @jboss.read-ahead strategy="${objects.env.status.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.env.status.jboss.tuned-updates}"
*/
public abstract class StatusBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Status id
* @ejb:pk-field
* @ejb.persistence column-name="s_id"
*/
public abstract String getId();
/** Status id */
public abstract void setId(String id);
/**
* Status label
* @ejb.interface-method
* @ejb.persistence column-name="s_label"
*/
public abstract String getLabel();
/**
* Status label
* @ejb.interface-method
*/
public abstract void setLabel(String label);
/**
* Builds having this Status
* @ejb.interface-method view-type="local"
* @ejb.relation name="Status-OneToMany-Builds-Bi"
* role-name="Status-has-Builds"
*/
public abstract Set getBuilds();
/**
* Builds having this Status
* @ejb.interface-method view-type="local"
*/
public abstract void setBuilds(Set builds);
/**
* Versions having this Status
* @ejb.interface-method view-type="local"
* @ejb.relation name="Status-OneToMany-Versions-Bi"
* role-name="Status-has-Versions"
*/
public abstract Set getVersions();
/**
* Versions having this Status
* @ejb.interface-method view-type="local"
*/
public abstract void setVersions(Set versions);
/**
* Updates having this Status
* @ejb.interface-method view-type="local"
* @ejb.relation name="Status-OneToMany-Updates-Bi"
* role-name="Status-has-Updates"
*/
public abstract Set getUpdates();
/**
* Updates having this Status
* @ejb.interface-method view-type="local"
*/
public abstract void setUpdates(Set updates);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract StatusData getData();
/** Generated bulk accessor */
public abstract void setData(StatusData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Status
* @ejb.create-method
*/
public String ejbCreate(StatusData data) throws javax.ejb.CreateException{
if (data.getId() != null){
setId(data.getId());
setData(data);
}
else throw new javax.ejb.CreateException("Identifier (id) of Status must be non null.");
return null;
}
/** Create a new Status */
public void ejbPostCreate(StatusData data) throws javax.ejb.CreateException {}
/**
* Remove this Status
* @ejb:transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
--- NEW FILE: StepBean.java ---
/*
* StepBean.java
*
* Created on 28 august 2002, 10:44
*/
package org.figure8.join.businessobjects.environment.ejb;
import org.figure8.join.businessobjects.environment.util.StepUtil;
import org.figure8.join.businessobjects.environment.interfaces.StepData;
/**
* This object is a representation of an Integration (Join) Process Step.
* Steps and their order define the integration process and the life cycle
* of assembly versions.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="Step"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.env.step.jndi-name}"
local-jndi-name="${objects.env.step.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.environment.interfaces.StepLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.environment.interfaces.StepLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.environment.interfaces"
*
* @ejb.finder signature="Collection findAll()"
unchecked="true" transaction-type="NotSupported"
query="SELECT DISTINCT OBJECT(s) FROM Step AS s"
* @ejb.finder signature="Collection findWithOrderSuperior(java.lang.Integer order)"
unchecked="true" transaction-type="Supports"
query="SELECT DISTINCT OBJECT(s) FROM Step AS s WHERE s.order>=?1"
*
* @ejb.pk class="java.lang.String" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.env.step.table-name}"
*
* @jboss.read-ahead strategy="${objects.env.step.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.env.step.jboss.tuned-updates}"
*
* @jboss:query signature="Collection findAll()"
query="SELECT OBJECT(s) FROM Step AS s ORDER BY s.order ASC"
*/
public abstract class StepBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Step id
* @ejb.pk-field
* @ejb.persistence column-name="s_id"
*/
public abstract String getId();
/** Step id */
public abstract void setId(String id);
/**
* Step label
* @ejb.interface-method
* @ejb.persistence column-name="s_label"
*/
public abstract String getLabel();
/**
* Step label
* @ejb.interface-method
*/
public abstract void setLabel(String label);
/**
* Step order in integration process
* @ejb.interface-method
* @ejb.persistence column-name="n_order"
*/
public abstract Integer getOrder();
/**
* Step order in integration process
* @ejb.interface-method
*/
public abstract void setOrder(Integer order);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract StepData getData();
/** Generated bulk accessor */
public abstract void setData(StepData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Step
* @ejb.create-method
*/
public String ejbCreate(StepData data) throws javax.ejb.CreateException{
if (data != null){
setId(StepUtil.generateGUID(this));
setData(data);
}
else throw new javax.ejb.CreateException("Data object for Step must be non null.");
return null;
}
/** Create a new Step */
public void ejbPostCreate(StepData data) throws javax.ejb.CreateException {}
/**
* Remove this Step
* @ejb.transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
--- NEW FILE: TargetBean.java ---
/*
* TargetBean.java
*
* Created on 23 august 2002, 20:35
*/
package org.figure8.join.businessobjects.environment.ejb;
import org.figure8.join.businessobjects.environment.interfaces.TargetData;
/**
* This is the object representation of an update Target. A target can be used
* to specify parts of physical environments to update with the new assembly
* version.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="Target"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.env.target.jndi-name}"
local-jndi-name="${objects.env.target.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.environment.interfaces.TargetLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.environment.interfaces.TargetLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.environment.interfaces"
*
* @ejb.finder signature="Collection findAll()" unchecked="true" transaction-type="NotSupported"
*
* @ejb.pk class="java.lang.Integer" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.env.target.table-name}"
*
* @jboss.read-ahead strategy="${objects.env.target.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.env.target.jboss.tuned-updates}"
*/
public abstract class TargetBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Target id
* @ejb:pk-field
* @ejb.persistence column-name="n_id"
*/
public abstract Integer getId();
/** Target id */
public abstract void setId(Integer id);
/**
* Target short label
* @ejb.interface-method
* @ejb.persistence column-name="s_shortlabel"
*/
public abstract String getShortLabel();
/**
* Target short label
* @ejb.interface-method
*/
public abstract void setShortLabel(String shortLabel);
/**
* Target long label
* @ejb.interface-method
* @ejb.persistence column-name="s_longlabel"
*/
public abstract String getLongLabel();
/**
* Target long label
* @ejb.interface-method
*/
public abstract void setLongLabel(String longLabel);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract TargetData getData();
/** Generated bulk accessor */
public abstract void setData(TargetData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Target
* @ejb.create-method
*/
public Integer ejbCreate(TargetData data) throws javax.ejb.CreateException{
if (data.getId() != null){
setId(data.getId());
setData(data);
}
else throw new javax.ejb.CreateException("Identifier (id) of Target must be non null.");
return null;
}
/** Create a new Target */
public void ejbPostCreate(TargetData data) throws javax.ejb.CreateException {}
/**
* Remove this Target
* @ejb:transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
|
|
From: <lbr...@us...> - 2003-07-08 15:41:36
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/environment/ejb In directory sc8-pr-cvs1:/tmp/cvs-serv31913/ejb Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/businessobjects/environment/ejb added to the repository |
|
From: <lbr...@us...> - 2003-07-08 15:40:54
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/environment In directory sc8-pr-cvs1:/tmp/cvs-serv31810/environment Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/businessobjects/environment added to the repository |
|
From: <lbr...@us...> - 2003-07-08 15:37:32
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration/ejb
In directory sc8-pr-cvs1:/tmp/cvs-serv31343
Added Files:
NotificationFailureBean.java
Log Message:
Initial checkin
--- NEW FILE: NotificationFailureBean.java ---
/*
* NotificationFailureBean.java
*
* Created on 17 march 2003, 18:51
*/
package org.figure8.join.businessobjects.configuration.ejb;
import org.figure8.join.businessobjects.configuration.interfaces.ClientLocal;
import org.figure8.join.businessobjects.configuration.interfaces.NotificationFailureData;
import org.figure8.join.businessobjects.configuration.util.NotificationFailureUtil;
import java.sql.Date;
/**
* This is the representation of a failure of a client's notification. Notification
* failures tracing help Join system administrator to tune the notifyer parameters and
* to recover a consistent system status after a technical exception (network failure,
* client technical failure, ...). Notification failures can be seen through Join http
* portal, must be recovered "manually" and then removed from "opened failures" list.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="NotificationFailure"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.conf.failure.jndi-name}"
local-jndi-name="${objects.conf.failure.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.configuration.interfaces.NotificationFailureLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.configuration.interfaces.NotificationFailureLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.configuration.interfaces"
*
* @ejb.finder signature="Collection findByConfiguration(org.figure8.join.businessobjects.configuration.interfaces.ConfigurationLocal config)"
unchecked="true" transaction-type="Supports"
query="SELECT DISTINCT OBJECT(nf) FROM NotificationFailure AS nf WHERE nf.client.configuration=?1"
*
* @ejb.pk class="java.lang.String" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.conf.failure.table-name}"
*
* @jboss.read-ahead strategy="${objects.conf.failure.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.conf.failure.jboss.tuned-updates}"
*
* @jboss:query signature="Collection findByConfiguration(org.figure8.join.businessobjects.configuration.interfaces.ConfigurationLocal config)"
* query="SELECT DISTINCT OBJECT(nf) FROM NotificationFailure AS nf WHERE nf.client.configuration=?1 ORDER BY nf.creationDate DESC"
*/
public abstract class NotificationFailureBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Notification failure id
* @ejb.pk-field
* @ejb.persistence column-name="s_id"
*/
public abstract String getId();
/** Notification failure id */
public abstract void setId(String id);
/**
* Notification failure creation date
* @ejb.interface-method
* @ejb.persistence column-name="d_creation"
* sql-type="TIMESTAMP"
*/
public abstract java.sql.Date getCreationDate();
/**
* Notification failure creation date
* @ejb.interface-method
*/
public abstract void setCreationDate(java.sql.Date creationDate);
/**
* Notification type
* @ejb.interface-method
* @ejb.persistence column-name="s_type"
*/
public abstract String getType();
/**
* Notification type
* @ejb.interface-method
*/
public abstract void setType(String type);
/**
* Notification reference
* @ejb.interface-method
* @ejb.persistence column-name="s_reference"
*/
public abstract String getReference();
/**
* Notification reference
* @ejb.interface-method
*/
public abstract void setReference(String reference);
/**
* Client concerned by the notification failure
* @ejb.interface-method view-type="local"
* @ejb.relation name="Client-OneToMany-Failures-Bi"
* role-name="Failure-has-Client"
* cascade-delete="yes"
* @jboss.relation fk-constraint="true"
* related-pk-field="id"
* fk-column="s_client_fk"
*/
public abstract ClientLocal getClient();
/**
* Client concerned by the notification failure
* @ejb.interface-method view-type="local"
*/
public abstract void setClient(ClientLocal client);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract NotificationFailureData getData();
/** Generated bulk accessor */
public abstract void setData(NotificationFailureData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Notification failure
* @ejb.create-method
*/
public String ejbCreate(NotificationFailureData data, ClientLocal client) throws javax.ejb.CreateException{
if (data != null){
setId(NotificationFailureUtil.generateGUID(this));
setData(data);
}
else throw new javax.ejb.CreateException("Data object for Notification Failure must be non null.");
return null;
}
/** Create a new Notification failure */
public void ejbPostCreate(NotificationFailureData data, ClientLocal client) throws javax.ejb.CreateException{
setClient(client);
}
/**
* Remove this Notificaton failure
* @ejb.transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
|
|
From: <lbr...@us...> - 2003-07-08 15:36:13
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration/ejb
In directory sc8-pr-cvs1:/tmp/cvs-serv31174
Added Files:
ClientBean.java
Log Message:
Initial checkin
--- 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.read-ahead strategy="${objects.conf.client.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.conf.client.jboss.tuned-updates}"
*/
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 notifyer implementation
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerimpl"
*/
public abstract String getNotifyerImpl();
/**
* Client notifyer implementation
* @ejb.interface-method
*/
public abstract void setNotifyerImpl(String implementation);
/**
* Client notifyer implementation params for
* notification of version creation
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerversionparams"
*/
public abstract String getNotifyerVersionParams();
/**
* Client notifyer implementation params for
* notification of version creation
* @ejb.interface-method
*/
public abstract void setNotifyerVersionParams(String params);
/**
* Client notifyer implementation params for
* notification of environment update
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerupdateparams"
*/
public abstract String getNotifyerUpdateParams();
/**
* Client notifyer implementation params for
* notification of environment update
* @ejb.interface-method
*/
public abstract void setNotifyerUpdateParams(String param);
/**
* Client notifyer implementation params for notification
* of logical environment creation
* @ejb.interface-method
* @ejb.persistence column-name="s_notifyerenvironmentparams"
*/
public abstract String getNotifyerEnvironmentParams();
/**
* Client notifyer implementation params for notification
* of logical environment creation
* @ejb.interface-method
*/
public abstract void setNotifyerEnvironmentParams(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 {}
}
|
|
From: <lbr...@us...> - 2003-07-08 15:34:55
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration/ejb
In directory sc8-pr-cvs1:/tmp/cvs-serv30895
Added Files:
ConfigurationBean.java
Log Message:
Initial checkin
--- NEW FILE: ConfigurationBean.java ---
/*
* ConfigurationBean.java
*
* Created on 20 october 2002, 18:11
*/
package org.figure8.join.businessobjects.configuration.ejb;
import org.figure8.join.businessobjects.configuration.util.ConfigurationUtil;
import org.figure8.join.businessobjects.configuration.interfaces.ConfigurationData;
import java.sql.Date;
import java.util.Set;
/**
* This object is the representation of a Join system configuration. Configuration
* keeps informations on what style to use for displaying Join information, who are
* the clients to notity when creating a new version, which features of Join to
* use for the current software project, etc ...
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*
* @ejb.bean name="Configuration"
type="CMP" cmp-version="2.x" view-type="local"
jndi-name="${objects.conf.configuration.jndi-name}"
local-jndi-name="${objects.conf.configuration.jndi-name}Local"
primkey-field="id"
* @ejb.home local-class="org.figure8.join.businessobjects.configuration.interfaces.ConfigurationLocalHome"
* @ejb.interface local-class="org.figure8.join.businessobjects.configuration.interfaces.ConfigurationLocal"
* @ejb.data-object package="org.figure8.join.businessobjects.configuration.interfaces"
*
* @ejb.finder signature="Collection findAll()" unchecked="true" transaction-type="NotSupported"
* @ejb.finder signature="Collection findActives()"
unchecked="true" transaction-type="Supports"
query="SELECT DISTINCT OBJECT(c) FROM Configuration AS c WHERE c.active=TRUE"
*
* @ejb.pk class="java.lang.String" generate="false" unchecked="true"
* @ejb.persistence table-name="${objects.conf.configuration.table-name}"
*
* @jboss.read-ahead strategy="${objects.conf.configuration.jboss.read-ahead}"
* @jboss.tuned-updates "${objects.conf.configuration.jboss.tuned-updates}"
*/
public abstract class ConfigurationBean implements javax.ejb.EntityBean{
// Public -------------------------------------------------------------------
/**
* Configuration id
* @ejb.pk-field
* @ejb.persistence column-name="s_id"
*/
public abstract String getId();
/** Configuration id */
public abstract void setId(String id);
/**
* Configuration label
* @ejb.interface-method
* @ejb.persistence column-name="s_label"
*/
public abstract String getLabel();
/**
* Configuration label
* @ejb.interface-method
*/
public abstract void setLabel(String label);
/**
* User Interface skin to use
* @ejb.interface-method
* @ejb.persistence column-name="s_skin"
*/
public abstract String getSkin();
/**
* User Interface skin to use
* @ejb.interface-method
*/
public abstract void setSkin(String skin);
/**
* User Interface layout to use
* @ejb.interface-method
* @ejb.persistence column-name="s_layout"
*/
public abstract String getLayout();
/**
* User Interface layout to use
* @ejb.interface-method
*/
public abstract void setLayout(String layout);
/**
* Configuration creation date
* @ejb.interface-method
* @ejb.persistence column-name="d_creation"
* sql-type="TIMESTAMP"
*/
public abstract java.sql.Date getCreationDate();
/**
* Configuration creation date
* @ejb.interface-method
*/
public abstract void setCreationDate(java.sql.Date creationDate);
/**
* Is configuration the active one ?
* @ejb.interface-method
* @ejb.persistence column-name="b_active"
*/
public abstract boolean getActive();
/**
* Is configuration the active one ?
* @ejb.interface-method
*/
public abstract void setActive(boolean active);
/**
* Use Gateway feature ?
* @ejb.interface-method
* @ejb.persistence column-name="b_usegateway"
*/
public abstract boolean getUseGateway();
/**
* Use Gateway feature ?
* @ejb.interface-method
*/
public abstract void setUseGateway(boolean useGateway);
/**
* Configuration Clients
* @ejb.interface-method view-type="local"
* @ejb.relation name="Configuration-OneToMany-Clients-Bi"
* role-name="Configuration-has-Clients"
*/
public abstract Set getClients();
/**
* Configuration Clients
* @ejb.interface-method view-type="local"
*/
public abstract void setClients(Set clients);
/**
* Generated bulk accessor
* @ejb.interface-method
*/
public abstract ConfigurationData getData();
/** Generated bulk accessor */
public abstract void setData(ConfigurationData data);
// Implementation of EntityBean ---------------------------------------------
/**
* Create a new Configuration
* @ejb.create-method
*/
public String ejbCreate(ConfigurationData data) throws javax.ejb.CreateException{
if (data != null){
setId(ConfigurationUtil.generateGUID(this));
setData(data);
}
else throw new javax.ejb.CreateException("Data object for Configuration must be non null.");
return null;
}
/** Create a new Configuration */
public void ejbPostCreate(ConfigurationData data) throws javax.ejb.CreateException{}
/**
* Remove this Configuration
* @ejb.transaction type="Mandatory"
*/
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException {}
}
|
|
From: <lbr...@us...> - 2003-07-08 15:33:47
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration/ejb In directory sc8-pr-cvs1:/tmp/cvs-serv30681/ejb Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration/ejb added to the repository |
|
From: <lbr...@us...> - 2003-07-08 15:32:52
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration In directory sc8-pr-cvs1:/tmp/cvs-serv30485/configuration Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/businessobjects/configuration added to the repository |
|
From: <lbr...@us...> - 2003-07-08 15:31:19
|
Update of /cvsroot/join/join/src/main/org/figure8/join/businessobjects In directory sc8-pr-cvs1:/tmp/cvs-serv30281/businessobjects Log Message: Directory /cvsroot/join/join/src/main/org/figure8/join/businessobjects added to the repository |
|
From: <lbr...@us...> - 2003-07-08 15:29:49
|
Update of /cvsroot/join/join/src/main/org/figure8/join/service
In directory sc8-pr-cvs1:/tmp/cvs-serv29904
Added Files:
PropertiesExtractor.java
Log Message:
Initial checkin
--- NEW FILE: PropertiesExtractor.java ---
/*
* PropertiesExtractor.java
*
* Created on 21 november 2002, 19:07
*/
package org.figure8.join.service;
import java.util.Properties;
/**
* General purpose object converter that transforms object (and its inner fields
* graph) into a flat set of properties. Use an extractor to flatten objects for
* using them, for example, in a Ant script.
* @author <a href="mailto:lau...@fr...">Laurent Broudoux</a>
*/
public interface PropertiesExtractor{
/**
* Extract a set of properties from the given object.
* @param obj The object to flatten into properties
* @throws IllegalArgumentException if the object class is not supported
* by extractor implementation
*/
public Properties extract(Object obj) throws IllegalArgumentException;
}
|