Examples of create()


Examples of com.tll.dao.IDbShell.create()

    final Config cfg = Config.load();
    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    final Injector i = buildInjector(new TestDb4oDaoModule(cfg), new Db4oDbShellModule() );
    final IDbShell dbs = i.getInstance(IDbShell.class);
    dbs.delete();
    dbs.create();

    super.beforeClass();
  }

  /**
 

Examples of com.tll.model.bk.BusinessKeyFactory.create()

      ((ITimeStampEntity) e2).setDateCreated(((ITimeStampEntity) e2).getDateCreated());
      ((ITimeStampEntity) e2).setDateModified(((ITimeStampEntity) e2).getDateModified());
    }
    try {
      BusinessKeyFactory bkf = new BusinessKeyFactory(new EntityMetadata());
      bkf.apply(e2, bkf.create(e1));
    }
    catch(final BusinessKeyNotDefinedException e) {
      // assume ok
    }
    catch(final BusinessKeyPropertyException e) {

Examples of com.tll.service.entity.user.IUserService.create()

      // stub the authorities
      stubAuthorities();

      // the service test (should be transactional)
      final IUserService userService = getEntityServiceFactory().instance(IUserService.class);
      final User user = userService.create(account, "name@domain.com", "password");
      Assert.assertNotNull(user);

      getDbTrans().startTrans();
      final User dbUser = AbstractDbAwareTest.getEntityFromDb(getDao(), User.class, user.getId());
      getDbTrans().endTrans();

Examples of com.trendmicro.codi.ZNode.create()

                return false;
            String zkPath = "/ZK_TEST_NODE";
            String zkData = "02a7e44daac8046f43de84b2546a4d63";
            try {
                ZNode node = new ZNode(zkPath);
                node.create(false, zkData.getBytes());
                String res = new String(node.getContent());
                node.delete();
                if(res.compareTo(zkData) == 0)
                    return true;
                else

Examples of com.tulskiy.musique.gui.menu.LibraryMenu.create()

            }

            public void show(MouseEvent e) {
                if (e.isPopupTrigger() && tree.selectRowAt(e.getPoint())) {
                    LibraryMenu menu = new LibraryMenu();
                    JPopupMenu popup = menu.create(
                            tree,
                            library.getData(),
                            tree.getSelectedTracks(false));
                    System.out.println(e.getPoint());
                    popup.show(tree, e.getX(), e.getY());

Examples of com.tulskiy.musique.gui.menu.TracksMenu.create()

        item.setActionCommand((String) TransferHandler.getPasteAction().getValue(Action.NAME));

        tableMenu.addSeparator();
        if (selectionNotEmpty) {
            TracksMenu tracksMenu = new TracksMenu();
            JPopupMenu menu = tracksMenu.create(this, playlist, selectedTracks);
            for (Component component : menu.getComponents()) {
                tableMenu.add(component);
            }
        } else {
            item = tableMenu.add("Add Files");

Examples of com.twilio.sdk.resource.factory.CallFactory.create()

    Map<String, String> callParams = new HashMap<String, String>();
    callParams.put("To", "5105551212"); // Replace with a valid phone number
    callParams.put("From", "(510) 555-1212"); // Replace with a valid phone
    // number in your account
    callParams.put("Url", "http://demo.twilio.com/welcome/voice/");
    Call call = callFactory.create(callParams);
    System.out.println(call.getSid());

    // Send an sms (using the new messages endpoint)
    MessageFactory messageFactory = mainAccount.getMessageFactory();
    List<NameValuePair> messageParams = new ArrayList<NameValuePair>();

Examples of com.twilio.sdk.resource.factory.FeedbackFactory.create()

   * @param params the feedback parameters
   * @throws TwilioRestException
   */
  public void setFeedback(List<NameValuePair> params) throws TwilioRestException {
    FeedbackFactory factory = getFeedbackFactory();
    factory.create(params);
  }

  /**
   * Gets the feedback for the call.
   *
 

Examples of com.twilio.sdk.resource.factory.MessageFactory.create()

    List<NameValuePair> messageParams = new ArrayList<NameValuePair>();
    messageParams.add(new BasicNameValuePair("To", "5105551212")); // Replace with a valid phone number
    messageParams.add(new BasicNameValuePair("From", "(510) 555-1212")); // Replace with a valid phone
    // number in your account
    messageParams.add(new BasicNameValuePair("Body", "This is a test message!"));
    messageFactory.create(messageParams);

        // Search for all available phone numbers
        AvailablePhoneNumberList phoneNumbers = mainAccount.getAvailablePhoneNumbers();
        List<AvailablePhoneNumber> phoneNumberList = phoneNumbers.getPageData();

Examples of com.twilio.sdk.resource.factory.UsageTriggerFactory.create()

        HashMap<String, String> trigger = new HashMap<String, String>();
        trigger.put("FriendlyName", "blah");
        trigger.put("UsageCategory", "sms");
        trigger.put("TriggerValue", "10");
        trigger.put("CallbackUrl", "http://www.domain.net");
        UsageTrigger usageTrigger = usageTriggerFactory.create(trigger);
        assertEquals(usageTrigger.getFriendlyName(), "blah");
    }

    @Test
    public void testDeleteUsageTrigger() throws Exception {
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.