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

项目: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;
}
项目: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    文件: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    文件: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 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;
}