Package comum.database

Examples of comum.database.Dao


     
      System.out.println("registrosLidos: " + registrosLidos);

      System.out.println("Iniciando transacao...");
      tx = session.beginTransaction();
      Dao dao = new Dao();
      AcompRealFisicoDao arfDao = new AcompRealFisicoDao(null);
      Iterator it = listTempBean.iterator();
      while(it.hasNext()) {
        TempBean bean = (TempBean)it.next();
        LocalItemLit lit = (LocalItemLit)dao.buscar(LocalItemLit.class, bean.getCodLit());
        AcompRealFisicoArf arf = arfDao.buscarPorIettir(Long.valueOf(bean.getMes()), Long.valueOf(bean.getAno()), Long.valueOf("1187"));
       
        if(lit == null || arf == null) {
          throw new Exception("lit == null || arf == null");
        }
View Full Code Here


     
      System.out.println("registrosLidos: " + registrosLidos);

      System.out.println("Iniciando transacao...");
      tx = session.beginTransaction();
      Dao dao = new Dao();
      AcompRealFisicoDao arfDao = new AcompRealFisicoDao(null);
      Iterator it = listTempBean.iterator();
      while(it.hasNext()) {
        TempBean bean = (TempBean)it.next();
        LocalItemLit lit = (LocalItemLit)dao.buscar(LocalItemLit.class, bean.getCodLit());
        AcompRealFisicoArf arf = arfDao.buscarPorIettir(Long.valueOf(bean.getMes()), Long.valueOf(bean.getAno()), Long.valueOf("1186"));
       
        if(lit == null || arf == null) {
          throw new Exception("lit == null || arf == null");
        }
View Full Code Here

     */
    public void geraHTMLAreaAre() {
        AreaAre area = new AreaAre();
        area.setIndAtivoAre("S");
        try {
            List areas = new Dao().pesquisar(area, new String[] { atributo.iGetNomeFk(), "asc" });
            List options = new ArrayList();
            Iterator it = areas.iterator();
            while (it.hasNext()) {
                area = (AreaAre) it.next();
                options.add(new String[] { area.getCodAre().toString(), Util.invocaGet(area, atributo.iGetNomeFk()).toString() });
View Full Code Here

     */
    public void geraHTMLSubAreaSare() {
        SubAreaSare sArea = new SubAreaSare();
        sArea.setIndAtivoSare("S");
        try {
            List sAreas = new Dao().pesquisar(sArea, new String[] { atributo.iGetNomeFk(), "asc" });
            List options = new ArrayList();
            Iterator it = sAreas.iterator();
            while (it.hasNext()) {
                sArea = (SubAreaSare) it.next();
                options.add(new String[] { sArea.getCodSare().toString(), Util.invocaGet(sArea, atributo.iGetNomeFk()).toString() });
View Full Code Here

     */
    public void geraHTMLUnidadeOrcamentariaUO() {
        UnidadeOrcamentariaUO unidade = new UnidadeOrcamentariaUO();
        unidade.setIndAtivoUo("S");
        try {
            List unidades = new Dao().pesquisar(unidade, new String[] { atributo.iGetNomeFk(), "asc" });
            List options = new ArrayList();
            Iterator it = unidades.iterator();
            while (it.hasNext()) {
                unidade = (UnidadeOrcamentariaUO) it.next();
                options.add(new String[] { unidade.getCodUo().toString(), Util.invocaGet(unidade, atributo.iGetNomeFk()).toString() });
View Full Code Here

     */
    public void geraHTMLOrgaoOrgByCodOrgaoResponsavel1Iett() {
        OrgaoOrg orgao = new OrgaoOrg();
        orgao.setIndAtivoOrg("S");
        try {
            List orgaos = new Dao().pesquisar(orgao, new String[] {
                    atributo.iGetNomeFk(), "asc" });
            List options = new ArrayList();
            Iterator it = orgaos.iterator();
            while (it.hasNext()) {
                orgao = (OrgaoOrg) it.next();
View Full Code Here

     */
    public void geraHTMLOrgaoOrgByCodOrgaoResponsavel2Iett() {
        OrgaoOrg orgao = new OrgaoOrg();
        orgao.setIndAtivoOrg("S");
        try {
            List orgaos = new Dao().pesquisar(orgao, new String[] {atributo.iGetNomeFk(), "asc" });
            List options = new ArrayList();
            Iterator it = orgaos.iterator();
            while (it.hasNext()) {
                orgao = (OrgaoOrg) it.next();
                options.add(new String[] { orgao.getCodOrg().toString(), Util.invocaGet(orgao, atributo.iGetNomeFk()).toString() });
View Full Code Here

   * @version N/C
     */
    public void geraHTMLPeriodicidadePrdc() {
        PeriodicidadePrdc prd = new PeriodicidadePrdc();
        try {
            List periodicidades = new Dao().pesquisar(prd, new String[] {atributo.iGetNomeFk(), "asc" });
            List options = new ArrayList();
            Iterator it = periodicidades.iterator();
            while (it.hasNext()) {
                prd = (PeriodicidadePrdc) it.next();
                options.add(new String[] { prd.getCodPrdc().toString(), Util.invocaGet(prd, atributo.iGetNomeFk()).toString() });
View Full Code Here

     
        StringBuffer s = new StringBuffer();
        try {
            /** Cria uma inst�ncia do objeto * */
            Object obj = Class.forName(getObjeto()).newInstance();
            Dao dao = new Dao();
            Session session = dao.getSession();

            List lista = new ArrayList();

            if (getColecao() != null) {

View Full Code Here

              areas.add(area);
            }
          } else {
                area = new AreaAre();
                area.setIndAtivoAre("S");
            areas = new Dao().pesquisar(area, new String[] { atributo.iGetNomeFk(), "asc" });
          }
           
            List options = new ArrayList();
            Iterator it = areas.iterator();
            while (it.hasNext()) {
View Full Code Here

TOP

Related Classes of comum.database.Dao

Copyright © 2018 www.massapicom. 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.