Examples of Org


Examples of com.anzsoft.client.XMPP.mandioca.XmppVCard.Org

      addr.country = countryField.getValue();
     
      v.addressList.add(addr);
    }
   
    Org org = v.newOrg();
    org.name = companyField.getValue();
   
    if(departmentField.getValue()!=null&&!departmentField.getValue().isEmpty())
    {
      org.unit.add(departmentField.getValue());
View Full Code Here

Examples of maissocial.controle.Org

public class UoGUI {

    public static void main(String[] args){


        Org org = null;
        Logradouro lg = null;
        Uo uo = null;
        Date data = new Date();

View Full Code Here

Examples of maissocial.entidade.Org

        Session session = factory.openSession();
        Transaction trans = session.beginTransaction();

        trans.begin();

        Org org = pesquisarOrgPorCodigo(cod);
        session.delete(org);

        trans.commit();
        session.close();
    }
View Full Code Here

Examples of maissocial.entidade.Org

        Session session = factory.openSession();
        SQLQuery query = session.createSQLQuery("SELECT {org.*} FROM org {org} WHERE cod_org = "+cod);

        query.addEntity("org", Org.class);

        Org org = null;
        if(query.list().size() > 0){
            org = (Org) query.list().get(0);
        }
        session.close();
        return org;
View Full Code Here

Examples of maissocial.entidade.Org

        Session session = factory.openSession();
        SQLQuery query = session.createSQLQuery("SELECT {org.*} FROM org {org} WHERE cnpj = "+cnpj);

        query.addEntity("org", Org.class);

        Org org = null;
        if(query.list().size() > 0){
            org = (Org) query.list().get(0);
        }
        session.close();
        return org;
View Full Code Here

Examples of maissocial.entidade.Org

        Session session = factory.openSession();
        SQLQuery query = session.createSQLQuery("SELECT {org.*} FROM org {org} WHERE nome like '"+nome+"'");

        query.addEntity("org", Org.class);

        Org org = null;
        if(query.list().size() > 0){
            org = (Org) query.list().get(0);
        }
        session.close();
        return org;
View Full Code Here

Examples of maissocial.entidade.Org

        Session session = factory.openSession();
        Transaction trans = session.beginTransaction();

        trans.begin();

        Org org2 = pesquisarOrgPorCodigo(org.getCodOrg());
        org.setCodOrg(org2.getCodOrg());
        session.update(org);

        trans.commit();
        session.close();
    }
View Full Code Here

Examples of maissocial.entidade.Org

    public void salvarOrg(Org org) throws Exception, OrgJaCadastradaException{
        if( org == null || org.getNome() == null || org.getNome().equals("") || org.getStatus() == 0){
            throw  new Exception("Parâmetros Inválidos!");
        }

        Org org2 = this.orgRep.pesquisarOrgPorNome(org.getNome());
        if(org2 == null){
            this.orgRep.salvarOrg(org);
        }else{
            throw new OrgJaCadastradaException("Organização já cadastrada!");
        }
View Full Code Here

Examples of maissocial.entidade.Org

    public void alterarOrg(Org org) throws Exception, OrgJaCadastradaException{
        if( org == null || org.getNome() == null || org.getNome().equals("") || org.getStatus() == 0){
            throw  new Exception("Parâmetros Inválidos!");
        }

        Org org2 = this.orgRep.pesquisarOrgPorNome(org.getNome());
        if(org2 == null){
            this.orgRep.alterarOrg(org);
        }else{
            throw new OrgJaCadastradaException("Organização já cadastrado!");
        }
View Full Code Here

Examples of maissocial.entidade.Org

            throw new OrgJaCadastradaException("Organização já cadastrado!");
        }
    }

    public Org pesquisarOrgPorCodigo(int cod){
        Org org = this.orgRep.pesquisarOrgPorCodigo(cod);
        return org;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.