public class JcrDriver extends LocalJcrDriver
The driver accepts several URL formats based on how the repository is configured:
jdbc:jcr:jndi:{jndiName}
or
jdbc:jcr:jndi:{jndiName}?{firstProperty}&{secondProperty}&...
where
Repository or org.modeshape.jcr.api.Repositories
instance can be found;
Here's an example of a URL that defines a Repository instance located at "jcr/local" with a repository
name of "repository" and a user, password of "secret", and workspace name of "My Workspace":
jdbc:jcr:jndi:jcr/local?repositoryName=repository&user=jsmith&password=secret&workspace=My%20Workspace
The "repository" property is required only if the object in JNDI is a org.modeshape.jcr.api.Repositories object.
jdbc:jcr:http://{hostname}:{port}?{firstProperty}&{secondProperty}&...
where
Repository or org.modeshape.jcr.api.Repositories
instance can be found;Repository or org.modeshape.jcr.api.Repositories on
the specified hostname;Note that any use of URL encoding ('%' followed by a two-digit hexadecimal value) will be decoded before being used.
LocalJcrDriver.JcrContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_URL_PREFIX |
ALL_PROPERTY_NAMES, JNDI_URL_PREFIX, logger, PASSWORD_PROPERTY_NAME, REPOSITORY_PROPERTY_NAME, TEIID_SUPPORT_PROPERTY_NAME, USERNAME_PROPERTY_NAME, WORKSPACE_PROPERTY_NAME| Modifier | Constructor and Description |
|---|---|
|
JcrDriver()
No-arg constructor, required by the
DriverManager. |
protected |
JcrDriver(LocalJcrDriver.JcrContextFactory namingContextFactory)
Create an instance of this driver using the supplied JNDI naming context factory.
|
acceptsURL, connect, createConnectionInfo, getDriverInfo, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, getVendorName, getVendorUrl, getVersion, jdbcCompliantpublic static final String HTTP_URL_PREFIX
public JcrDriver()
DriverManager.protected JcrDriver(LocalJcrDriver.JcrContextFactory namingContextFactory)
namingContextFactory - the naming context factory; may be null if one should be created automaticallyCopyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.