Java 类ims.ocrr.vo.domain.OrderSetEditVoAssembler 实例源码

项目:AvoinApotti    文件:OrderSetEditImpl.java   
public ims.ocrr.vo.OrderSetEditVo getOrderSet(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderSet record = (OrderSet)factory.getDomainObject(OrderSet.class, recordID);
    if(record != null)
        return OrderSetEditVoAssembler.create(record);

    return null;
}
项目:AvoinApotti    文件:OrderSetEditImpl.java   
/**
* saveOrderSet
*/
public ims.ocrr.vo.OrderSetEditVo saveOrderSet(ims.ocrr.vo.OrderSetEditVo record) throws ims.domain.exceptions.ForeignKeyViolationException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order set not validated");

    //WDEV-11073 - removed delete items as hibernate handles orphans

    OrderSet doRecord = OrderSetEditVoAssembler.extractOrderSet(factory, record);
    factory.save(doRecord);

    return OrderSetEditVoAssembler.create(doRecord);
}
项目:openMAXIMS    文件:OrderSetEditImpl.java   
public ims.ocrr.vo.OrderSetEditVo getOrderSet(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderSet record = (OrderSet)factory.getDomainObject(OrderSet.class, recordID);
    if(record != null)
        return OrderSetEditVoAssembler.create(record);

    return null;
}
项目:openMAXIMS    文件:OrderSetEditImpl.java   
/**
* saveOrderSet
*/
public ims.ocrr.vo.OrderSetEditVo saveOrderSet(ims.ocrr.vo.OrderSetEditVo record) throws ims.domain.exceptions.ForeignKeyViolationException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order set not validated");

    //WDEV-11073 - removed delete items as hibernate handles orphans

    OrderSet doRecord = OrderSetEditVoAssembler.extractOrderSet(factory, record);
    factory.save(doRecord);

    return OrderSetEditVoAssembler.create(doRecord);
}
项目:openMAXIMS    文件:OrderSetEditImpl.java   
public ims.ocrr.vo.OrderSetEditVo getOrderSet(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderSet record = (OrderSet)factory.getDomainObject(OrderSet.class, recordID);
    if(record != null)
        return OrderSetEditVoAssembler.create(record);

    return null;
}
项目:openMAXIMS    文件:OrderSetEditImpl.java   
/**
* saveOrderSet
*/
public ims.ocrr.vo.OrderSetEditVo saveOrderSet(ims.ocrr.vo.OrderSetEditVo record) throws ims.domain.exceptions.ForeignKeyViolationException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order set not validated");

    //WDEV-11073 - removed delete items as hibernate handles orphans

    OrderSet doRecord = OrderSetEditVoAssembler.extractOrderSet(factory, record);
    factory.save(doRecord);

    return OrderSetEditVoAssembler.create(doRecord);
}
项目:openmaxims-linux    文件:OrderSetEditImpl.java   
public ims.ocrr.vo.OrderSetEditVo getOrderSet(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderSet record = (OrderSet)factory.getDomainObject(OrderSet.class, recordID);
    if(record != null)
        return OrderSetEditVoAssembler.create(record);

    return null;
}
项目:openmaxims-linux    文件:OrderSetEditImpl.java   
/**
* saveOrderSet
*/
public ims.ocrr.vo.OrderSetEditVo saveOrderSet(ims.ocrr.vo.OrderSetEditVo record) throws ims.domain.exceptions.ForeignKeyViolationException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order set not validated");

    //WDEV-11073 - removed delete items as hibernate handles orphans

    OrderSet doRecord = OrderSetEditVoAssembler.extractOrderSet(factory, record);
    factory.save(doRecord);

    return OrderSetEditVoAssembler.create(doRecord);
}