Class DataSourceConfig.DataSourceDefinition
- java.lang.Object
-
- org.apache.jackrabbit.core.config.DataSourceConfig.DataSourceDefinition
-
- Enclosing class:
- DataSourceConfig
public static final class DataSourceConfig.DataSourceDefinition extends java.lang.ObjectThe definition of a DataSource.
-
-
Constructor Summary
Constructors Constructor Description DataSourceDefinition(java.lang.String name, java.util.Properties props)Creates a DataSourceDefinition from the given properties and throws aConfigurationExceptionwhen the set of properties does not satisfy some validity constraints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDbType()java.lang.StringgetDriver()java.lang.StringgetLogicalName()intgetMaxPoolSize()java.lang.StringgetPassword()java.lang.StringgetUrl()java.lang.StringgetUser()java.lang.StringgetValidationQuery()
-
-
-
Constructor Detail
-
DataSourceDefinition
public DataSourceDefinition(java.lang.String name, java.util.Properties props) throws ConfigurationExceptionCreates a DataSourceDefinition from the given properties and throws aConfigurationExceptionwhen the set of properties does not satisfy some validity constraints.- Parameters:
name- the logical name of the data sourceprops- the properties (string keys and values)- Throws:
ConfigurationException- on error
-
-
Method Detail
-
getLogicalName
public java.lang.String getLogicalName()
- Returns:
- the logicalName
-
getDriver
public java.lang.String getDriver()
- Returns:
- the driver
-
getUrl
public java.lang.String getUrl()
- Returns:
- the url
-
getUser
public java.lang.String getUser()
- Returns:
- the user
-
getDbType
public java.lang.String getDbType()
- Returns:
- the dbType
-
getPassword
public java.lang.String getPassword()
- Returns:
- the password
-
getValidationQuery
public java.lang.String getValidationQuery()
- Returns:
- the validationQuery
-
getMaxPoolSize
public int getMaxPoolSize()
- Returns:
- the maxPoolSize
-
-