Package org.apache.jackrabbit.core.config.DataSourceConfig

Examples of org.apache.jackrabbit.core.config.DataSourceConfig.DataSourceDefinition


     * @throws RepositoryException if there is no {@code DataSource} with the given name
     */
    public String getDataBaseType(String logicalName) throws RepositoryException {
        synchronized (lock) {
            sanityCheck();
            DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
            if (def == null) {
                throw new RepositoryException("DataSource with logicalName " + logicalName
                        + " has not been configured");
            }
            return def.getDbType();
        }
    }
View Full Code Here


     * @throws RepositoryException if there is no {@code DataSource} with the given name
     */
    public String getDataBaseType(String logicalName) throws RepositoryException {
        synchronized (lock) {
            sanityCheck();
            DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
            if (def == null) {
                throw new RepositoryException("DataSource with logicalName " + logicalName
                        + " has not been configured");
            }
            return def.getDbType();
        }
    }
View Full Code Here

        assertEquals(0, cfg.getDefinitions().size());
    }

    public void testMinimalRegularConfig() throws ConfigurationException {
        cfg.addDataSourceDefinition(minimalProps);
        DataSourceDefinition def = cfg.getDefinitions().get(0);
        assertEquals("ds", def.getLogicalName());
        assertEquals("org.apache.derby.jdbc.EmbeddedDriver", def.getDriver());
        assertEquals("url", def.getUrl());
        assertEquals("dbType", def.getDbType());
        // check default values:
        assertNull(def.getUser());
        assertNull(def.getPassword());
        assertNull(def.getValidationQuery());
        assertEquals(-1, def.getMaxPoolSize()); // unlimited
    }
View Full Code Here

        assertEquals(0, cfg.getDefinitions().size());
    }

    public void testMinimalRegularConfig() throws ConfigurationException {
        cfg.addDataSourceDefinition("ds", minimalProps);
        DataSourceDefinition def = cfg.getDefinitions().get(0);
        assertEquals("ds", def.getLogicalName());
        assertEquals("org.apache.derby.jdbc.EmbeddedDriver", def.getDriver());
        assertEquals("url", def.getUrl());
        assertEquals("dbType", def.getDbType());
        // check default values:
        assertNull(def.getUser());
        assertNull(def.getPassword());
        assertNull(def.getValidationQuery());
        assertEquals(-1, def.getMaxPoolSize()); // unlimited
    }
View Full Code Here

     * @throws RepositoryException if there is no {@code DataSource} with the given name
     */
    public String getDataBaseType(String logicalName) throws RepositoryException {
        synchronized (lock) {
            sanityCheck();
            DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
            if (def == null) {
                throw new RepositoryException("DataSource with logicalName " + logicalName
                        + " has not been configured");
            }
            return def.getDbType();
        }
    }
View Full Code Here

     * @throws RepositoryException if there is no {@code DataSource} with the given name
     */
    public String getDataBaseType(String logicalName) throws RepositoryException {
        synchronized (lock) {
            sanityCheck();
            DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
            if (def == null) {
                throw new RepositoryException("DataSource with logicalName " + logicalName
                        + " has not been configured");
            }
            return def.getDbType();
        }
    }
View Full Code Here

     * @throws RepositoryException if there is no {@code DataSource} with the given name
     */
    public String getDataBaseType(String logicalName) throws RepositoryException {
        synchronized (lock) {
            sanityCheck();
            DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
            if (def == null) {
                throw new RepositoryException("DataSource with logicalName " + logicalName
                        + " has not been configured");
            }
            return def.getDbType();
        }
    }
View Full Code Here

     * @throws RepositoryException if there is no {@code DataSource} with the given name
     */
    public String getDataBaseType(String logicalName) throws RepositoryException {
        synchronized (lock) {
            sanityCheck();
            DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
            if (def == null) {
                throw new RepositoryException("DataSource with logicalName " + logicalName
                        + " has not been configured");
            }
            return def.getDbType();
        }
    }
View Full Code Here

     * @throws RepositoryException if there is no {@code DataSource} with the given name
     */
    public String getDataBaseType(String logicalName) throws RepositoryException {
        synchronized (lock) {
            sanityCheck();
            DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
            if (def == null) {
                throw new RepositoryException("DataSource with logicalName " + logicalName
                        + " has not been configured");
            }
            return def.getDbType();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.config.DataSourceConfig.DataSourceDefinition

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.