01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.persistence.impl;
05:
06: import com.tc.objectserver.gtx.GlobalTransactionDescriptor;
07: import com.tc.objectserver.persistence.api.PersistenceTransaction;
08: import com.tc.objectserver.persistence.api.TransactionPersistor;
09:
10: import java.util.Collection;
11: import java.util.Collections;
12:
13: public class NullTransactionPersistor implements TransactionPersistor {
14:
15: public Collection loadAllGlobalTransactionDescriptors() {
16: return Collections.EMPTY_SET;
17: }
18:
19: public void saveGlobalTransactionDescriptor(
20: PersistenceTransaction tx, GlobalTransactionDescriptor gtx) {
21: return;
22: }
23:
24: public void deleteAllGlobalTransactionDescriptors(
25: PersistenceTransaction tx, Collection toDelete) {
26: return;
27: }
28: }
|