Java 类ims.core.vo.LocSiteUpprNameVo 实例源码

项目:AvoinApotti    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException {
    // TODO Auto-generated method stub
     String[] errs = surgeryvo.validate();
        if (errs  != null && errs .length > 0) 
        {
            String concatt = "";
            for (int i = 0; i < errs.length; i++) 
            {
                concatt = concatt + " " + errs[i] + " ";
            }
            throw new DomainRuntimeException(concatt);
        } else 
        {
            return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
        }
}
项目:AvoinApotti    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    // TODO Auto-generated method stub
    String[] errs = surgeryvo.validate();
    if (errs  != null && errs .length > 0) 
    {
        String concatt = "";
        for (int i = 0; i < errs.length; i++) 
        {
            concatt = concatt + " " + errs[i] + " ";
        }
        throw new DomainRuntimeException(concatt);
    } else 
    {
        return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
    }
}
项目:AvoinApotti    文件:TaxonomyLoaderHelper.java   
LocSiteUpprNameVo getSurgery(LocSiteUpprNameVoCollection locSites, AddressVo address)
{
    for (int i = 0; i < locSites.size(); i++)
    {
        LocSiteUpprNameVo vo =locSites.get(i); 

        if (vo != null && vo.getAddress() != null && address != null)
        {
            if (    adrLinesEqual(vo.getAddress().getLine1(),address.getLine1()) &&                     
                    adrLinesEqual(vo.getAddress().getLine2(),address.getLine2()) &&
                    adrLinesEqual(vo.getAddress().getLine3(),address.getLine3()) && 
                    adrLinesEqual(vo.getAddress().getLine4(),address.getLine4()) && 
                    adrLinesEqual(vo.getAddress().getLine5(),address.getLine5()) &&
                    adrLinesEqual(vo.getAddress().getPostCode(),address.getPostCode()))
                    {
                        return vo;
                    }               
        }
    }
    return null;
}
项目:AvoinApotti    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo saveSurgeryRecord(LocSiteUpprNameVo surgery)
        throws DomainInterfaceException, StaleObjectException,
        UniqueKeyViolationException     
{

    if (!surgery.isValidated())
    {
        throw new DomainRuntimeException("LocSiteUpprNameVo Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();         

    LocSite locSiteBo = LocSiteUpprNameVoAssembler.extractLocSite(factory, surgery);

    factory.save(locSiteBo);

    return LocSiteUpprNameVoAssembler.create(locSiteBo);            
}
项目:openMAXIMS    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException {
    // TODO Auto-generated method stub
     String[] errs = surgeryvo.validate();
        if (errs  != null && errs .length > 0) 
        {
            String concatt = "";
            for (int i = 0; i < errs.length; i++) 
            {
                concatt = concatt + " " + errs[i] + " ";
            }
            throw new DomainRuntimeException(concatt);
        } else 
        {
            return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
        }
}
项目:openMAXIMS    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    // TODO Auto-generated method stub
    String[] errs = surgeryvo.validate();
    if (errs  != null && errs .length > 0) 
    {
        String concatt = "";
        for (int i = 0; i < errs.length; i++) 
        {
            concatt = concatt + " " + errs[i] + " ";
        }
        throw new DomainRuntimeException(concatt);
    } else 
    {
        return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
    }
}
项目:openMAXIMS    文件:TaxonomyLoaderHelper.java   
LocSiteUpprNameVo getSurgery(LocSiteUpprNameVoCollection locSites, AddressVo address)
{
    for (int i = 0; i < locSites.size(); i++)
    {
        LocSiteUpprNameVo vo =locSites.get(i); 

        if (vo != null && vo.getAddress() != null && address != null)
        {
            if (    adrLinesEqual(vo.getAddress().getLine1(),address.getLine1()) &&                     
                    adrLinesEqual(vo.getAddress().getLine2(),address.getLine2()) &&
                    adrLinesEqual(vo.getAddress().getLine3(),address.getLine3()) && 
                    adrLinesEqual(vo.getAddress().getLine4(),address.getLine4()) && 
                    adrLinesEqual(vo.getAddress().getLine5(),address.getLine5()) &&
                    adrLinesEqual(vo.getAddress().getPostCode(),address.getPostCode()))
                    {
                        return vo;
                    }               
        }
    }
    return null;
}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo saveSurgeryRecord(LocSiteUpprNameVo surgery)
        throws DomainInterfaceException, StaleObjectException,
        UniqueKeyViolationException     
{

    if (!surgery.isValidated())
    {
        throw new DomainRuntimeException("LocSiteUpprNameVo Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();         

    LocSite locSiteBo = LocSiteUpprNameVoAssembler.extractLocSite(factory, surgery);

    factory.save(locSiteBo);

    return LocSiteUpprNameVoAssembler.create(locSiteBo);            
}
项目:openMAXIMS    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException {
    // TODO Auto-generated method stub
     String[] errs = surgeryvo.validate();
        if (errs  != null && errs .length > 0) 
        {
            String concatt = "";
            for (int i = 0; i < errs.length; i++) 
            {
                concatt = concatt + " " + errs[i] + " ";
            }
            throw new DomainRuntimeException(concatt);
        } else 
        {
            return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
        }
}
项目:openMAXIMS    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    // TODO Auto-generated method stub
    String[] errs = surgeryvo.validate();
    if (errs  != null && errs .length > 0) 
    {
        String concatt = "";
        for (int i = 0; i < errs.length; i++) 
        {
            concatt = concatt + " " + errs[i] + " ";
        }
        throw new DomainRuntimeException(concatt);
    } else 
    {
        return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
    }
}
项目:openMAXIMS    文件:TaxonomyLoaderHelper.java   
LocSiteUpprNameVo getSurgery(LocSiteUpprNameVoCollection locSites, AddressVo address)
{
    for (int i = 0; i < locSites.size(); i++)
    {
        LocSiteUpprNameVo vo =locSites.get(i); 

        if (vo != null && vo.getAddress() != null && address != null)
        {
            if (    adrLinesEqual(vo.getAddress().getLine1(),address.getLine1()) &&                     
                    adrLinesEqual(vo.getAddress().getLine2(),address.getLine2()) &&
                    adrLinesEqual(vo.getAddress().getLine3(),address.getLine3()) && 
                    adrLinesEqual(vo.getAddress().getLine4(),address.getLine4()) && 
                    adrLinesEqual(vo.getAddress().getLine5(),address.getLine5()) &&
                    adrLinesEqual(vo.getAddress().getPostCode(),address.getPostCode()))
                    {
                        return vo;
                    }               
        }
    }
    return null;
}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo saveSurgeryRecord(LocSiteUpprNameVo surgery)
        throws DomainInterfaceException, StaleObjectException,
        UniqueKeyViolationException     
{

    if (!surgery.isValidated())
    {
        throw new DomainRuntimeException("LocSiteUpprNameVo Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();         

    LocSite locSiteBo = LocSiteUpprNameVoAssembler.extractLocSite(factory, surgery);

    factory.save(locSiteBo);

    return LocSiteUpprNameVoAssembler.create(locSiteBo);            
}
项目:openmaxims-linux    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException {
    // TODO Auto-generated method stub
     String[] errs = surgeryvo.validate();
        if (errs  != null && errs .length > 0) 
        {
            String concatt = "";
            for (int i = 0; i < errs.length; i++) 
            {
                concatt = concatt + " " + errs[i] + " ";
            }
            throw new DomainRuntimeException(concatt);
        } else 
        {
            return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
        }
}
项目:openmaxims-linux    文件:TaxonomyLoaderHelper.java   
private LocSiteUpprNameVo saveSurgeryVo(LocSiteUpprNameVo surgeryvo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    // TODO Auto-generated method stub
    String[] errs = surgeryvo.validate();
    if (errs  != null && errs .length > 0) 
    {
        String concatt = "";
        for (int i = 0; i < errs.length; i++) 
        {
            concatt = concatt + " " + errs[i] + " ";
        }
        throw new DomainRuntimeException(concatt);
    } else 
    {
        return domainTaxonomy.saveSurgeryRecord(surgeryvo);                                                                                                                                     
    }
}
项目:openmaxims-linux    文件:TaxonomyLoaderHelper.java   
LocSiteUpprNameVo getSurgery(LocSiteUpprNameVoCollection locSites, AddressVo address)
{
    for (int i = 0; i < locSites.size(); i++)
    {
        LocSiteUpprNameVo vo =locSites.get(i); 

        if (vo != null && vo.getAddress() != null && address != null)
        {
            if (    adrLinesEqual(vo.getAddress().getLine1(),address.getLine1()) &&                     
                    adrLinesEqual(vo.getAddress().getLine2(),address.getLine2()) &&
                    adrLinesEqual(vo.getAddress().getLine3(),address.getLine3()) && 
                    adrLinesEqual(vo.getAddress().getLine4(),address.getLine4()) && 
                    adrLinesEqual(vo.getAddress().getLine5(),address.getLine5()) &&
                    adrLinesEqual(vo.getAddress().getPostCode(),address.getPostCode()))
                    {
                        return vo;
                    }               
        }
    }
    return null;
}
项目:openmaxims-linux    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo saveSurgeryRecord(LocSiteUpprNameVo surgery)
        throws DomainInterfaceException, StaleObjectException,
        UniqueKeyViolationException     
{

    if (!surgery.isValidated())
    {
        throw new DomainRuntimeException("LocSiteUpprNameVo Vo has not been validated.");
    }

    DomainFactory factory = getDomainFactory();         

    LocSite locSiteBo = LocSiteUpprNameVoAssembler.extractLocSite(factory, surgery);

    factory.save(locSiteBo);

    return LocSiteUpprNameVoAssembler.create(locSiteBo);            
}
项目:AvoinApotti    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo getSurgeryCode(String code)
        throws DomainInterfaceException 
{
    // TODO Auto-generated method stub

    if(code == null || code.trim().length() == 0)
        return null;

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    StringBuffer taxonomyHql = new StringBuffer(" select distinct locSite from LocSite locSite join locSite.codeMappings as mappings" +
                    " where mappings.taxonomyName = :taxonomyType and mappings.taxonomyCode = :taxonomyCode");

    names.add("taxonomyType");
    names.add("taxonomyCode");

    values.add(getDomLookup(TaxonomyType.PAS));
    values.add(code);

    LocSiteUpprNameVoCollection  coll = LocSiteUpprNameVoAssembler.createLocSiteUpprNameVoCollectionFromLocSite(getDomainFactory().find(taxonomyHql.toString(), names, values));

    if (coll != null && coll.size()>0)
        return coll.get(0);


    return null;
}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo getSurgeryCode(String code)
        throws DomainInterfaceException 
{
    // TODO Auto-generated method stub

    if(code == null || code.trim().length() == 0)
        return null;

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    StringBuffer taxonomyHql = new StringBuffer(" select distinct locSite from LocSite locSite join locSite.codeMappings as mappings" +
                    " where mappings.taxonomyName = :taxonomyType and mappings.taxonomyCode = :taxonomyCode");

    names.add("taxonomyType");
    names.add("taxonomyCode");

    values.add(getDomLookup(TaxonomyType.PAS));
    values.add(code);

    LocSiteUpprNameVoCollection  coll = LocSiteUpprNameVoAssembler.createLocSiteUpprNameVoCollectionFromLocSite(getDomainFactory().find(taxonomyHql.toString(), names, values));

    if (coll != null && coll.size()>0)
        return coll.get(0);


    return null;
}
项目:openMAXIMS    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo getSurgeryCode(String code)
        throws DomainInterfaceException 
{
    // TODO Auto-generated method stub

    if(code == null || code.trim().length() == 0)
        return null;

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    StringBuffer taxonomyHql = new StringBuffer(" select distinct locSite from LocSite locSite join locSite.codeMappings as mappings" +
                    " where mappings.taxonomyName = :taxonomyType and mappings.taxonomyCode = :taxonomyCode");

    names.add("taxonomyType");
    names.add("taxonomyCode");

    values.add(getDomLookup(TaxonomyType.PAS));
    values.add(code);

    LocSiteUpprNameVoCollection  coll = LocSiteUpprNameVoAssembler.createLocSiteUpprNameVoCollectionFromLocSite(getDomainFactory().find(taxonomyHql.toString(), names, values));

    if (coll != null && coll.size()>0)
        return coll.get(0);


    return null;
}
项目:openmaxims-linux    文件:TaxonomyCodeAdminImpl.java   
public LocSiteUpprNameVo getSurgeryCode(String code)
        throws DomainInterfaceException 
{
    // TODO Auto-generated method stub

    if(code == null || code.trim().length() == 0)
        return null;

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    StringBuffer taxonomyHql = new StringBuffer(" select distinct locSite from LocSite locSite join locSite.codeMappings as mappings" +
                    " where mappings.taxonomyName = :taxonomyType and mappings.taxonomyCode = :taxonomyCode");

    names.add("taxonomyType");
    names.add("taxonomyCode");

    values.add(getDomLookup(TaxonomyType.PAS));
    values.add(code);

    LocSiteUpprNameVoCollection  coll = LocSiteUpprNameVoAssembler.createLocSiteUpprNameVoCollectionFromLocSite(getDomainFactory().find(taxonomyHql.toString(), names, values));

    if (coll != null && coll.size()>0)
        return coll.get(0);


    return null;
}