KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > api > persistence > enhancer > impl > AnnotationConstants


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 package com.sun.jdo.api.persistence.enhancer.impl;
26
27 import com.sun.jdo.api.persistence.enhancer.classfile.VMConstants;
28
29 //@olsen: cosmetics
30
//@olsen: moved: this class -> package impl
31
//@olsen: subst: (object)state -> flags
32
//@olsen: subst: (object)reference -> stateManager
33
//@olsen: subst: [iI]Persistent -> [pP]ersistenceCapable
34
//@olsen: removed: proprietary support for HashCode
35

36
37 /**
38  * AnnotationConstants defines a set of constants for use across the
39  * filter subsystem.
40  */

41 public interface AnnotationConstants extends VMConstants {
42
43     /* bit mask constants to describe the types of code annotation needed
44      * at specific points within methods
45      */

46
47     /* "this" needs to be fetched *///NOI18N
48
public final static int FetchThis = 0x0001;
49
50     /* "this" needs to be dirtied *///NOI18N
51
public final static int DirtyThis = 0x0002;
52
53     /* a java.lang.Object needs to be fetched */
54 //@olsen: disabled feature / not used anymore
55
/*
56     public final static int FetchObject = 0x0004;
57 */

58
59     /* a java.lang.Object needs to be dirtied */
60 //@olsen: disabled feature / not used anymore
61
/*
62     public final static int DirtyObject = 0x0008;
63 */

64
65     /* an PersistenceCapable needs to be fetched */
66     public final static int FetchPersistent = 0x0010;
67
68     /* an PersistenceCapable needs to be dirtied */
69     public final static int DirtyPersistent = 0x0020;
70
71     /* an array instance needs to be fetched */
72 //@olsen: disabled feature
73
/*
74     public final static int FetchArray = 0x0040;
75 */

76
77     /* an array instance needs to be dirtied */
78 //@olsen: disabled feature
79
/*
80     public final static int DirtyArray = 0x0080;
81 */

82
83     /* the fetch/dirty point is unconditionally reached in the method */
84 //@olsen: disabled feature
85
/*
86     public final static int Unconditional = 0x0100;
87 */

88
89     /* the fetch/dirty point is within some type of loop structure */
90 //@olsen: disabled feature
91
/*
92     public final static int InLoop = 0x0200;
93 */

94
95     /* the fetch/dirty requires a check for null */
96 //@olsen: disabled feature
97
/*
98     public final static int CheckNull = 0x0400;
99 */

100
101     /* the fetch/dirty is not mediated by the StateManager */
102     //@olsen: added constant
103
public final static int DFGField = 0x0800;
104
105     /* the dirty is mediated by the StateManager */
106     //@olsen: added constant
107
public final static int PKField = 0x1000;
108
109     /* clear stateManager and flags fields in "this" *///NOI18N
110
//@olsen: disabled feature
111
/*
112     public final static int MakeThisTransient = 0x2000;
113 */

114
115     /* needs to clear jdo fields after a call of super.clone() */
116     //@olsen: added constant
117
public final static int SuperClone = 0x8000;
118
119     /* a bit mask covering a field which describes the type of array
120        being fetched or dirtied */

121 //@olsen: disabled feature
122
/*
123     public final static int ArrayTypeMask = 0x78000000;
124 */

125
126     /* Specific values for the array type field */
127 //@olsen: disabled feature
128
/*
129     public final static int ArrayTypeBoolean = 0x08000000;
130     public final static int ArrayTypeByte = 0x10000000;
131     public final static int ArrayTypeChar = 0x18000000;
132     public final static int ArrayTypeShort = 0x20000000;
133     public final static int ArrayTypeInt = 0x28000000;
134     public final static int ArrayTypeLong = 0x30000000;
135     public final static int ArrayTypeFloat = 0x38000000;
136     public final static int ArrayTypeDouble = 0x40000000;
137     public final static int ArrayTypeObject = 0x48000000;
138 */

139
140     /* pre-combined masks formed from the above masks */
141
142 //@olsen: disabled feature / not used anymore
143
/*
144     public final static int FetchAny =
145     FetchThis | FetchObject | FetchPersistent | FetchArray;
146     public final static int DirtyAny =
147     DirtyThis | DirtyObject | DirtyPersistent | DirtyArray;
148 */

149 }
150
151
Popular Tags