KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > persistence > impl > NullTransactionPersistor


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.objectserver.persistence.impl;
5
6 import com.tc.objectserver.gtx.GlobalTransactionDescriptor;
7 import com.tc.objectserver.persistence.api.PersistenceTransaction;
8 import com.tc.objectserver.persistence.api.TransactionPersistor;
9
10 import java.util.Collection JavaDoc;
11 import java.util.Collections JavaDoc;
12
13 public class NullTransactionPersistor implements TransactionPersistor {
14
15   public Collection JavaDoc loadAllGlobalTransactionDescriptors() {
16     return Collections.EMPTY_SET;
17   }
18
19   public void saveGlobalTransactionDescriptor(PersistenceTransaction tx, GlobalTransactionDescriptor gtx) {
20     return;
21   }
22
23   public void deleteAllByServerTransactionID(PersistenceTransaction tx, Collection JavaDoc toDelete) {
24     return;
25   }
26 }
27
Popular Tags