| org.netbeans.modules.j2ee.deployment.plugins.spi.config.DatasourceConfiguration
DatasourceConfiguration | public interface DatasourceConfiguration (Code) | | Configuration useful for managing module data sources.
Implementation of this interface should be registered in the
ModuleConfiguration lookup.
since: 1.23 author: sherold |
Method Summary | |
void | bindDatasourceReference(String referenceName, String jndiName) Binds the data source reference name with the corresponding data source which is
identified the given JNDI name. | void | bindDatasourceReferenceForEjb(String ejbName, String ejbType, String referenceName, String jndiName) Binds the data source reference name with the corresponding data source which is
identified the given JNDI name. | Datasource | createDatasource(String jndiName, String url, String username, String password, String driver) Creates the data source definition in the module.
Parameters: jndiName - data source JNDI name. Parameters: url - database URL. Parameters: username - database user. Parameters: password - user's password. Parameters: driver - fully qualified name of the database driver class. | String | findDatasourceJndiName(String referenceName) Finds JNDI name of the data source which is mapped to the given reference name. | String | findDatasourceJndiNameForEjb(String ejbName, String referenceName) Finds JNDI name of the data source which is mapped to the given reference name in the scope the EJB. | Set<Datasource> | getDatasources() Returns the data sources defined in the module. | boolean | supportsCreateDatasource() Returns true if data source creation is supported, false otherwise. |
bindDatasourceReference | void bindDatasourceReference(String referenceName, String jndiName) throws ConfigurationException(Code) | | Binds the data source reference name with the corresponding data source which is
identified the given JNDI name.
Parameters: referenceName - name used to identify the data source Parameters: jndiName - JNDI name of the data source throws: ConfigurationException - if there is some problem with data source configuration since: 1.25 |
bindDatasourceReferenceForEjb | void bindDatasourceReferenceForEjb(String ejbName, String ejbType, String referenceName, String jndiName) throws ConfigurationException(Code) | | Binds the data source reference name with the corresponding data source which is
identified the given JNDI name. The reference is used within the scope of the EJB.
Parameters: ejbName - EJB name Parameters: ejbType - EJB type - the possible values are org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.SESSION,org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.ENTITY andorg.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.MESSAGE_DRIVEN Parameters: referenceName - name used to identify the data source Parameters: jndiName - JNDI name of the data source throws: ConfigurationException - if there is some problem with data source configuration since: 1.25 |
findDatasourceJndiName | String findDatasourceJndiName(String referenceName) throws ConfigurationException(Code) | | Finds JNDI name of the data source which is mapped to the given reference name.
Parameters: referenceName - reference name JNDI name of the data source if the mapping exists, null otherwise throws: ConfigurationException - if there is some problem with data source configuration since: 1.25 |
findDatasourceJndiNameForEjb | String findDatasourceJndiNameForEjb(String ejbName, String referenceName) throws ConfigurationException(Code) | | Finds JNDI name of the data source which is mapped to the given reference name in the scope the EJB.
Parameters: ejbName - EJB name Parameters: referenceName - reference name JNDI name of the data source if the mapping exists, null otherwise throws: ConfigurationException - if there is some problem with data source configuration since: 1.25 |
supportsCreateDatasource | boolean supportsCreateDatasource()(Code) | | Returns true if data source creation is supported, false otherwise.
true if data source creation is supported, false otherwise. |
|
|