Examples of prepare()


Examples of oracle.toplink.essentials.internal.databaseaccess.DatasourceCall.prepare()

        DatabaseQuery query = getQuery();
        AbstractSession executionSession = getSession().getExecutionSession(query);
        if (hasMultipleCalls()) {
            for (Enumeration callsEnum = getCalls().elements(); callsEnum.hasMoreElements();) {
                DatasourceCall call = (DatasourceCall)callsEnum.nextElement();
                call.prepare(executionSession);
            }
        } else if (getCall() != null) {
            getCall().prepare(executionSession);
        }
    }
View Full Code Here

Examples of org.activemq.service.Transaction.prepare()

     *
     * @see org.activemq.broker.Broker#prepareTransaction(org.activemq.broker.BrokerClient, org.activemq.message.ActiveMQXid)
     */
    public int prepareTransaction(BrokerClient client, ActiveMQXid xid) throws XAException {
        Transaction transaction = transactionManager.getXATransaction(xid);
        return transaction.prepare();
    }

    /**
     * Rollback an XA Transaction.
     *
 
View Full Code Here

Examples of org.apache.activemq.transaction.Transaction.prepare()

        }
    }

    public int prepareTransaction(ConnectionContext context, TransactionId xid) throws Exception {
        Transaction transaction = getTransaction(context, xid, false);
        return transaction.prepare();
    }

    public void commitTransaction(ConnectionContext context, TransactionId xid, boolean onePhase) throws Exception {
        Transaction transaction = getTransaction(context, xid, true);
        transaction.commit(onePhase);
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.Storage.prepare()

    Injector injector = Guice.createInjector(
        DbModule.testModule(Bindings.annotatedKeyFactory(Delegated.class)),
        new MemStorageModule(Bindings.annotatedKeyFactory(Volatile.class)));

    Storage storage = injector.getInstance(Key.get(Storage.class, Volatile.class));
    storage.prepare();
    return storage;
  }

  private <S extends StoreProvider, T, E extends Exception> T doWork(
      LockType lockType,
View Full Code Here

Examples of org.apache.cassandra.contrib.utils.service.CassandraServiceDataCleaner.prepare()

    catch (IOException e) {
      // eat
    }

    CassandraServiceDataCleaner cleaner = new CassandraServiceDataCleaner();
    cleaner.prepare();
    EmbeddedCassandraService cassandra = new EmbeddedCassandraService();
    try {
      cassandra.init();
    }
    catch (TTransportException e) {
View Full Code Here

Examples of org.apache.cassandra.cql3.statements.CFStatement.prepare()

        {
            try
            {
                CFStatement parsed = (CFStatement)QueryProcessor.parseStatement(cql);
                parsed.prepareKeyspace(AUTH_KS);
                CreateTableStatement statement = (CreateTableStatement) parsed.prepare().statement;
                CFMetaData cfm = statement.getCFMetaData().copy(CFMetaData.generateLegacyCfId(AUTH_KS, name));
                assert cfm.cfName.equals(name);
                MigrationManager.announceNewColumnFamily(cfm);
            }
            catch (Exception e)
View Full Code Here

Examples of org.apache.cassandra.stress.util.JavaDriverClient.prepare()

                        ThriftClient tclient = settings.getThriftClient();
                        Map<String, PreparedStatement> stmts = new HashMap<>();
                        Map<String, Integer> tids = new HashMap<>();
                        for (Map.Entry<String, String> e : queries.entrySet())
                        {
                            stmts.put(e.getKey().toLowerCase(), jclient.prepare(e.getValue()));
                            tids.put(e.getKey().toLowerCase(), tclient.prepare_cql3_query(e.getValue(), Compression.NONE));
                        }
                        thriftQueryIds = tids;
                        queryStatements = stmts;
                    }
View Full Code Here

Examples of org.apache.cocoon.portal.PortalManagerAspect.prepare()

  public void invokeNext()
    throws ProcessingException {
        if (this.iterator.hasNext()) {
            this.config = (Parameters)this.configIterator.next();
            final PortalManagerAspect aspect = (PortalManagerAspect) iterator.next();
            aspect.prepare(this, this.service);
        }
    }

    /**
     * @see org.apache.cocoon.portal.PortalManagerAspectPrepareContext#getAspectParameters()
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.CopletFactory.prepare()

      } else if (object instanceof CopletDataManager) {
        CopletFactory copletFactory = (CopletFactory)factory;
        Iterator iterator = ((CopletDataManager)object).getCopletData().values().iterator();
        while (iterator.hasNext()) {
          CopletData cd = (CopletData)iterator.next();
          copletFactory.prepare(cd);
        }
      } else if (object instanceof CopletInstanceDataManager) {
        CopletFactory copletFactory = (CopletFactory)factory;
        Iterator iterator = ((CopletInstanceDataManager)object).getCopletInstanceData().values().iterator();
        while (iterator.hasNext()) {
View Full Code Here

Examples of org.apache.cxf.transport.Conduit.prepare()

        destination.doService(request, response);
        setUpInMessage();
        Conduit backChannel =
            destination.getBackChannel(inMessage, null, null);
        outMessage = setUpOutMessage();
        backChannel.prepare(outMessage);
        verifyBackChannelSend(backChannel, outMessage, 200);
    }

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