1 16 17 package org.springframework.orm.jdo; 18 19 import javax.jdo.PersistenceManager; 20 21 import org.springframework.transaction.support.ResourceHolderSupport; 22 import org.springframework.util.Assert; 23 24 36 public class PersistenceManagerHolder extends ResourceHolderSupport { 37 38 private final PersistenceManager persistenceManager; 39 40 41 45 public PersistenceManagerHolder(PersistenceManager persistenceManager) { 46 Assert.notNull(persistenceManager, "PersistenceManager must not be null"); 47 this.persistenceManager = persistenceManager; 48 } 49 50 53 public PersistenceManager getPersistenceManager() { 54 return persistenceManager; 55 } 56 57 } 58 | Popular Tags |