Examples of create()


Examples of org.modeshape.jcr.value.StringFactory.create()

                                      ExecutionContext context ) {
        if (values.length == 0) return "[]";
        StringFactory strings = context.getValueFactories().getStringFactory();
        StringBuilder sb = new StringBuilder();
        sb.append('[');
        sb.append(strings.create(values[0]));
        for (int i = 1; i != values.length; ++i) {
            sb.append(',');
            sb.append(strings.create(values[0]));
        }
        return sb.toString();

Examples of org.mule.api.transaction.TransactionManagerFactory.create()

    protected void doSetUp() throws Exception
    {
        super.doSetUp();
        TransactionManagerFactory factory = getTransactionManagerFactory();
        tm = factory.create(muleContext.getConfiguration());
        assertNotNull("Transaction Manager should be available.", tm);
        assertNull("There should be no current transaction associated.", tm.getTransaction());
    }

    public void testTxHandleCommitKeepsThreadAssociation() throws Exception

Examples of org.mule.api.transport.MuleMessageFactory.create()

   
    public void testSoapHeaders() throws Exception
    {
        MuleMessageFactory factory = createMuleMessageFactory();
        Object payload = getValidTransportMessage();
        MuleMessage message = factory.create(payload, encoding);
        assertEquals(payload, message.getPayload());
        assertEquals("replyTo", message.getReplyTo());
        assertEquals(42, message.getCorrelationGroupSize());
        assertEquals(-42, message.getCorrelationSequence());
        assertEquals("004a1cf9-3e7e-44b3-9b7f-778fae4fa0d2", message.getCorrelationId());

Examples of org.mule.module.db.internal.domain.statement.StatementFactory.create()

        List<Object> processedResult = new ArrayList<Object>();
        when(resultHandler.processResultSet(connection, resultSet)).thenReturn(processedResult);
        SelectExecutor selectExecutor = new SelectExecutor(statementFactory, resultHandler);

        QueryTemplate queryTemplate = new QueryTemplate(sqlText, QueryType.SELECT, Collections.<QueryParam>emptyList());
        Mockito.when(statementFactory.create(connection, queryTemplate)).thenReturn(statement);

        Query query = new Query(queryTemplate, null);
        Object result = selectExecutor.execute(connection, query);

        assertEquals(processedResult, result);

Examples of org.mypj.db.server.impl.PersonManagerImpl.create()

    p1.setSex(info.getEditSex());
    p1.setPs(info.getEditPs());
    Contact c1 = new Contact(info.getEditContact());
    p1.getContacts().add(c1);
    if (!impl.isExist(p1)) {
      impl.create(p1);
      info.setViewName(info.getEditName());
      info.setViewContact(info.getEditContact());
      if (info.getEditBirthday() != null) {
        info.setViewBirthday(info.getEditBirthday().toString());
      }

Examples of org.neo4j.collections.indexedrelationship.IndexedRelationship.create()

            DynamicRelationshipType.withName(this.getName()), Direction.OUTGOING );
        if ( !idxRel.exists() )
        {
            PropertySortedTree<T> propertySortedTree = new PropertySortedTree<T>( getDb().getGraphDatabaseService(),
                getPropertyType(), true, getName() );
            idxRel.create( propertySortedTree );
        }
    Relationship rel = idxRel.createRelationshipTo(endVertex.getNode());
    return new SortableBinaryEdgeImpl<T>(db, rel.getId(), idxRel);
  }

Examples of org.netbeans.modules.php.fuel.ui.actions.gotos.items.GoToItemFactory.create()

            if (view == null) {
                continue;
            }

            // add to items
            GoToItem item = itemFactory.create(view, DEFAULT_OFFSET, ""); // NOI18N
            if (item == null) {
                continue;
            }
            switch (fileType) {
                case VIEW:

Examples of org.netbeans.modules.php.fuel.ui.actions.gotos.statuses.FuelPhpGoToStatusFactory.create()

    }

    @Override
    public boolean goToAction() {
        FuelPhpGoToStatusFactory factory = FuelPhpGoToStatusFactory.getInstance();
        FuelPhpGoToStatus status = factory.create(view, offset);
        status.scan();
        final List<GoToItem> items = status.getControllers();
        if (items.isEmpty()) {
            return false;
        }

Examples of org.nimbustools.api.services.rm.Manager.create()

        logger.info(rm.getVMMReport());

        // Three regular VMs should preempt
        Caller caller = this.populator().getCaller();
        CreateRequest req = this.populator().getCreateRequest("regular", 1200, 256 , 3);
        rm.create(req, caller);

        logger.debug("Waiting 2 seconds for resources to be allocated.");
        Thread.sleep(2000);

        logger.info(rm.getVMMReport());

Examples of org.nutz.dao.Dao.create()

 
  public void init(NutConfig config) {
    Dao dao = config.getIoc().get(Dao.class);
    for (Class<?> klass : Scans.me().scanPackage("org.nutz.safe.bean")) {
      if (klass.getAnnotation(Table.class) != null)
        dao.create(klass, false);
    }
   
    //初始化Enc
    //--------------------------------------------------------------
   
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.