Examples of ConnectionManager


Examples of aflac.utils.ConnectionManager

  }

  public void fetchRequestList() throws SQLException {
    logger.debug("RequestSummaryList: Fetching...");
    if (null == cn)
      cn = (new ConnectionManager()).getConnection();

    listStmt = cn
        .prepareStatement("SELECT ir_type,ir_num,ir_start_date,nickName,left(ir_desc,50),ir_priority,ir_status,ir_team FROM ir_status_report");

    ResultSet rs = listStmt.executeQuery();
View Full Code Here

Examples of anvil.database.ConnectionManager

    _cache = new Hashlist();
  }

  protected PooledConnection getConnection() throws SQLException
  {
    ConnectionManager manager = _zone.getManagerFor(_poolname);
    if (manager != null) {
      return manager.acquire(_poolname);
    } else {
      throw new NoConnectionPoolException(_poolname);
    }
  }
View Full Code Here

Examples of anvil.database.ConnectionManager

    PooledConnection connImpl = null;
    Connection conn = null;
   
    try {

      ConnectionManager manager = context.address().getZone().getManagerFor(ckey);
      connImpl = manager.acquire(ckey);
      conn = (Connection)connImpl.getConnection();
      if (catalog != null) {
        conn.setCatalog(catalog);
      }
      conn.setAutoCommit(autoCommit);
View Full Code Here

Examples of anvil.database.ConnectionManager

    }

   
    n = _pools.size();
    if (n>0) {
      _manager = new ConnectionManager();
      for(int i=0; i<n; i++) {
        PoolPreferences prefs = (PoolPreferences)_pools.get(i);
        if (prefs.isEnabled()) {
          _manager.addPool(new ConnectionPool(this, prefs));
        }
View Full Code Here

Examples of anvil.database.ConnectionManager

    PooledConnection connImpl = null;
    javax.naming.Context ctx = null;

    try {

      ConnectionManager manager = context.address().getZone().getManagerFor(ckey);
      connImpl = manager.acquire(ckey);
      return connImpl;

    } catch (CannotReturnPooledConnectionException e) {
      throw context.AcquireError(e.getMessage());
     
View Full Code Here

Examples of com.datasift.client.stream.ConnectionManager

        this.config = config;
        this.historics = new DataSiftHistorics(config);
        this.source = new DataSiftManagedSource(config);
        this.preview = new DataSiftPreview(config);
        this.push = new DataSiftPush(config);
        this.liveStream = new ConnectionManager(config);
        DependencyProvider.global().add(config);
    }
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionManager

        for (ConnectionHandler virtualConnectionHandler : projectConnectionBundle.getVirtualConnections()) {
            SelectConnectionAction connectionAction = new SelectConnectionAction(virtualConnectionHandler);
            add(connectionAction);
        }

        ConnectionManager connectionManager = ConnectionManager.getInstance(project);
        for (ConnectionBundle connectionBundle : connectionManager.getConnectionBundles()) {
            if (connectionBundle.getConnectionHandlers().size() > 0) {
                addSeparator();
                for (ConnectionHandler connectionHandler : connectionBundle.getConnectionHandlers()) {
                    SelectConnectionAction connectionAction = new SelectConnectionAction(connectionHandler);
                    add(connectionAction);
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionManager

        }
        return false;
    }

    public void invoke(@NotNull Project project, Editor editor, PsiFile psiFile) throws IncorrectOperationException {
        ConnectionManager connectionManager = ConnectionManager.getInstance(project);
        List<ConnectionBundle> connectionBundles = connectionManager.getConnectionBundles();

        DefaultActionGroup actionGroup = new DefaultActionGroup();
        DBLanguageFile dbLanguageFile = (DBLanguageFile) psiFile;

        boolean connectionsFound = false;
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionManager

            // lookup connection mappings
            ConnectionHandler connectionHandler = virtualFile.getUserData(ACTIVE_CONNECTION_KEY);
            if (connectionHandler == null) {
                FileConnectionMapping mapping = lookupMapping(virtualFile);
                if (mapping != null) {
                    ConnectionManager connectionManager = ConnectionManager.getInstance(project);
                    connectionHandler = connectionManager.getConnectionHandler(mapping.getConnectionId());
                    if (connectionHandler == null) connectionHandler =
                            ProjectConnectionBundle.getInstance(project).getVirtualConnection(mapping.getConnectionId());

                    if (connectionHandler != null)
                        virtualFile.putUserData(ACTIVE_CONNECTION_KEY, connectionHandler);
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionManager

    }

    @Override
    public void afterAction(ConnectionHandler connectionHandler, TransactionAction action, boolean succeeded) {
        ConnectionManager connectionManager = ConnectionManager.getInstance(getProject());
        if (!connectionManager.hasUncommittedChanges()) {
            new ConditionalLaterInvocator() {
                @Override
                public void execute() {
                    getCancelAction().putValue(Action.NAME, "Close");
                    commitAllAction.setEnabled(false);
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.