KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > dd > api > serverresources > Resources


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * Resources.java
21  *
22  * Created on November 21, 2004, 2:47 AM
23  */

24
25 package org.netbeans.modules.j2ee.sun.dd.api.serverresources;
26
27 import org.netbeans.modules.schema2beans.Schema2BeansRuntimeException;
28
29 /**
30  * @author Nitya Doraisamy
31  */

32 public interface Resources extends org.netbeans.modules.j2ee.sun.dd.api.CommonDDBean {
33     
34         public static final String JavaDoc CUSTOM_RESOURCE = "CustomResource"; // NOI18N
35
public static final String JavaDoc EXTERNAL_JNDI_RESOURCE = "ExternalJndiResource"; // NOI18N
36
public static final String JavaDoc JDBC_RESOURCE = "JdbcResource"; // NOI18N
37
public static final String JavaDoc MAIL_RESOURCE = "MailResource"; // NOI18N
38
public static final String JavaDoc PERSISTENCE_MANAGER_FACTORY_RESOURCE = "PersistenceManagerFactoryResource"; // NOI18N
39
public static final String JavaDoc ADMIN_OBJECT_RESOURCE = "AdminObjectResource"; // NOI18N
40
public static final String JavaDoc CONNECTOR_RESOURCE = "ConnectorResource"; // NOI18N
41
public static final String JavaDoc RESOURCE_ADAPTER_CONFIG = "ResourceAdapterConfig"; // NOI18N
42
public static final String JavaDoc JDBC_CONNECTION_POOL = "JdbcConnectionPool"; // NOI18N
43
public static final String JavaDoc CONNECTOR_CONNECTION_POOL = "ConnectorConnectionPool"; // NOI18N
44
public static final String JavaDoc JMS_RESOURCE = "JmsResource"; // NOI18N
45

46     public void setCustomResource(int index, CustomResource value);
47     public CustomResource getCustomResource(int index);
48     public int sizeCustomResource();
49     public void setCustomResource(CustomResource[] value);
50     public CustomResource[] getCustomResource();
51     public int addCustomResource(CustomResource value);
52     public int removeCustomResource(CustomResource value);
53     public CustomResource newCustomResource();
54
55     public void setExternalJndiResource(int index, ExternalJndiResource value);
56     public ExternalJndiResource getExternalJndiResource(int index);
57     public int sizeExternalJndiResource();
58     public void setExternalJndiResource(ExternalJndiResource[] value);
59     public ExternalJndiResource[] getExternalJndiResource();
60     public int addExternalJndiResource(ExternalJndiResource value);
61     public int removeExternalJndiResource(ExternalJndiResource value);
62     public ExternalJndiResource newExternalJndiResource();
63
64     public void setJdbcResource(int index, JdbcResource value);
65     public JdbcResource getJdbcResource(int index);
66     public int sizeJdbcResource();
67     public void setJdbcResource(JdbcResource[] value);
68     public JdbcResource[] getJdbcResource();
69     public int addJdbcResource(JdbcResource value);
70     public int removeJdbcResource(JdbcResource value);
71     public JdbcResource newJdbcResource();
72
73     public void setMailResource(int index, MailResource value);
74     public MailResource getMailResource(int index);
75     public int sizeMailResource();
76     public void setMailResource(MailResource[] value);
77     public MailResource[] getMailResource();
78     public int addMailResource(MailResource value);
79     public int removeMailResource(MailResource value);
80     public MailResource newMailResource();
81
82     public void setPersistenceManagerFactoryResource(int index, PersistenceManagerFactoryResource value);
83     public PersistenceManagerFactoryResource getPersistenceManagerFactoryResource(int index);
84     public int sizePersistenceManagerFactoryResource();
85     public void setPersistenceManagerFactoryResource(PersistenceManagerFactoryResource[] value);
86     public PersistenceManagerFactoryResource[] getPersistenceManagerFactoryResource();
87     public int addPersistenceManagerFactoryResource(PersistenceManagerFactoryResource value);
88     public int removePersistenceManagerFactoryResource(PersistenceManagerFactoryResource value);
89     public PersistenceManagerFactoryResource newPersistenceManagerFactoryResource();
90
91     public void setAdminObjectResource(int index, AdminObjectResource value);
92     public AdminObjectResource getAdminObjectResource(int index);
93     public int sizeAdminObjectResource();
94     public void setAdminObjectResource(AdminObjectResource[] value);
95     public AdminObjectResource[] getAdminObjectResource();
96     public int addAdminObjectResource(AdminObjectResource value);
97     public int removeAdminObjectResource(AdminObjectResource value);
98     public AdminObjectResource newAdminObjectResource();
99
100     public void setConnectorResource(int index, ConnectorResource value);
101     public ConnectorResource getConnectorResource(int index);
102     public int sizeConnectorResource();
103     public void setConnectorResource(ConnectorResource[] value);
104     public ConnectorResource[] getConnectorResource();
105     public int addConnectorResource(ConnectorResource value);
106     public int removeConnectorResource(ConnectorResource value);
107     public ConnectorResource newConnectorResource();
108
109     public void setResourceAdapterConfig(int index, ResourceAdapterConfig value);
110     public ResourceAdapterConfig getResourceAdapterConfig(int index);
111     public int sizeResourceAdapterConfig();
112     public void setResourceAdapterConfig(ResourceAdapterConfig[] value);
113     public ResourceAdapterConfig[] getResourceAdapterConfig();
114     public int addResourceAdapterConfig(ResourceAdapterConfig value);
115     public int removeResourceAdapterConfig(ResourceAdapterConfig value);
116     public ResourceAdapterConfig newResourceAdapterConfig();
117
118     public void setJdbcConnectionPool(int index, JdbcConnectionPool value);
119     public JdbcConnectionPool getJdbcConnectionPool(int index);
120     public int sizeJdbcConnectionPool();
121     public void setJdbcConnectionPool(JdbcConnectionPool[] value);
122     public JdbcConnectionPool[] getJdbcConnectionPool();
123     public int addJdbcConnectionPool(JdbcConnectionPool value);
124     public int removeJdbcConnectionPool(JdbcConnectionPool value);
125     public JdbcConnectionPool newJdbcConnectionPool();
126
127     public void setConnectorConnectionPool(int index, ConnectorConnectionPool value);
128     public ConnectorConnectionPool getConnectorConnectionPool(int index);
129     public int sizeConnectorConnectionPool();
130     public void setConnectorConnectionPool(ConnectorConnectionPool[] value);
131     public ConnectorConnectionPool[] getConnectorConnectionPool();
132     public int addConnectorConnectionPool(ConnectorConnectionPool value);
133     public int removeConnectorConnectionPool(ConnectorConnectionPool value);
134     public ConnectorConnectionPool newConnectorConnectionPool();
135
136     public void setJmsResource(int index, JmsResource value);
137     public JmsResource getJmsResource(int index);
138     public int sizeJmsResource();
139     public void setJmsResource(JmsResource[] value);
140     public JmsResource[] getJmsResource();
141     public int addJmsResource(JmsResource value);
142     public int removeJmsResource(JmsResource value);
143     public JmsResource newJmsResource();
144         
145         public void write(java.io.File JavaDoc f) throws java.io.IOException JavaDoc, Schema2BeansRuntimeException;
146 }
147
Popular Tags