KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > taglibs > standard > tag > rt > sql > UpdateTag


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.taglibs.standard.tag.rt.sql;
17
18 import org.apache.taglibs.standard.tag.common.sql.UpdateTagSupport;
19
20 /**
21  * Subclass for the JSTL library with rtexprvalue support.
22  *
23  * @author Hans Bergsten
24  */

25 public class UpdateTag extends UpdateTagSupport {
26
27     //*********************************************************************
28
// Accessor methods
29

30     
31     /**
32      * Setter method for the SQL DataSource. DataSource can be
33      * a String or a DataSource object.
34      */

35     public void setDataSource(Object JavaDoc dataSource) {
36     this.rawDataSource = dataSource;
37     this.dataSourceSpecified = true;
38     }
39
40     /**
41      * Setter method for the SQL statement to use for the
42      * query. The statement may contain parameter markers
43      * (question marks, ?). If so, the parameter values must
44      * be set using nested value elements.
45      */

46     public void setSql(String JavaDoc sql) {
47     this.sql = sql;
48     }
49 }
50
Popular Tags