Examples of freePoolConnection()


Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

            }
            throw new DynamicContentLoadException(e, modelException);
        } finally {
            connectionHandler.getLoadMonitor().decrementLoaderCount();
            ConnectionUtil.closeResultSet(resultSet);
            connectionHandler.freePoolConnection(connection);
        }
    }

    public void reloadContent(DynamicContent<T> dynamicContent) throws DynamicContentLoadException, InterruptedException {
        loadContent(dynamicContent, true);
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

        } catch (Exception e) {
            e.printStackTrace();

        } finally {
            ConnectionUtil.closeResultSet(resultSet);
            connectionHandler.freePoolConnection(connection);
        }
        return list;
    }
}
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

            if (!silently) compilerManager.createCompilerResult(object);
        } catch (SQLException e) {
            if (!silently) compilerManager.createErrorCompilerResult(object, e);
        finally{
            connectionHandler.freePoolConnection(connection);
            if (!silently) connectionHandler.getObjectBundle().refreshObjectsStatus();
            object.getStatus().set(contentType, DBObjectStatus.COMPILING, false);
        }
    }
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

        Connection connection = connectionHandler.getPoolConnection(getSchema());
        try {
            DatabaseDDLInterface ddlInterface = connectionHandler.getInterfaceProvider().getDDLInterface();
            ddlInterface.updateTrigger(getDataset().getSchema().getName(), getDataset().getName(), getName(), oldCode, newCode, connection);
        } finally {
            connectionHandler.freePoolConnection(connection);
        }
    }
    /*********************************************************
     *                   DBEditableObject                    *
     ********************************************************/
 
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

                throw new SQLException("Object not found in database.");

            return StringUtil.removeCharacter(sourceCode.toString(), '\r');
        } finally {
            ConnectionUtil.closeResultSet(resultSet);
            connectionHandler.freePoolConnection(connection);
        }
    }

    public abstract ResultSet loadSourceCode(Connection connection) throws SQLException;
}
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

                    object.getName(), objectType, connection);

            return resultSet.next() ? resultSet.getTimestamp(1) : null;
        finally {
            ConnectionUtil.closeResultSet(resultSet);
            connectionHandler.freePoolConnection(connection);
        }
    }
}
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

        Connection connection = connectionHandler.getPoolConnection(getSchema());
        try {
            DatabaseDDLInterface ddlInterface = connectionHandler.getInterfaceProvider().getDDLInterface();
            ddlInterface.updateObject(getName(), getObjectType().getName(), oldCode,  newCode, connection);
        } finally {
            connectionHandler.freePoolConnection(connection);
        }
    }

    /*********************************************************
     *                         Loaders                       *
 
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

                    connection.commit();
                } else {
                    if (connectionHandler != null) connectionHandler.commit();
                }
            }
            if (connectionHandler != null && usePoolConnection) connectionHandler.freePoolConnection(connection);
        }

    }

    protected void prepareCall(MethodExecutionInput executionInput, CallableStatement callableStatement) throws SQLException {
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

        Connection connection = connectionHandler.getPoolConnection(getSchema());
        try {
            DatabaseDDLInterface ddlInterface = connectionHandler.getInterfaceProvider().getDDLInterface();
            ddlInterface.updateView(getName(), oldCode, newCode, connection);
        } finally {
            connectionHandler.freePoolConnection(connection);
        }
    }

    public String getCodeParseRootId(DBContentType contentType) {
        return "subquery";
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ConnectionHandler.freePoolConnection()

            }

        } catch (SQLException e) {
            e.printStackTrace();
        } finally{
            connectionHandler.freePoolConnection(connection);
            ConnectionUtil.closeResultSet(resultSet);
        }

        if (compilerMessages.size() == 0) {
            if (echoMessages.size() > 0) {
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.