Package org.apache.cayenne.conn

Examples of org.apache.cayenne.conn.PoolManager


        assertEquals(PersistenceState.COMMITTED, newObject.getPersistenceState());
    }

    private void changeMaxConnections(int delta) {
        PoolManager manager = (PoolManager) dataSourceFactory.getSharedDataSource();
        manager.setMaxConnections(manager.getMaxConnections() + delta);
    }
View Full Code Here


    private DataSource createDataSource() {
        try {
            PoolDataSource poolDS = new PoolDataSource(
                    dataSourceInfo.getJdbcDriver(),
                    dataSourceInfo.getDataSourceUrl());
            return new PoolManager(
                    poolDS,
                    1,
                    1,
                    dataSourceInfo.getUserName(),
                    dataSourceInfo.getPassword()) {
View Full Code Here

                Constants.JDBC_MAX_CONNECTIONS_PROPERTY,
                suffix,
                1);

        try {
            return new PoolManager(
                    driver,
                    url,
                    minConnections,
                    maxConnections,
                    username,
View Full Code Here

            logger.info(message);
            throw new ConfigurationException(message);
        }
       
        try {
            return new PoolManager(
                    dataSourceDescriptor.getJdbcDriver(),
                    dataSourceDescriptor.getDataSourceUrl(),
                    dataSourceDescriptor.getMinConnections(),
                    dataSourceDescriptor.getMaxConnections(),
                    dataSourceDescriptor.getUserName(),
View Full Code Here

TOP

Related Classes of org.apache.cayenne.conn.PoolManager

Copyright © 2018 www.massapicom. 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.