KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > taglibs > dbtags > resultset > WasNotNullTag


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.dbtags.resultset;
17
18
19 /**
20  * <p>Executes its body if the last getColumn tag did not receive
21  * a null from the database. You must be inside a resultset tag and there
22  * must be a previous getColumn tag, or an error will be generated.</p>
23  *
24  * <p>JSP Tag Lib Descriptor
25  * <pre>
26  * &lt;name>wasNotNull&lt;/name>
27  * &lt;tagclass>org.apache.taglibs.dbtags.resultset.WasNotNullTag&lt;/tagclass>
28  * &lt;bodycontent>JSP&lt;/bodycontent>
29  * &lt;info>Executes its body if the last getColumn tag
30  * did not receive a null value from the database. You
31  * must be inside a resultset tag and there must
32  * be a previous getColumn tag, or an error will be
33  * generated.&lt;/info>
34  * </pre>
35  *
36  * @author Morgan Delagrange
37  * @see WasNullTag
38  */

39 public class WasNotNullTag extends WasNullTag {
40
41   /**
42    * Constructor instructs the superclass to only
43    * execute the body if the last getColumn returned null.
44    */

45   public WasNotNullTag() {
46     setValue(false);
47   }
48
49 }
50
51
Popular Tags