/**
   * Caches the threat_subcategories_lkp in the entity cache if it is enabled.
   *
   * @param threat_subcategories_lkp the threat_subcategories_lkp
   */
  public void cacheResult(threat_subcategories_lkp threat_subcategories_lkp) {
    EntityCacheUtil.putResult(
        threat_subcategories_lkpModelImpl.ENTITY_CACHE_ENABLED,
        threat_subcategories_lkpImpl.class,
        threat_subcategories_lkp.getPrimaryKey(),
        threat_subcategories_lkp);

    threat_subcategories_lkp.resetOriginalValues();
  }
 /**
  * Caches the threat_subcategories_lkps in the entity cache if it is enabled.
  *
  * @param threat_subcategories_lkps the threat_subcategories_lkps
  */
 public void cacheResult(List<threat_subcategories_lkp> threat_subcategories_lkps) {
   for (threat_subcategories_lkp threat_subcategories_lkp : threat_subcategories_lkps) {
     if (EntityCacheUtil.getResult(
             threat_subcategories_lkpModelImpl.ENTITY_CACHE_ENABLED,
             threat_subcategories_lkpImpl.class,
             threat_subcategories_lkp.getPrimaryKey())
         == null) {
       cacheResult(threat_subcategories_lkp);
     } else {
       threat_subcategories_lkp.resetOriginalValues();
     }
   }
 }