01: /**
02: * Copyright (C) 2006, 2007 David Bulmore, Software Sensation Inc.
03: * All Rights Reserved.
04: *
05: * This file is part of JPersist.
06: *
07: * JPersist is free software; you can redistribute it and/or modify it under
08: * the terms of the GNU General Public License (Version 2) as published by
09: * the Free Software Foundation.
10: *
11: * JPersist is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14: * for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with JPersist; if not, write to the Free Software Foundation,
18: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19: */package jpersist.annotations;
20:
21: import java.lang.annotation.Target;
22: import java.lang.annotation.ElementType;
23: import java.lang.annotation.Retention;
24: import java.lang.annotation.RetentionPolicy;
25:
26: /**
27: * This annotation can be used if a class instance is to be used for a global update
28: * (i.e. no where clause). If an object is used for an update and no where clause
29: * is provided and/or generatable (persistent object), then the object must have this
30: * defined or an exception will be thrown.
31: *
32: * <p>This annotation can be used in place of the interface equivalent
33: */
34:
35: @Target(ElementType.TYPE)
36: @Retention(RetentionPolicy.RUNTIME)
37: public @interface GlobalUpdate {
38: }
|