Debian Codegraph @

lang/java/src/com/sleepycat/persist/model/Persistent.java

raw
1 /*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002, 2013 Oracle and/or its affiliates. All rights reserved.
5 *
6 */
7
8 package com.sleepycat.persist.model;
9
10 import static java.lang.annotation.ElementType.TYPE;
11 import static java.lang.annotation.RetentionPolicy.RUNTIME;
12
13 import java.lang.annotation.Documented;
14 import java.lang.annotation.Retention;
15 import java.lang.annotation.Target;
16
17 /**
18 * Identifies a persistent class that is not an {@link Entity} class or a
19 * {@link <a href="{@docRoot}/com/sleepycat/persist/model/Entity.html#simpleTypes">simple type</a>}.
20 *
21 * @author Mark Hayes
22 */
23 @Documented @Retention(RUNTIME) @Target(TYPE)
24 public @interface Persistent {
25
26 /**
27 * Identifies a new version of a class when an incompatible class change
28 * has been made.
29 *
30 * @see Entity#version
31 */
32 int version() default 0;
33
34 /**
35 * Specifies the class that is proxied by this {@link PersistentProxy}
36 * instance.
37 *
38 * @see PersistentProxy
39 */
40 Class proxyFor() default void.class;
41 }