org.apache.jackrabbit.core.config
Class DataSourceConfig.DataSourceDefinition

java.lang.Object
  extended by org.apache.jackrabbit.core.config.DataSourceConfig.DataSourceDefinition
Enclosing class:
DataSourceConfig

public static final class DataSourceConfig.DataSourceDefinition
extends Object

The definition of a DataSource.


Constructor Summary
DataSourceConfig.DataSourceDefinition(String name, Properties props)
          Creates a DataSourceDefinition from the given properties and throws a ConfigurationException when the set of properties does not satisfy some validity constraints.
 
Method Summary
 String getDbType()
           
 String getDriver()
           
 String getLogicalName()
           
 int getMaxPoolSize()
           
 String getPassword()
           
 String getUrl()
           
 String getUser()
           
 String getValidationQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceConfig.DataSourceDefinition

public DataSourceConfig.DataSourceDefinition(String name,
                                             Properties props)
                                      throws ConfigurationException
Creates a DataSourceDefinition from the given properties and throws a ConfigurationException when the set of properties does not satisfy some validity constraints.

Parameters:
name - the logical name of the data source
props - the properties (string keys and values)
Throws:
ConfigurationException - on error
Method Detail

getLogicalName

public String getLogicalName()
Returns:
the logicalName

getDriver

public String getDriver()
Returns:
the driver

getUrl

public String getUrl()
Returns:
the url

getUser

public String getUser()
Returns:
the user

getDbType

public String getDbType()
Returns:
the dbType

getPassword

public String getPassword()
Returns:
the password

getValidationQuery

public String getValidationQuery()
Returns:
the validationQuery

getMaxPoolSize

public int getMaxPoolSize()
Returns:
the maxPoolSize


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.