KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > resource > deployment > ds > metadata > SqlSupportMetaData


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22
23 package org.jboss.resource.deployment.ds.metadata;
24
25
26 /**
27  * A SqlSupportMetaData.
28  *
29  * @author <a HREF="weston.price@jboss.com">Weston Price</a>
30  * @version $Revision: 45634 $
31  */

32 public class SqlSupportMetaData implements DsElementMetaData
33 {
34    
35    /** The serialVersionUID */
36    private static final long serialVersionUID = 7760999544938547262L;
37
38    /** The newConnectionSql */
39    private String JavaDoc newConnectionSql;
40    
41    /** The checkValidConnectionSql */
42    private String JavaDoc checkValidConnectionSql;
43    
44    /** The validConnectionCheckerClassName */
45    private String JavaDoc validConnectionCheckerClassName;
46    
47    /** The exceptionSorterClassName */
48    private String JavaDoc exceptionSorterClassName;
49
50    /** The preparedStatementCacheSize */
51    private int preparedStatementCacheSize;
52
53    /** The trackStatements */
54    private boolean trackStatements;
55    
56    /** The trackStatementsNoWarn */
57    private boolean trackStatementsNoWarn;
58    
59    /** The shareStatements */
60    private boolean shareStatements;
61
62    /** The validateOnMatch */
63    private boolean validateOnMatch;
64    
65    /** The queryTimeout */
66    private int queryTimeout;
67    
68    /** The setTxQueryTimeout */
69    private boolean setTxQueryTimeout;
70    
71    
72    public boolean isSetTxQueryTimeout()
73    {
74       return setTxQueryTimeout;
75    }
76
77    public void setTxQueryTimeout(boolean setTxQueryTimeout)
78    {
79       this.setTxQueryTimeout = setTxQueryTimeout;
80    }
81
82    public int getPreparedStatementCacheSize()
83    {
84       return preparedStatementCacheSize;
85    }
86
87    public void setPreparedStatementCacheSize(int preparedStatementCacheSize)
88    {
89       this.preparedStatementCacheSize = preparedStatementCacheSize;
90    }
91
92    public boolean isShareStatements()
93    {
94       return shareStatements;
95    }
96
97    public void setShareStatements(boolean shareStatements)
98    {
99       this.shareStatements = shareStatements;
100    }
101
102    public boolean isTrackStatements()
103    {
104       return trackStatements;
105    }
106
107    public void setTrackStatements(boolean trackStatements)
108    {
109       this.trackStatements = trackStatements;
110    }
111
112    /**
113     * Get the checkValidConnectionSql.
114     *
115     * @return the checkValidConnectionSql.
116     */

117    public String JavaDoc getCheckValidConnectionSql()
118    {
119       return checkValidConnectionSql;
120    }
121
122    /**
123     * Set the checkValidConnectionSql.
124     *
125     * @param checkValidConnectionSql The checkValidConnectionSql to set.
126     */

127    public void setCheckValidConnectionSql(String JavaDoc checkValidConnectionSql)
128    {
129       this.checkValidConnectionSql = checkValidConnectionSql;
130    }
131
132    /**
133     * Get the exceptionSorterClassName.
134     *
135     * @return the exceptionSorterClassName.
136     */

137    public String JavaDoc getExceptionSorterClassName()
138    {
139       return exceptionSorterClassName;
140    }
141
142    /**
143     * Set the exceptionSorterClassName.
144     *
145     * @param exceptionSorterClassName The exceptionSorterClassName to set.
146     */

147    public void setExceptionSorterClassName(String JavaDoc exceptionSorterClassName)
148    {
149       this.exceptionSorterClassName = exceptionSorterClassName;
150    }
151
152    /**
153     * Get the newConnectionSql.
154     *
155     * @return the newConnectionSql.
156     */

157    public String JavaDoc getNewConnectionSql()
158    {
159       return newConnectionSql;
160    }
161
162    /**
163     * Set the newConnectionSql.
164     *
165     * @param newConnectionSql The newConnectionSql to set.
166     */

167    public void setNewConnectionSql(String JavaDoc newConnectionSql)
168    {
169       this.newConnectionSql = newConnectionSql;
170    }
171
172    /**
173     * Get the validConnectionCheckerClassName.
174     *
175     * @return the validConnectionCheckerClassName.
176     */

177    public String JavaDoc getValidConnectionCheckerClassName()
178    {
179       return validConnectionCheckerClassName;
180    }
181
182    /**
183     * Set the validConnectionCheckerClassName.
184     *
185     * @param validConnectionCheckerClassName The validConnectionCheckerClassName to set.
186     */

187    public void setValidConnectionCheckerClassName(String JavaDoc validConnectionCheckerClassName)
188    {
189       this.validConnectionCheckerClassName = validConnectionCheckerClassName;
190    }
191
192    public boolean isValidateOnMatch()
193    {
194       return validateOnMatch;
195    }
196
197    public void setValidateOnMatch(boolean validateOnMatch)
198    {
199       this.validateOnMatch = validateOnMatch;
200    }
201
202    public int getQueryTimeout()
203    {
204       return queryTimeout;
205    }
206
207    public void setQueryTimeout(int queryTimeout)
208    {
209       this.queryTimeout = queryTimeout;
210    }
211
212    public boolean isTrackStatementsNoWarn()
213    {
214       return trackStatementsNoWarn;
215    }
216
217    public void setTrackStatementsNoWarn(boolean trackStatementsNoWarn)
218    {
219       this.trackStatementsNoWarn = trackStatementsNoWarn;
220    }
221
222    
223    
224 }
225
Popular Tags