/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package com.sun.jdo.api.persistence.enhancer.impl; import com.sun.jdo.api.persistence.enhancer.classfile.VMConstants; //@olsen: cosmetics //@olsen: moved: this class -> package impl //@olsen: subst: (object)state -> flags //@olsen: subst: (object)reference -> stateManager //@olsen: subst: [iI]Persistent -> [pP]ersistenceCapable //@olsen: removed: proprietary support for HashCode /** * AnnotationConstants defines a set of constants for use across the * filter subsystem. */ public interface AnnotationConstants extends VMConstants { /* bit mask constants to describe the types of code annotation needed * at specific points within methods */ /* "this" needs to be fetched *///NOI18N public final static int FetchThis = 0x0001; /* "this" needs to be dirtied *///NOI18N public final static int DirtyThis = 0x0002; /* a java.lang.Object needs to be fetched */ //@olsen: disabled feature / not used anymore /* public final static int FetchObject = 0x0004; */ /* a java.lang.Object needs to be dirtied */ //@olsen: disabled feature / not used anymore /* public final static int DirtyObject = 0x0008; */ /* an PersistenceCapable needs to be fetched */ public final static int FetchPersistent = 0x0010; /* an PersistenceCapable needs to be dirtied */ public final static int DirtyPersistent = 0x0020; /* an array instance needs to be fetched */ //@olsen: disabled feature /* public final static int FetchArray = 0x0040; */ /* an array instance needs to be dirtied */ //@olsen: disabled feature /* public final static int DirtyArray = 0x0080; */ /* the fetch/dirty point is unconditionally reached in the method */ //@olsen: disabled feature /* public final static int Unconditional = 0x0100; */ /* the fetch/dirty point is within some type of loop structure */ //@olsen: disabled feature /* public final static int InLoop = 0x0200; */ /* the fetch/dirty requires a check for null */ //@olsen: disabled feature /* public final static int CheckNull = 0x0400; */ /* the fetch/dirty is not mediated by the StateManager */ //@olsen: added constant public final static int DFGField = 0x0800; /* the dirty is mediated by the StateManager */ //@olsen: added constant public final static int PKField = 0x1000; /* clear stateManager and flags fields in "this" *///NOI18N //@olsen: disabled feature /* public final static int MakeThisTransient = 0x2000; */ /* needs to clear jdo fields after a call of super.clone() */ //@olsen: added constant public final static int SuperClone = 0x8000; /* a bit mask covering a field which describes the type of array being fetched or dirtied */ //@olsen: disabled feature /* public final static int ArrayTypeMask = 0x78000000; */ /* Specific values for the array type field */ //@olsen: disabled feature /* public final static int ArrayTypeBoolean = 0x08000000; public final static int ArrayTypeByte = 0x10000000; public final static int ArrayTypeChar = 0x18000000; public final static int ArrayTypeShort = 0x20000000; public final static int ArrayTypeInt = 0x28000000; public final static int ArrayTypeLong = 0x30000000; public final static int ArrayTypeFloat = 0x38000000; public final static int ArrayTypeDouble = 0x40000000; public final static int ArrayTypeObject = 0x48000000; */ /* pre-combined masks formed from the above masks */ //@olsen: disabled feature / not used anymore /* public final static int FetchAny = FetchThis | FetchObject | FetchPersistent | FetchArray; public final static int DirtyAny = DirtyThis | DirtyObject | DirtyPersistent | DirtyArray; */ }