KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > persist > model > Persistent


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: Persistent.java,v 1.6 2006/10/30 21:14:33 bostic Exp $
7  */

8
9 package com.sleepycat.persist.model;
10
11 import static java.lang.annotation.ElementType.TYPE JavaDoc;
12 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
13
14 import java.lang.annotation.Documented JavaDoc;
15 import java.lang.annotation.Retention JavaDoc;
16 import java.lang.annotation.Target JavaDoc;
17
18 /**
19  * Identifies a persistent class that is not an {@link Entity} class or a
20  * {@link <a HREF="Entity.html#simpleTypes">simple type</a>}.
21  *
22  * @author Mark Hayes
23  */

24 @Documented JavaDoc @Retention JavaDoc(RUNTIME) @Target JavaDoc(TYPE)
25 public @interface Persistent {
26
27     /**
28      * Identifies a new version of a class when an incompatible class change
29      * has been made.
30      *
31      * @see Entity#version
32      */

33     int version() default 0;
34
35     /**
36      * Specifies the class that is proxied by this {@link PersistentProxy}
37      * instance.
38      *
39      * @see PersistentProxy
40      */

41     Class JavaDoc proxyFor() default void.class;
42 }
43
Popular Tags