KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > ws7 > serverresources > dd > WS70JdbcResource


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  * WS0JdbcResource.java
21  */

22
23 package org.netbeans.modules.j2ee.sun.ws7.serverresources.dd;
24
25 /**
26  * Code reused from Appserver common API module
27  */

28 public interface WS70JdbcResource {
29
30     static public final String JavaDoc JNDINAME = "JndiName"; // NOI18N
31
static public final String JavaDoc DATASOURCECLASS = "DatasourceClass"; // NOI18N
32
static public final String JavaDoc MINCONNECTIONS = "MinConnections"; // NOI18N
33
static public final String JavaDoc MAXCONNECTIONS = "MaxConnections"; // NOI18N
34
static public final String JavaDoc IDLETIMEOUT = "IdleTimeout"; // NOI18N
35
static public final String JavaDoc WAITTIMEOUT = "WaitTimeout"; // NOI18N
36
static public final String JavaDoc ISOLATIONLEVEL = "IsolationLevel"; // NOI18N
37
static public final String JavaDoc ISOLATIONLEVELGUARANTEED = "IsolationLevelGuaranteed"; // NOI18N
38
static public final String JavaDoc CONNECTIONVALIDATION = "ConnectionValidation"; // NOI18N
39
static public final String JavaDoc CONNECTIONVALIDATIONTABLENAME = "ConnectionValidationTableName"; // NOI18N
40
static public final String JavaDoc FAILALLCONNECTIONS = "FailAllConnections"; // NOI18N
41
static public final String JavaDoc ENABLED = "Enabled"; // NOI18N
42
static public final String JavaDoc DESCRIPTION = "Description"; // NOI18N
43
static public final String JavaDoc PROPERTY = "PropertyElement"; // NOI18N// NOI18N
44

45     /** Setter for jndi-name property
46         * @param value property value
47         */

48     public void setJndiName(java.lang.String JavaDoc value);
49         /** Getter for jndi-name property
50         * @return property value
51         */

52     public java.lang.String JavaDoc getJndiName();
53     // This attribute is mandatory
54
public void setDatasourceClass(java.lang.String JavaDoc value);
55
56     //
57
public java.lang.String JavaDoc getDatasourceClass();
58
59     // This attribute is mandatory
60
public void setMinConnections(java.lang.String JavaDoc value);
61
62     //
63
public java.lang.String JavaDoc getMinConnections();
64
65     // This attribute is mandatory
66
public void setMaxConnections(java.lang.String JavaDoc value);
67     //
68
public java.lang.String JavaDoc getMaxConnections();
69
70     // This attribute is mandatory
71
public void setIdleTimeout(java.lang.String JavaDoc value);
72
73     //
74
public java.lang.String JavaDoc getIdleTimeout();
75
76     // This attribute is mandatory
77
public void setWaitTimeout(java.lang.String JavaDoc value);
78
79     //
80
public java.lang.String JavaDoc getWaitTimeout();
81
82     // This attribute is mandatory
83
public void setIsolationLevel(java.lang.String JavaDoc value);
84
85     //
86
public java.lang.String JavaDoc getIsolationLevel();
87
88     // This attribute is mandatory
89
public void setIsolationLevelGuaranteed(java.lang.String JavaDoc value);
90
91     //
92
public java.lang.String JavaDoc getIsolationLevelGuaranteed();
93
94     // This attribute is mandatory
95
public void setConnectionValidation(java.lang.String JavaDoc value);
96
97     //
98
public java.lang.String JavaDoc getConnectionValidation();
99     // This attribute is optional
100
public void setConnectionValidationTableName(java.lang.String JavaDoc value);
101     //
102
public java.lang.String JavaDoc getConnectionValidationTableName();
103     // This attribute is mandatory
104
public void setFailAllConnections(java.lang.String JavaDoc value);
105
106     //
107
public java.lang.String JavaDoc getFailAllConnections();
108         /** Setter for enabled property
109         * @param value property value
110         */

111     public void setEnabled(java.lang.String JavaDoc value);
112         /** Getter for enabled property
113         * @return property value
114         */

115     public java.lang.String JavaDoc getEnabled();
116         /** Setter for description attribute
117         * @param value attribute value
118         */

119     public void setDescription(String JavaDoc value);
120         /** Getter for description attribute
121         * @return attribute value
122         */

123     public String JavaDoc getDescription();
124
125     public void setPropertyElement(int index, PropertyElement value);
126     public PropertyElement getPropertyElement(int index);
127     public int sizePropertyElement();
128     public void setPropertyElement(PropertyElement[] value);
129     public PropertyElement[] getPropertyElement();
130     public int addPropertyElement(PropertyElement value);
131     public int removePropertyElement(PropertyElement value);
132     public PropertyElement newPropertyElement();
133
134 }
135
Popular Tags