1 package org.tigris.scarab.om; 2 3 4 import org.apache.torque.TorqueException; 6 import org.apache.torque.om.ObjectKey; 7 8 import org.tigris.scarab.services.cache.ScarabCache; 10 11 16 public class AttributeGroupPeer 17 extends org.tigris.scarab.om.BaseAttributeGroupPeer 18 { 19 private static final String ATTRIBUTEGROUP_PEER = 20 "AttributeGroupPeer"; 21 private static final String RETRIEVE_BY_PK = 22 "retrieveByPK"; 23 24 29 public static AttributeGroup retrieveByPK(ObjectKey pk) 30 throws TorqueException 31 { 32 AttributeGroup result = null; 33 Object obj = ScarabCache.get(ATTRIBUTEGROUP_PEER, RETRIEVE_BY_PK, pk); 34 if (obj == null) 35 { 36 result = BaseAttributeGroupPeer.retrieveByPK(pk); 37 ScarabCache.put(result, ATTRIBUTEGROUP_PEER, RETRIEVE_BY_PK, pk); 38 } 39 else 40 { 41 result = (AttributeGroup)obj; 42 } 43 return result; 44 } 45 } 46 | Popular Tags |