1 package org.tigris.scarab.om; 2 3 48 49 import org.apache.torque.TorqueException; 51 import org.apache.torque.om.ObjectKey; 52 53 import org.tigris.scarab.services.cache.ScarabCache; 55 56 65 public class ActivitySetPeer 66 extends org.tigris.scarab.om.BaseActivitySetPeer 67 { 68 private static final String TRANSACTION_PEER = 69 "ActivitySetPeer"; 70 private static final String RETRIEVE_BY_PK = 71 "retrieveByPK"; 72 73 78 public static ActivitySet retrieveByPK(ObjectKey pk) 79 throws TorqueException 80 { 81 ActivitySet result = null; 82 Object obj = ScarabCache.get(TRANSACTION_PEER, RETRIEVE_BY_PK, pk); 83 if (obj == null) 84 { 85 result = BaseActivitySetPeer.retrieveByPK(pk); 86 ScarabCache.put(result, TRANSACTION_PEER, RETRIEVE_BY_PK, pk); 87 } 88 else 89 { 90 result = (ActivitySet)obj; 91 } 92 return result; 93 } 94 } 95 96 | Popular Tags |