KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > spi > persistence > support > ejb > ejbqlc > IdentificationVariable


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
26 package com.sun.jdo.spi.persistence.support.ejb.ejbqlc;
27
28 /**
29  * An instance of this class denotes an identification variable as declared
30  * in the from clause of an EJBQL query string. The compiler creates such an
31  * instance when analysing the from clause and stores it in the symbol table.
32  *
33  * @author Michael Bouschen
34  */

35 public class IdentificationVariable
36 {
37     /** The name of the identification variable. */
38     private String JavaDoc name;
39
40     /** The type of the identification variable. */
41     private Object JavaDoc typeInfo;
42
43     /**
44      * Creates an identification variable declaration for use during semantic
45      * analysis.
46      * @param name the name of the identification variable.
47      * @param typeInfo the type of the identification variable.
48      */

49     public IdentificationVariable(String JavaDoc name, Object JavaDoc typeInfo)
50     {
51         this.name = name;
52         this.typeInfo = typeInfo;
53     }
54
55     /**
56      * Returns the name of the IdentificationVariable.
57      * @return the name
58      */

59     public String JavaDoc getName()
60     {
61         return name;
62     }
63
64     /**
65      * Returns the type of the IdentificationVariable.
66      * @return the type
67      */

68     public Object JavaDoc getTypeInfo()
69     {
70         return typeInfo;
71     }
72     
73 }
74
Popular Tags