KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > descriptors > CMPPolicy


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
5  * in compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * glassfish/bootstrap/legal/CDDLv1.0.txt or
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
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 in each file and include the License file at
15  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16  * add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your
18  * own identifying information: Portions Copyright [yyyy]
19  * [name of copyright owner]
20  */

21 // Copyright (c) 1998, 2005, Oracle. All rights reserved.
22
package oracle.toplink.essentials.descriptors;
23
24 import oracle.toplink.essentials.internal.sessions.AbstractSession;
25 import oracle.toplink.essentials.descriptors.ClassDescriptor;
26 import oracle.toplink.essentials.exceptions.DescriptorException;
27
28 /**
29  * <p>
30  * <b>Description</b>: Place holder for CMP specific information. This class can be set on the Descriptor.
31  *
32  * @since TopLink 10.1.3
33  */

34 public class CMPPolicy implements java.io.Serializable JavaDoc {
35     protected ClassDescriptor descriptor;
36
37     public CMPPolicy() {
38     }
39
40     /**
41      * INTERNAL:
42      * Initialize the CMPPolicy settings.
43      */

44     public void initialize(ClassDescriptor descriptor, AbstractSession session) throws DescriptorException {
45     }
46
47     /**
48      * INTERNAL:
49      * @return Returns the owningDescriptor.
50      */

51     public ClassDescriptor getDescriptor() {
52         return descriptor;
53     }
54
55     /**
56      * INTERNAL:
57      * @param owningDescriptor The owningDescriptor to set.
58      */

59     public void setDescriptor(ClassDescriptor owningDescriptor) {
60         this.descriptor = owningDescriptor;
61     }
62     
63     /**
64      * INTERNAL:
65      * Return if this policy is for CMP3.
66      */

67     public boolean isCMP3Policy() {
68         return false;
69     }
70     /**
71      * INTERNAL:
72      * Convert all the class-name-based settings in this object to actual class-based
73      * settings. This method is used when converting a project that has been built
74      * with class names to a project with classes.
75      * @param classLoader
76      */

77     public void convertClassNamesToClasses(ClassLoader JavaDoc classLoader){
78     }
79 }
80
Popular Tags