01: /*
02: Copyright (C) 2007 Mobixess Inc. http://www.java-objects-database.com
03:
04: This file is part of the JODB (Java Objects Database) open source project.
05:
06: JODB is free software; you can redistribute it and/or modify it under
07: the terms of version 2 of the GNU General Public License as published
08: by the Free Software Foundation.
09:
10: JODB is distributed in the hope that it will be useful, but WITHOUT ANY
11: WARRANTY; without even the implied warranty of MERCHANTABILITY or
12: FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13: for more details.
14:
15: You should have received a copy of the GNU General Public License along
16: with this program; if not, write to the Free Software Foundation, Inc.,
17: 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18: */
19: package com.mobixess.jodb.core.io;
20:
21: import java.io.Serializable;
22:
23: import com.mobixess.jodb.core.IPersistentObjectStatistics;
24:
25: public class ObjectStatImpl implements IPersistentObjectStatistics,
26: Serializable {
27:
28: /**
29: *
30: */
31: private static final long serialVersionUID = 1L;
32: long _objectID = -1;
33: int _totalRecords = -1;
34: long _totalSize = -1;
35: long _bodySize = -1;
36: long _requiredSize = -1;
37: boolean _deleted;
38:
39: /*package*/ObjectStatImpl() {
40:
41: }
42:
43: public long getObjectID() {
44: return _objectID;
45: }
46:
47: public long getRequiredSize() {
48: return _requiredSize;
49: }
50:
51: public int getTotalRecords() {
52: return _totalRecords;
53: }
54:
55: public long getTotalSize() {
56: return _totalSize;
57: }
58:
59: public boolean isDeleted() {
60: return _deleted;
61: }
62:
63: public long getBodySize() {
64: return _bodySize;
65: }
66:
67: }
|