Examples of load()


Examples of net.sourceforge.squirrel_sql.fw.xml.XMLObjectCache.load()

        InputStreamReader isr = null;
        try
        {
            isr = new InputStreamReader(defaultDriversUrl.openStream());
            XMLObjectCache tmp = new XMLObjectCache();
            tmp.load(isr, null, true);

            for (Iterator<ISQLDriver> iter = tmp.getAllForClass(SQL_DRIVER_IMPL); iter.hasNext();) {

                ISQLDriver defaultDriver = iter.next();
                ISQLDriver cachedDriver = getDriver(defaultDriver.getIdentifier());
View Full Code Here

Examples of net.sourceforge.wampum.finance.entities.AccountDAO.load()

    AccountDAO accountDAO = (AccountDAO)factory.getDAO("account");
    String whereClause = null;
    if (this.currentAccount.getAccountID() != null && !this.currentAccount.getAccountID().equals("")) {
      whereClause = "WHERE ACCOUNT_ID NOT IN ('" + this.currentAccount.getAccountID() + "')";
    }
    List accountList = accountDAO.load(whereClause, "ORDER BY TITLE", true);
    TreeAccount account = null;
    parentAccount.removeAllItems();
    parentAccount.addItem("None");
    int parentIndex = 0;
    for (int i=0; i<accountList.size(); i++) {
View Full Code Here

Examples of net.sourceforge.wampum.finance.entities.BudgetDAO.load()

 
  private static String[] columnNames = {"Month", "Year", "Amount", "Balance", "Status"};
  public void updateBudgetTableData() {
    if (this.currentAccount != null) {
      BudgetDAO budgetDAO = (BudgetDAO)daoFactory.getDAO("budget");
      budgetList = budgetDAO.load("WHERE ACCOUNT_ID = '" + this.currentAccount.getAccountID() + "'", "ORDER BY YEAR, MONTH", true);
     
      RegisterDAO registerDAO = (RegisterDAO)daoFactory.getDAO("register");
      balanceList = registerDAO.loadBalancesForAccount(this.currentAccount.getAccountID());
    }
View Full Code Here

Examples of net.sourceforge.wampum.finance.entities.PayeeDAO.load()

      swix = new SwingEngine( this );
      swix.getTaglib().registerTag("xdatepicker", JXDatePicker.class);
      transPanel = (JPanel)swix.render( reader );
     
        PayeeDAO payeeDao = (PayeeDAO)daoFactory.getDAO("payee");
        List payeeList = payeeDao.load(null, "ORDER BY NAME", true);
        GUIPayee tempPayee = null;
        for (int i=0; i<payeeList.size(); i++) {
          tempPayee = new GUIPayee((Payee)payeeList.get(i));
          payee.addItem(tempPayee);
        }
View Full Code Here

Examples of net.sourceforge.wampum.finance.entities.TransSplitDAO.load()

        try {
          for (int i=0; i<transSplitList.size(); i++) {
            currentTransSplit = (TransSplit)transSplitList.get(i);
            //System.out.println("Split: " + currentTransSplit.getTransSplitID());
            where = "where TRANS_SPLIT_ID = '" + currentTransSplit.getTransSplitID() + "'";
            if (transSplitDAO.load(where, null, true).size() == 0)
              transSplitDAO.create(currentTransSplit, false);
            else
              transSplitDAO.update(currentTransSplit, false);
          }
        }
View Full Code Here

Examples of net.sourceforge.wampum.finance.entities.TransactionDAO.load()

            resultSet = preparedStatement.executeQuery();
           
            if (resultSet.next()) {
              String transID = resultSet.getString("TRANSACTION_ID");
              TransactionDAO transDAO = (TransactionDAO)this.daoFactory.getDAO("transaction");
              List transList = transDAO.load("WHERE TRANSACTION_ID = '" + transID + "'", null, false);
              retVal = (Transaction)transList.get(0);
            }
        }
        catch (Exception ex) {
          throw new RuntimeException(ex);
View Full Code Here

Examples of net.sourceforge.wampum.system.data.DAO.load()

                    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);
                            }
                       }
View Full Code Here

Examples of net.tinyportal.servlet.PortletLoader.load()

          boolean find = false;
          for (String porltetMapsName: portletsMap.keySet()) {
            if (portletName.startsWith(porltetMapsName+ "//@")) {
              PortletLoader pLoader = new PortletLoader((ServletContext)pageContext.getAttribute("javax.servlet.jsp.jspApplication"));
              PortletContext portletContext = (TpPortletContext)portletsMap.get(porltetMapsName).getPortletConfig().getPortletContext();
              Map<String, PortletHolder> result = pLoader.load(new File(portletContext.getRealPath("")), porltetMapsName);
             
              PortletHolder portletHolder = result.get(porltetMapsName);
             
              Portal.addPortlet(portletName, portletHolder);
              portletsMap.put(portletName, portletHolder);
View Full Code Here

Examples of net.wastl.webmail.misc.ExpandableProperties.load()

                    "Assertion failed.  Internal locking error in "
                    + getClass().getName() + '.');
        }
        final ExpandableProperties metaProperties = new ExpandableProperties();
        try {
            metaProperties.load(new FileInputStream(metaFile));
        } catch (final IOException ioe) {
            log.fatal("Failed to read meta props file '"
                    + metaFile.getAbsolutePath() + "'", ioe);
            throw new IllegalStateException("Failed to read meta props file '"
                    + metaFile.getAbsolutePath() + "'", ioe);
View Full Code Here

Examples of net.xoetrope.xui.style.XStyleManager.load()

  {
//    XResourceManager.getInstance();
//    XResourceManager.setDefaultFile("startup.properties");
    XStyleManager manager = XProjectManager.getStyleManager();
//    XStyleFactory  styleFactory = new XStyleFactory();
    manager.load("configurator.txt");
    return XProjectManager.getStyleManager();
  }
}
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.