Java Doc for DatasourceConfiguration.java in  » 6.0-JDK-Core » j2eeserver » org » netbeans » modules » j2ee » deployment » plugins » spi » config » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » j2eeserver » org.netbeans.modules.j2ee.deployment.plugins.spi.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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
 voidbindDatasourceReference(String referenceName, String jndiName)
     Binds the data source reference name with the corresponding data source which is identified the given JNDI name.
 voidbindDatasourceReferenceForEjb(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.
 DatasourcecreateDatasource(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.
 StringfindDatasourceJndiName(String referenceName)
     Finds JNDI name of the data source which is mapped to the given reference name.
 StringfindDatasourceJndiNameForEjb(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.
 booleansupportsCreateDatasource()
     Returns true if data source creation is supported, false otherwise.



Method Detail
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



createDatasource
Datasource createDatasource(String jndiName, String url, String username, String password, String driver) throws UnsupportedOperationException, ConfigurationException, DatasourceAlreadyExistsException(Code)
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. created data source.
throws:
  UnsupportedOperationException - if operation is not supported.
throws:
  ConfigurationException - reports problems in creating data sourcedefinition.
throws:
  DatasourceAlreadyExistsException - if a data source with the sameJNDI name already exists.



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



getDatasources
Set<Datasource> getDatasources() throws ConfigurationException(Code)
Returns the data sources defined in the module. a set of data sources defined in the module.
throws:
  ConfigurationException - reports problems in retrieving data sourcedefinitions.



supportsCreateDatasource
boolean supportsCreateDatasource()(Code)
Returns true if data source creation is supported, false otherwise. true if data source creation is supported, false otherwise.



ww__w_._j___a___v__a__2s__.___c___o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.