Examples of create()


Examples of com.caucho.env.jdbc.DatabaseFactory.create()

      factory.setUser(def.user());
   
    if (! "".equals(def.password()))
      factory.setPassword(def.password());
   
    return factory.create();
  }
}

Examples of com.caucho.hessian.client.HessianHttpProxyFactory.create()

        proxyFactory.setConnectTimeout(3000);
        proxyFactory.setReadTimeout(3000);
        proxyFactory.setHessian2Reply(false);
        proxyFactory.setDebug(true);
        try {
          AcrmApi api=proxyFactory.create(AcrmApi.class, url);
          System.out.println(api.login("guxuede", "123"));
          //System.out.println(api.getContacts());
          //System.out.println(api.uglilyCode("hessian"));
          //System.out.println(api.getContacts());
          //System.out.println(api.logout());

Examples of com.caucho.hessian.client.HessianProxyFactory.create()

  {
    if (_jmxProxy == null) {
      try {
        HessianProxyFactory proxy = new HessianProxyFactory();
        proxy.getSerializerFactory().addFactory(new JMXSerializerFactory());
        _jmxProxy = (RemoteJMX) proxy.create(_url);
      } catch (Exception e) {
        throw new RuntimeException(e);
      }
    }

Examples of com.caucho.quercus.marshal.MarshalFactory.create()

    int size = getSize();

    T[] array = T[].class.cast(Array.newInstance(elementType, size));

    MarshalFactory factory = env.getModuleContext().getMarshalFactory();
    Marshal elementMarshal = factory.create(elementType);

    int i = 0;

    for (Entry ptr = getHead(); ptr != null; ptr = ptr.getNext()) {
      Array.set(array, i++, elementMarshal.marshal(env,

Examples of com.caucho.vfs.i18n.EncodingWriter.create()

      encoding = "iso-8859-1";

    EncodingWriter factory = _writeEncodingFactories.get(encoding);

    if (factory != null)
      return factory.create();

    factory = _writeEncodingFactories.get(encoding);

    if (factory == null) {
      try {

Examples of com.centraview.account.accountfacade.AccountFacadeHome.create()

      String invoiceIDStr = (String)request.getParameter("rowId");
      if(invoiceIDStr != null && !invoiceIDStr.equals(""))
        invoiceID  = Integer.parseInt(invoiceIDStr);

      // for getting data from EJB
      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);

      Vector taxJurisdiction = remote.getTaxJurisdiction();

      InvoiceVO vo = remote.getInvoiceVO(invoiceID,individualID);

Examples of com.centraview.account.accountfacade.AccountFacadeLocalHome.create()

           String syncDatePrKeyField[] = {""};
           Timestamp lastSyncDate = (Timestamp)params.get("lastSyncDate");
           String operation = (String)params.get("Operation");
           InitialContext ic = CVUtility.getInitialContext();
           AccountFacadeLocalHome home = (AccountFacadeLocalHome)ic.lookup("local/AccountFacade");
           invoiceL = home.create();
           invoiceL.setDataSource(this.dataSource);

           Collection col = getList("InvoiceHistory",lastSyncDate,operation,syncDatePrKeyField);
           Object ids[] = col.toArray();
           HashMap hm = new HashMap();

Examples of com.centraview.account.accountlist.AccountListHome.create()

        hm.put("sortType", new Character('A'));

        try {
          AccountListHome aa = (AccountListHome)CVUtility.getHomeObject(
              "com.centraview.account.accountlist.AccountListHome", "AccountList");
          AccountList remote = (AccountList)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getItemList(individualID, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getItemList: " + e.toString());
          // e.printStackTrace();

Examples of com.centraview.account.expense.ExpenseLocalHome.create()

    if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
      throw new AuthorizationFailedException("Expense- createExpense");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
      ExpenseLocal expense = home.create(expenseVO, userID, this.dataSource);
      expense.setDataSource(this.dataSource);
      expenseVO = expense.getExpenseVO();
    } catch (Exception e) {
      logger.error("[createExpense]: Exception", e);
    }

Examples of com.centraview.account.helper.AccountHelperHome.create()

    convertItemLines();

    //Incase if the Form is having some error then we must have to carry the jurisdiction Vec
    try{
      AccountHelperHome accountHelperHome = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome","AccountHelper");
      AccountHelper accHelper =(AccountHelper)accountHelperHome.create();
      accHelper.setDataSource(dataSource);
      this.jurisdictionVec = accHelper.getTaxJurisdiction();
    }catch(Exception e){
      this.jurisdictionVec = new Vector();
    }
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.