KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > db4o > inside > SystemData


1 /* Copyright (C) 2004 - 2006 db4objects Inc. http://www.db4o.com
2
3 This file is part of the db4o open source object database.
4
5 db4o is free software; you can redistribute it and/or modify it under
6 the terms of version 2 of the GNU General Public License as published
7 by the Free Software Foundation and as clarified by db4objects' GPL
8 interpretation policy, available at
9 http://www.db4o.com/about/company/legalpolicies/gplinterpretation/
10 Alternatively you can write to db4objects, Inc., 1900 S Norfolk Street,
11 Suite 350, San Mateo, CA 94403, USA.
12
13 db4o is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */

21 package com.db4o.inside;
22
23 import com.db4o.ext.Db4oDatabase;
24
25 /**
26  * @exclude
27  */

28 public class SystemData {
29     
30     private int _classCollectionID;
31     
32     private int _converterVersion;
33     
34     private int _freespaceAddress;
35     
36     private int _freespaceID;
37     
38     private byte _freespaceSystem;
39     
40     private Db4oDatabase _identity;
41     
42     private long _lastTimeStampID;
43     
44     private byte _stringEncoding;
45
46     private int _uuidIndexId;
47     
48     public int classCollectionID() {
49         return _classCollectionID;
50     }
51     
52     public void classCollectionID(int id) {
53         _classCollectionID = id;
54     }
55     
56     public int converterVersion(){
57         return _converterVersion;
58     }
59
60     public void converterVersion(int version){
61         _converterVersion = version;
62     }
63     
64     public int freespaceAddress(){
65         return _freespaceAddress;
66     }
67     
68     public void freespaceAddress(int address){
69         _freespaceAddress = address;
70     }
71
72     public int freespaceID() {
73         return _freespaceID;
74     }
75
76     public void freespaceID(int id) {
77         _freespaceID = id;
78     }
79     
80     public byte freespaceSystem() {
81         return _freespaceSystem;
82     }
83     
84     public void freespaceSystem(byte freespaceSystemtype){
85         _freespaceSystem = freespaceSystemtype;
86     }
87     
88     public Db4oDatabase identity(){
89         return _identity;
90     }
91     
92     public void identity(Db4oDatabase identityObject) {
93         _identity = identityObject;
94     }
95
96     public long lastTimeStampID(){
97         return _lastTimeStampID;
98     }
99     
100     public void lastTimeStampID(long id) {
101         _lastTimeStampID = id;
102     }
103     
104     public byte stringEncoding(){
105         return _stringEncoding;
106     }
107     
108     public void stringEncoding(byte encodingByte){
109         _stringEncoding = encodingByte;
110     }
111     
112     public int uuidIndexId(){
113         return _uuidIndexId;
114     }
115     
116     public void uuidIndexId(int id){
117         _uuidIndexId = id;
118     }
119     
120 }
121
Popular Tags