001: /**
002: * Copyright (C) 2006 NetMind Consulting Bt.
003: *
004: * This library is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License as published by the Free Software Foundation; either
007: * version 3 of the License, or (at your option) any later version.
008: *
009: * This library is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public
015: * License along with this library; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
017: */package hu.netmind.persistence;
018:
019: import hu.netmind.persistence.node.NodeManager;
020:
021: /**
022: * This is a context of a store instance. All managers and relevant modules
023: * receive this object as the context to work on.
024: * @author Brautigam Robert
025: * @version Revision: $Revision$
026: */
027: public class StoreContext {
028: private Database database;
029: private ObjectTracker objectTracker;
030: private ClassTracker classTracker;
031: private TransactionTracker transactionTracker;
032: private ResultsCache cache;
033: private NodeManager nodeManager;
034: private SerialTracker serialTracker;
035: private TypeHandlerTracker typeHandlerTracker;
036: private LockTracker lockTracker;
037: private EventDispatcher eventDispatcher;
038: private Store store;
039:
040: public Database getDatabase() {
041: return database;
042: }
043:
044: public void setDatabase(Database database) {
045: this .database = database;
046: }
047:
048: public ObjectTracker getObjectTracker() {
049: return objectTracker;
050: }
051:
052: public void setObjectTracker(ObjectTracker objectTracker) {
053: this .objectTracker = objectTracker;
054: }
055:
056: public ClassTracker getClassTracker() {
057: return classTracker;
058: }
059:
060: public void setClassTracker(ClassTracker classTracker) {
061: this .classTracker = classTracker;
062: }
063:
064: public TransactionTracker getTransactionTracker() {
065: return transactionTracker;
066: }
067:
068: public void setTransactionTracker(
069: TransactionTracker transactionTracker) {
070: this .transactionTracker = transactionTracker;
071: }
072:
073: public ResultsCache getCache() {
074: return cache;
075: }
076:
077: public void setCache(ResultsCache cache) {
078: this .cache = cache;
079: }
080:
081: public Store getStore() {
082: return store;
083: }
084:
085: public void setStore(Store store) {
086: this .store = store;
087: }
088:
089: public NodeManager getNodeManager() {
090: return nodeManager;
091: }
092:
093: public void setNodeManager(NodeManager nodeManager) {
094: this .nodeManager = nodeManager;
095: }
096:
097: public SerialTracker getSerialTracker() {
098: return serialTracker;
099: }
100:
101: public void setSerialTracker(SerialTracker serialTracker) {
102: this .serialTracker = serialTracker;
103: }
104:
105: public TypeHandlerTracker getTypeHandlerTracker() {
106: return typeHandlerTracker;
107: }
108:
109: public void setTypeHandlerTracker(
110: TypeHandlerTracker typeHandlerTracker) {
111: this .typeHandlerTracker = typeHandlerTracker;
112: }
113:
114: public LockTracker getLockTracker() {
115: return lockTracker;
116: }
117:
118: public void setLockTracker(LockTracker lockTracker) {
119: this .lockTracker = lockTracker;
120: }
121:
122: public EventDispatcher getEventDispatcher() {
123: return eventDispatcher;
124: }
125:
126: public void setEventDispatcher(EventDispatcher eventDispatcher) {
127: this.eventDispatcher = eventDispatcher;
128: }
129: }
|