001: /* Copyright (C) 2004 - 2007 db4objects Inc. http://www.db4o.com
002:
003: This file is part of the db4o open source object database.
004:
005: db4o is free software; you can redistribute it and/or modify it under
006: the terms of version 2 of the GNU General Public License as published
007: by the Free Software Foundation and as clarified by db4objects' GPL
008: interpretation policy, available at
009: http://www.db4o.com/about/company/legalpolicies/gplinterpretation/
010: Alternatively you can write to db4objects, Inc., 1900 S Norfolk Street,
011: Suite 350, San Mateo, CA 94403, USA.
012:
013: db4o is distributed in the hope that it will be useful, but WITHOUT ANY
014: WARRANTY; without even the implied warranty of MERCHANTABILITY or
015: FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
016: for more details.
017:
018: You should have received a copy of the GNU General Public License along
019: with this program; if not, write to the Free Software Foundation, Inc.,
020: 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
021: package com.db4o.internal;
022:
023: import com.db4o.ext.Db4oDatabase;
024:
025: /**
026: * @exclude
027: */
028: public class SystemData {
029:
030: private int _classCollectionID;
031:
032: private int _converterVersion;
033:
034: private int _freespaceAddress;
035:
036: private int _freespaceID;
037:
038: private byte _freespaceSystem;
039:
040: private Db4oDatabase _identity;
041:
042: private long _lastTimeStampID;
043:
044: private byte _stringEncoding;
045:
046: private int _uuidIndexId;
047:
048: public int classCollectionID() {
049: return _classCollectionID;
050: }
051:
052: public void classCollectionID(int id) {
053: _classCollectionID = id;
054: }
055:
056: public int converterVersion() {
057: return _converterVersion;
058: }
059:
060: public void converterVersion(int version) {
061: _converterVersion = version;
062: }
063:
064: public int freespaceAddress() {
065: return _freespaceAddress;
066: }
067:
068: public void freespaceAddress(int address) {
069: _freespaceAddress = address;
070: }
071:
072: public int freespaceID() {
073: return _freespaceID;
074: }
075:
076: public void freespaceID(int id) {
077: _freespaceID = id;
078: }
079:
080: public byte freespaceSystem() {
081: return _freespaceSystem;
082: }
083:
084: public void freespaceSystem(byte freespaceSystemtype) {
085: _freespaceSystem = freespaceSystemtype;
086: }
087:
088: public Db4oDatabase identity() {
089: return _identity;
090: }
091:
092: public void identity(Db4oDatabase identityObject) {
093: _identity = identityObject;
094: }
095:
096: public long lastTimeStampID() {
097: return _lastTimeStampID;
098: }
099:
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: }
|