Examples of DAO


Examples of dao.DAO

     private static Logger logger = Logger.getLogger(Main.class);
    
  //           DAO dao = new DAO();
  //       List<Info> vo ;
  public static void main(String[] args) throws Exception {
         DAO dao = new DAO();
         List<Info> vo = DAO.getList();    
         System.out.println(vo.size());
         //System.out.println(vo.get(0).getMsisdn());
         System.out.println(vo.get(1));
                 

Examples of dao.Dao

}//GEN-LAST:event_jButtonExecutaBackupActionPerformed

private void jButtonExecutaRestoreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExecutaRestoreActionPerformed
    // TODO add your handling code here:
    try {
        Dao dao = new Dao();
        String user = driveAnterior.getUserName();
        String schema = driveAnterior.getDataBase();
        String host = driveAnterior.getServerName();
        String password = driveAnterior.getPassword();
        String arquivoLocal = file.getName();

        dao.getNewSchema(schema);

        //System.out.println("cmd /c mysql -h" + host + " -u" + user + " -p" + password + " " + schema + " < " + arquivoLocal);
        Runtime.getRuntime().exec("cmd /c mysql -h" + host + " -u" + user + " -p" + password + " " + schema + " < " + arquivoLocal);
        //exec("cmd /c mysqldump -uroot -proot modulorelacionamento > backupfile.sql");//[backupfile.sql] < [restorefile.sql]");

Examples of de.timefinder.data.access.Dao

        }
    }

    public void addToDataPool() {
        for (Entry<Class, Map<Long, Object>> sDao : simpleDaos.entrySet()) {
            Dao tmpDao = dataPool.getDao(sDao.getKey());
            if (tmpDao == null) {
                logger.warn("Dao for " + sDao.getKey() + " not found in data pool!?");
                continue;
            }

            tmpDao.attachAll(sDao.getValue().values());
        }
    }

Examples of de.timefinder.data.access.Dao

        assertTrue(obj instanceof Random);

        obj = ctx.getBean("eventDao");
        assertNotNull(obj);

        Dao dao = (Dao) obj;
        assertTrue(dao.getAll().size() >= 0);
    }

Examples of net.paoding.rose.jade.annotation.DAO

                + method.getName());
    }

    @Override
    public String toString() {
        DAO dao = daoMetaData.getDAOClass().getAnnotation(DAO.class);
        String toString = daoMetaData.getDAOClass().getName()//
                + "[catalog=" + dao.catalog() + "]";
        return toString;
    }

Examples of net.sourceforge.wampum.system.data.DAO

                    }
                    else {
                        String accountID = new String(resultSet.getString("ACCOUNT_ID"));
                        if (!resultSet.wasNull()) {
                            String accountWhere = "WHERE ACCOUNT_ID = '" + accountID.toString() + "' ";
                            DAO dao = daoFactory.getDAO("account");
                            List accountList = dao.load(accountWhere, null, true);
                            if (accountList.size()>0) {
                                Account parentAccount = (Account)accountList.get(0);
                                budget.setAccountID(parentAccount);
                            }
                       }

Examples of net.yacy.document.content.dao.Dao

            sb.setConfig("content.phpbb3.ppf", ppf);
            sb.setConfig("content.phpbb3.dumpfile", dumpfile);
           
            if (post.containsKey("check")) {
                try {
                    Dao db = new PhpBB3Dao(
                                            urlstub,
                                            dbtype,
                                            dbhost,
                                            dbport,
                                            dbname,
                                            prefix,
                                            dbuser,
                                            dbpw
                                            );
                    prop.put("check", 1);
                    prop.put("check_posts", db.size());
                    prop.putHTML("check_first", db.first().toString());
                    prop.putHTML("check_last", db.latest().toString());
                    db.close();
                } catch (Exception e) {
                    Log.logException(e);
                    prop.put("check", 2);
                    prop.put("check_error", e.getMessage());
                }
            }
           
            if (post.containsKey("export")) {
                try {
                    Dao db = new PhpBB3Dao(
                                            urlstub,
                                            dbtype,
                                            dbhost,
                                            dbport,
                                            dbname,
                                            prefix,
                                            dbuser,
                                            dbpw
                                            );
                   
                    int files = db.writeSurrogates(db.query(0, -1, 100), sb.surrogatesInPath, "fullexport-" + GenericFormatter.SHORT_SECOND_FORMATTER.format(), ppf);
                    prop.put("export", 1);
                    prop.put("export_files", files);
                    db.close();
                } catch (Exception e) {
                    Log.logException(e);
                    prop.put("export", 2);
                    prop.put("export_error", e.getMessage());
                }

Examples of org.eweb4j.orm.dao.DAO

    return t;
  }

  public Query find() {
    Class<?> clazz = getClass();
    DAO dao = DAOFactory.getDAO(clazz, dsName);
    dao.selectAll();
    Query _query = new QueryImpl(dao);

    return _query;
  }

Examples of org.g4studio.common.dao.Dao

* @since 2012-10-30
*/
public class RunQueryListFromOracleWithCursor {
 
  public static void main(String[] args) {
    Dao g4Dao = (Dao)SpringBeanLoader.getSpringBean("g4Dao");
    Dto prcDto = new BaseDto();
    prcDto.put("prm_Xm", "李");
    g4Dao.callPrc("Demo.g4_prc_cursor_demo", prcDto);
    List list = prcDto.getAsList("cur_list");
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      System.out.println(dto.getAsString("xm") + ":" + dto.getAsBigDecimal("fyze"));
    }

Examples of org.hightides.annotations.Dao

    Map<String, Object> params = new HashMap<String, Object>();
    Annotation annotation = clazz.getAnnotation(Dao.class);
    if (Sortable.class.isAssignableFrom(clazz))
      params.put("isSortable", true);
    if (annotation instanceof Dao) {
      Dao dao = (Dao) annotation;
      params.put("syncMode", dao.synchronizeMode());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
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.