01: ///////////////////////////////////////////////////////////////////////////////
02: //
03: // Copyright (C) 2003-@year@ by Thomas M. Hazel, MyOODB (www.myoodb.org)
04: //
05: // All Rights Reserved
06: //
07: // This program is free software; you can redistribute it and/or modify
08: // it under the terms of the GNU General Public License and GNU Library
09: // General Public License as published by the Free Software Foundation;
10: // either version 2, or (at your option) any later version.
11: //
12: // This program is distributed in the hope that it will be useful,
13: // but WITHOUT ANY WARRANTY; without even the implied warranty of
14: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: // GNU General Public License and GNU Library General Public License
16: // for more details.
17: //
18: // You should have received a copy of the GNU General Public License
19: // and GNU Library General Public License along with this program; if
20: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
21: // MA 02139, USA.
22: //
23: ///////////////////////////////////////////////////////////////////////////////
24: package org.myoodb;
25:
26: import java.lang.annotation.*;
27:
28: @Target({ElementType.METHOD})
29: @Retention(RetentionPolicy.RUNTIME)
30: public @interface MyOodbAccess {
31: public final static int NONE = 0;
32:
33: // method invocation
34: public final static int ABANDON = 1;
35: public final static int TUNNEL = 2;
36: public final static int REALTIME = 3;
37:
38: // database transaction
39: public final static int DIRTY_READ = 4;
40: public final static int READ = 5;
41: public final static int WRITE = 6;
42: public final static int MIGHTY_WRITE = 7;
43:
44: String value();
45: }
|