Examples of execute()


Examples of com.cxy.redisclient.integration.zset.AddZSet.execute()

import com.cxy.redisclient.integration.zset.RemoveMembers;

public class ZSetService {
  public void add(int id, int db, String key, Map<String, Double> values, int ttl) {
    AddZSet command = (AddZSet) new AddZSetFactory(id, db, key, values).getCommand();
    command.execute();
   
    if(ttl != -1){
      Expire command1 = new Expire(id, db, key, ttl);
      command1.execute();
    }
View Full Code Here

Examples of com.cxy.redisclient.integration.zset.ListZSet.execute()

    command1.execute();
    if(!command1.isExist())
      throw new KeyNotExistException(id, db, key);
   
    ListZSet command = new ListZSet(id, db, key);
    command.execute();
    return command.getValues();
  }
  public Set<Tuple> getPage(int id, int db, String key, int start, int end){
    ListZSetPage command = new ListZSetPage(id, db, key, start, end);
    command.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.zset.ListZSetPage.execute()

    command.execute();
    return command.getValues();
  }
  public Set<Tuple> getPage(int id, int db, String key, int start, int end){
    ListZSetPage command = new ListZSetPage(id, db, key, start, end);
    command.execute();
    return command.getPage();
  }
  public void addValues(int id, int db, String key, Map<String, Double> values) {
    AddZSet command = (AddZSet) new AddZSetFactory(id, db, key, values).getCommand();
    command.execute();
View Full Code Here

Examples of com.cxy.redisclient.integration.zset.RemoveMembers.execute()

    AddZSet command = (AddZSet) new AddZSetFactory(id, db, key, values).getCommand();
    command.execute();
  }
  public void removeMembers(int id, int db, String key, String[] members){
    RemoveMembers command = new RemoveMembers(id, db, key, members);
    command.execute();
  }
}
View Full Code Here

Examples of com.datastax.driver.core.Session.execute()

        final String query = String.format("" + "CREATE keyspace %s "
            + "WITH replication = "
            + "{'class': 'SimpleStrategy', "
            + "'replication_factor' : 3}", keyspace);
        session.execute(query);
        _log.info("Finished creating keyspace {} .", keyspace);
      } catch (Exception e) {
        _log.error("Error creating keyspace {}", keyspace, e);
        error = e;
      }
View Full Code Here

Examples of com.db4o.query.Query.execute()

  @SuppressWarnings("unchecked")
  private List<INews> getNewsFromLink(INews newsItem) {
    Query query = fDb.query();
    query.constrain(News.class);
    query.descend("fLinkText").constrain(newsItem.getLink().toString()); //$NON-NLS-1$
    return activateAll(query.execute());
  }

  @SuppressWarnings("unchecked")
  private List<INews> getNewsFromGuid(INews newsItem) {
    Query query = fDb.query();
View Full Code Here

Examples of com.dbxml.xmlrpc.XmlRpcClient.execute()

            for ( int i = 0; i < args.length; i++ )
               l.add(args[i]);
         }
         else
            l = EmptyList;
         return rpc.execute(method, l);
      }
      catch ( IOException e ) {
         String msg = e.getMessage();
         if ( msg.startsWith(ResponseMsg) ) {
            StringTokenizer st = new StringTokenizer(msg.substring(ResponseMsg.length()));
View Full Code Here

Examples of com.dci.intellij.dbn.connection.transaction.DatabaseTransactionManager.execute()

        public void actionPerformed(ActionEvent e) {
            ConnectionHandler commitConnectionHandler = connectionHandler;
            DatabaseTransactionManager transactionManager = getTransactionManager();
            doOKAction();
            transactionManager.execute(commitConnectionHandler, true, TransactionAction.COMMIT, additionalOperation);
        }
    }

    private class RollbackAction extends AbstractAction {
        public RollbackAction() {
View Full Code Here

Examples of com.dci.intellij.dbn.database.common.execution.MethodExecutionProcessor.execute()

            new BackgroundTask(project, "Executing method", false) {
                public void execute(@NotNull ProgressIndicator progressIndicator) {
                    try {
                        initProgressIndicator(progressIndicator, true, "Executing " + method.getQualifiedNameWithType());
                        executionInput.initExecutionResult(false);
                        executionProcessor.execute(executionInput);
                        if (!executionInput.isExecutionCancelled()) {
                            new SimpleLaterInvocator() {
                                public void execute() {
                                    ExecutionManager executionManager = ExecutionManager.getInstance(project);
                                    executionManager.showExecutionConsole(executionInput.getExecutionResult());
View Full Code Here

Examples of com.dci.intellij.dbn.execution.method.MethodExecutionManager.execute()

    public void actionPerformed(AnActionEvent e) {
        Project project = executionResult.getProject();
        MethodExecutionManager executionManager = MethodExecutionManager.getInstance(project);
        MethodExecutionInput executionInput = executionResult.getExecutionInput();
        if (executionManager.promptExecutionDialog(executionInput, false)) {
            executionManager.execute(executionInput);
        }
    }

    @Override
    public void update(AnActionEvent e) {
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.