Package org.apache.jackrabbit.core.util.db

Examples of org.apache.jackrabbit.core.util.db.ConnectionFactory


    public void testDerbyDatabasePersistenceManager() throws Exception {
        org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager manager =
            new org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager();
        manager.setDriver("org.apache.derby.jdbc.EmbeddedDriver");
        manager.setUrl("jdbc:derby:" + database.getPath() + ";create=true");
        manager.setConnectionFactory(new ConnectionFactory());
        assertPersistenceManager(manager);
    }
View Full Code Here


    public void testDerbyPoolPersistenceManager() throws Exception {
        org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager manager =
            new org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager();
        manager.setDriver("org.apache.derby.jdbc.EmbeddedDriver");
        manager.setUrl("jdbc:derby:" + database.getPath() + ";create=true");
        manager.setConnectionFactory(new ConnectionFactory());
        assertPersistenceManager(manager);
    }
View Full Code Here

    public void testH2PoolPersistenceManager() throws Exception {
        org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager manager =
            new org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager();
        manager.setDriver("org.h2.Driver");
        manager.setUrl("jdbc:h2:mem:" + database.getPath());
        manager.setConnectionFactory(new ConnectionFactory());
        assertPersistenceManager(manager);
    }
View Full Code Here

     * Creates a new configuration parser with the given parser variables.
     *
     * @param variables parser variables
     */
    public RepositoryConfigurationParser(Properties variables) {
        this(variables, new ConnectionFactory());
    }
View Full Code Here

     * @throws ConfigurationException on configuration errors
     */
    public static RepositoryConfig create(InputSource xml, Properties variables)
            throws ConfigurationException {
        RepositoryConfigurationParser parser =
            new RepositoryConfigurationParser(variables, new ConnectionFactory());

        RepositoryConfig config = parser.parseRepositoryConfig(xml);
        config.init();

        return config;
View Full Code Here

     * Creates a new configuration parser with the given parser variables.
     *
     * @param variables parser variables
     */
    public RepositoryConfigurationParser(Properties variables) {
        this(variables, new ConnectionFactory());
    }
View Full Code Here

     * Creates a new configuration parser with the given parser variables.
     *
     * @param variables parser variables
     */
    public RepositoryConfigurationParser(Properties variables) {
        this(variables, new ConnectionFactory());
    }
View Full Code Here

     * @throws ConfigurationException on configuration errors
     */
    public static RepositoryConfig create(InputSource xml, Properties variables)
            throws ConfigurationException {
        RepositoryConfigurationParser parser =
            new RepositoryConfigurationParser(variables, new ConnectionFactory());

        RepositoryConfig config = parser.parseRepositoryConfig(xml);
        config.init();

        return config;
View Full Code Here

    public static RepositoryConfig create(RepositoryConfig config) throws ConfigurationException
    {
        RepositoryConfig copiedConfig = new RepositoryConfig(config.home, config.sec, config.fsf,
                config.workspaceDirectory, config.workspaceConfigDirectory, config.defaultWorkspace,
                config.workspaceMaxIdleTime, config.template, config.vc, config.qhf, config.cc,
                config.dsf, config.rlf, config.dsc, new ConnectionFactory(), config.parser);
        copiedConfig.init();
        return copiedConfig;
    }
View Full Code Here

    public void testDerbyDatabasePersistenceManager() throws Exception {
        org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager manager =
            new org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager();
        manager.setDriver("org.apache.derby.jdbc.EmbeddedDriver");
        manager.setUrl("jdbc:derby:" + database.getPath() + ";create=true");
        manager.setConnectionFactory(new ConnectionFactory());
        assertPersistenceManager(manager);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.util.db.ConnectionFactory

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.