KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > JDBCConnectionPoolConfig


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23  
24 /*
25  * $Header: /cvs/glassfish/admin-core/mbeanapi/src/java/com/sun/appserv/management/config/JDBCConnectionPoolConfig.java,v 1.6 2005/12/25 03:49:35 tcfujii Exp $
26  * $Revision: 1.6 $
27  * $Date: 2005/12/25 03:49:35 $
28  */

29
30 package com.sun.appserv.management.config;
31
32 import com.sun.appserv.management.base.XTypes;
33
34
35
36
37 /**
38      Configuration for the <jdbc-connection-pool> element.
39 */

40
41 public interface JDBCConnectionPoolConfig
42     extends NamedConfigElement, Description, PropertiesAccess, ResourceRefConfigReferent
43 {
44 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
45     public static final String JavaDoc J2EE_TYPE = XTypes.JDBC_CONNECTION_POOL_CONFIG;
46     
47     public String JavaDoc getConnectionValidationMethod();
48     public void setConnectionValidationMethod( String JavaDoc value );
49
50     public String JavaDoc getDatasourceClassname();
51     public void setDatasourceClassname( String JavaDoc value );
52
53     public boolean getFailAllConnections();
54     public void setFailAllConnections( boolean value );
55
56     public String JavaDoc getIdleTimeoutInSeconds();
57     public void setIdleTimeoutInSeconds( String JavaDoc value );
58
59     public boolean getIsConnectionValidationRequired();
60     public void setIsConnectionValidationRequired( boolean value );
61
62     public boolean getIsIsolationLevelGuaranteed();
63     public void setIsIsolationLevelGuaranteed( boolean value );
64
65     public String JavaDoc getMaxPoolSize();
66     public void setMaxPoolSize( String JavaDoc value );
67
68     public String JavaDoc getMaxWaitTimeInMillis();
69     public void setMaxWaitTimeInMillis( String JavaDoc value );
70
71     public String JavaDoc getPoolResizeQuantity();
72     public void setPoolResizeQuantity( String JavaDoc value );
73
74     public String JavaDoc getResType();
75     public void setResType( String JavaDoc value );
76
77     public String JavaDoc getSteadyPoolSize();
78     public void setSteadyPoolSize( String JavaDoc value );
79
80     public String JavaDoc getTransactionIsolationLevel();
81     /**
82         See {@link IsolationValues}.
83      */

84     public void setTransactionIsolationLevel( String JavaDoc value );
85
86     public String JavaDoc getValidationTableName();
87     public void setValidationTableName( String JavaDoc value );
88
89     /**
90         A pool with this property set to true returns
91         non-transactional connections. This connection does not get
92         automatically enlisted with the transaction manager.
93         
94         @since AppServer 9.0
95      */

96     public boolean getNonTransactionalConnections();
97     
98     /**
99         @see #getNonTransactionalConnections
100         @since AppServer 9.0
101      */

102     public void setNonTransactionalConnections( boolean enabled );
103     
104     /**
105         A pool with this property set to true, can be used by
106         non-J2EE components (i.e components other than EJBs or
107         Servlets). The returned connection is enlisted automatically
108         with the transaction context obtained from the transaction
109         manager. This property is to enable the pool to be used by
110         non-component callers such as ServletFilters, Lifecycle
111         modules, and 3rd party persistence managers. Standard J2EE
112         components can continue to use such pools. Connections
113         obtained by non-component callers are not automatically
114         cleaned at the end of a transaction by the container. They
115         need to be explicitly closed by the the caller.
116         
117         @since AppServer 9.0
118      */

119     public boolean getAllowNonComponentCallers();
120     
121     /**
122         @see #getAllowNonComponentCallers
123         @since AppServer 9.0
124      */

125     public void setAllowNonComponentCallers( boolean enabled );
126
127
128
129 }
130
Popular Tags