| java.lang.Object org.apache.ojb.broker.metadata.ConnectionRepository
ConnectionRepository | public ConnectionRepository()(Code) | | |
addDescriptor | public JdbcConnectionDescriptor addDescriptor(String jcdAlias, String jdbcDriver, String jdbcConnectionUrl, String username, String password)(Code) | | Creates and adds a new connection descriptor for the given JDBC connection url.
This method tries to guess the platform to be used, but it should be checked
afterwards nonetheless using the
JdbcConnectionDescriptor.getDbms method.
For properties that are not part of the url, the following standard values are
explicitly set:
Parameters: jcdAlias - The connection alias for the created connection; if 'default' is used,then the new descriptor will become the default connection descriptor Parameters: jdbcDriver - The fully qualified jdbc driver name Parameters: jdbcConnectionUrl - The connection url of the form '[protocol]:[sub protocol]:{database-specific path]'where protocol is usually 'jdbc' Parameters: username - The user name (can be null ) Parameters: password - The password (can be null ) The created connection descriptor See Also: JdbcConnectionDescriptor.getDbms |
addDescriptor | public JdbcConnectionDescriptor addDescriptor(String jcdAlias, DataSource dataSource, String username, String password)(Code) | | Creates and adds a new connection descriptor for the given JDBC data source.
This method tries to guess the platform to be used, but it should be checked
afterwards nonetheless using the
JdbcConnectionDescriptor.getDbms method.
Note that the descriptor won't have a value for the driver because it is not possible
to retrieve the driver classname from the data source.
Parameters: jcdAlias - The connection alias for the created connection; if 'default' is used,then the new descriptor will become the default connection descriptor Parameters: dataSource - The data source Parameters: username - The user name (can be null ) Parameters: password - The password (can be null ) The created connection descriptor See Also: JdbcConnectionDescriptor.getDbms |
|
|