本文整理汇总了Java中ims.icp.vo.ICPStageFullVo类的典型用法代码示例。如果您正苦于以下问题:Java ICPStageFullVo类的具体用法?Java ICPStageFullVo怎么用?Java ICPStageFullVo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICPStageFullVo类属于ims.icp.vo包,在下文中一共展示了ICPStageFullVo类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeCloneID
import ims.icp.vo.ICPStageFullVo; //导入依赖的package包/类
private void removeCloneID(ICPFullVo fullCloneICP)
{
fullCloneICP.setID_ICP(null);
fullCloneICP.setStatus(PreActiveActiveInactiveStatus.PREACTIVE);
if (fullCloneICP.getStages() != null)
{
for (ICPStageFullVo stageClone : fullCloneICP.getStages())
{
removeCloneID(stageClone, true, false);
}
}
}
示例2: addClonedStage
import ims.icp.vo.ICPStageFullVo; //导入依赖的package包/类
/**
* WDEV-13773
* Function used to add a cloned ICP Stage to the ICP
*/
@SuppressWarnings("unchecked")
public ICPStageVo addClonedStage(ICPStageFullVo stage, ICPShortVo icp) throws StaleObjectException, ForeignKeyViolationException, UniqueKeyViolationException
{
// Check for parameters
if (icp == null)
throw new DomainRuntimeException("Logical error - Can not add an ICP Stage to a null ICP");
if (stage == null)
throw new DomainRuntimeException("Logical error - Can not add a null ICP Stage to an ICP");
// Check VO for validation
if (!icp.isValidated() || !stage.isValidated())
throw new DomainRuntimeException("Logical error - ICP Stage Vo and ICP Vo must be validated before save");
// Get domain factory
DomainFactory factory = getDomainFactory();
// Extract ICP Stage domain object
ICPStage domainICPStage = ICPStageFullVoAssembler.extractICPStage(factory, stage);
// Extract ICP domain object
ICP domainICP = ICPShortVoAssembler.extractICP(factory, icp);
// Add ICP Stage to ICP Stage collection
domainICP.getStages().add(domainICPStage);
// Save ICP domain object
factory.save(domainICP);
// Return the saved stage
return ICPStageVoAssembler.create(domainICPStage);
}
示例3: getICPStageFull
import ims.icp.vo.ICPStageFullVo; //导入依赖的package包/类
/**
* WDEV-13773
* Function used to get the full ICP Stage
*/
public ICPStageFullVo getICPStageFull(ICPStageRefVo stage)
{
long start = System.nanoTime();
if (stage == null || !stage.getID_ICPStageIsNotNull())
return null;
StringBuilder query = new StringBuilder();
query.append("SELECT stage, phase, action FROM ICPStage AS stage LEFT JOIN stage.phases AS phase LEFT JOIN phase.actions AS action WHERE stage.id = :STAGE_ID");
List<?> queryResults = getDomainFactory().find(query.toString(), "STAGE_ID", stage.getID_ICPStage());
if (queryResults == null)
return null;
Iterator<?> iterator = queryResults.iterator();
ICPStageCloneVo stageResult = null;
ICPPhaseCloneVo phaseResult = null;
ICPActionCloneVo actionResult = null;
while (iterator.hasNext())
{
Object[] queryResultIteration = (Object[]) iterator.next();
if (stageResult == null && queryResultIteration[0] instanceof ICPStage)
{
stageResult = ICPStageCloneVoAssembler.create((ICPStage) queryResultIteration[0]);
stageResult.setPhases(new ICPPhaseCloneVoCollection());
}
if (queryResultIteration[1] instanceof ICPPhase)
{
if (phaseResult == null || phaseResult.getID_ICPPhase() != ((ICPPhase) queryResultIteration[1]).getId())
{
phaseResult = ICPPhaseCloneVoAssembler.create((ICPPhase) queryResultIteration[1]);
phaseResult.setActions(new ICPActionCloneVoCollection());
if (stageResult != null && stageResult.getPhasesIsNotNull())
{
stageResult.getPhases().add(phaseResult);
}
}
}
if (queryResultIteration[2] instanceof ICPAction)
{
if (actionResult == null || actionResult.getID_ICPAction() != ((ICPAction) queryResultIteration[2]).getId())
{
actionResult = ICPActionCloneVoAssembler.create((ICPAction) queryResultIteration[2]);
if (phaseResult != null && phaseResult.getActionsIsNotNull())
{
phaseResult.getActions().add(actionResult);
}
}
}
}
ICPStageFullVo stageToReturn = stageResult.getCloneStageFullVo();
long end = System.nanoTime();
System.out.println("Elapsed time:" + (end - start) + " nanoseconds");
return stageToReturn;
}