Java 类ims.core.vo.domain.CDSHistoryVoAssembler 实例源码

项目:AvoinApotti    文件:CDSGenerateImpl.java   
private void saveHistory(CDSHistoryVo histVo) throws StaleObjectException
{
    histVo.setJobEndTime(new DateTime());

    if(histVo.getErrorMessageIsNotNull() && histVo.getErrorMessage().length() > histVo.getErrorMessageMaxLength())
    {
        histVo.setErrorMessage(histVo.getErrorMessage().substring(0, histVo.getErrorMessageMaxLength() - 1));   
    }

    histVo.validate();

    DomainFactory domainFactory = getDomainFactory();

    CDSHistory hist = CDSHistoryVoAssembler.extractCDSHistory(domainFactory, histVo);

    domainFactory.save(hist);
}
项目:openMAXIMS    文件:CDSGenerateImpl.java   
private void saveHistory(CDSHistoryVo histVo) throws StaleObjectException
{
    histVo.setJobEndTime(new DateTime());

    if(histVo.getErrorMessageIsNotNull() && histVo.getErrorMessage().length() > histVo.getErrorMessageMaxLength())
    {
        histVo.setErrorMessage(histVo.getErrorMessage().substring(0, histVo.getErrorMessageMaxLength() - 1));   
    }

    histVo.validate();

    DomainFactory domainFactory = getDomainFactory();

    CDSHistory hist = CDSHistoryVoAssembler.extractCDSHistory(domainFactory, histVo);

    domainFactory.save(hist);
}
项目:openMAXIMS    文件:CDSGenerateImpl.java   
private void saveHistory(CDSHistoryVo histVo) throws StaleObjectException
{
    histVo.setJobEndTime(new DateTime());

    if(histVo.getErrorMessageIsNotNull() && histVo.getErrorMessage().length() > histVo.getErrorMessageMaxLength())
    {
        histVo.setErrorMessage(histVo.getErrorMessage().substring(0, histVo.getErrorMessageMaxLength() - 1));   
    }

    histVo.validate();

    DomainFactory domainFactory = getDomainFactory();

    CDSHistory hist = CDSHistoryVoAssembler.extractCDSHistory(domainFactory, histVo);

    domainFactory.save(hist);
}
项目:openmaxims-linux    文件:CDSGenerateImpl.java   
private void saveHistory(CDSHistoryVo histVo) throws StaleObjectException
{
    histVo.setJobEndTime(new DateTime());

    if(histVo.getErrorMessageIsNotNull() && histVo.getErrorMessage().length() > histVo.getErrorMessageMaxLength())
    {
        histVo.setErrorMessage(histVo.getErrorMessage().substring(0, histVo.getErrorMessageMaxLength() - 1));   
    }

    histVo.validate();

    DomainFactory domainFactory = getDomainFactory();

    CDSHistory hist = CDSHistoryVoAssembler.extractCDSHistory(domainFactory, histVo);

    domainFactory.save(hist);
}