001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.model.control.offer.server.transfer; 018 019import com.echothree.model.data.user.server.entity.UserVisit; 020import com.echothree.util.server.transfer.BaseTransferCaches; 021 022public class OfferTransferCaches 023 extends BaseTransferCaches { 024 025 protected OfferTransferCache offerTransferCache; 026 protected OfferDescriptionTransferCache offerDescriptionTransferCache; 027 protected OfferUseTransferCache offerUseTransferCache; 028 protected SourceTransferCache sourceTransferCache; 029 protected OfferItemPriceTransferCache offerItemPriceTransferCache; 030 protected OfferItemTransferCache offerItemTransferCache; 031 protected OfferNameElementDescriptionTransferCache offerNameElementDescriptionTransferCache; 032 protected OfferNameElementTransferCache offerNameElementTransferCache; 033 protected UseNameElementDescriptionTransferCache useNameElementDescriptionTransferCache; 034 protected UseNameElementTransferCache useNameElementTransferCache; 035 protected UseDescriptionTransferCache useDescriptionTransferCache; 036 protected UseTransferCache useTransferCache; 037 protected UseTypeDescriptionTransferCache useTypeDescriptionTransferCache; 038 protected UseTypeTransferCache useTypeTransferCache; 039 protected OfferCustomerTypeTransferCache offerCustomerTypeTransferCache; 040 protected OfferChainTypeTransferCache offerChainTypeTransferCache; 041 042 /** Creates a new instance of OfferTransferCaches */ 043 public OfferTransferCaches(UserVisit userVisit) { 044 super(userVisit); 045 } 046 047 public OfferTransferCache getOfferTransferCache() { 048 if(offerTransferCache == null) 049 offerTransferCache = new OfferTransferCache(userVisit); 050 051 return offerTransferCache; 052 } 053 054 public OfferDescriptionTransferCache getOfferDescriptionTransferCache() { 055 if(offerDescriptionTransferCache == null) 056 offerDescriptionTransferCache = new OfferDescriptionTransferCache(userVisit); 057 058 return offerDescriptionTransferCache; 059 } 060 061 public OfferUseTransferCache getOfferUseTransferCache() { 062 if(offerUseTransferCache == null) 063 offerUseTransferCache = new OfferUseTransferCache(userVisit); 064 065 return offerUseTransferCache; 066 } 067 068 public SourceTransferCache getSourceTransferCache() { 069 if(sourceTransferCache == null) 070 sourceTransferCache = new SourceTransferCache(userVisit); 071 072 return sourceTransferCache; 073 } 074 075 public OfferItemPriceTransferCache getOfferItemPriceTransferCache() { 076 if(offerItemPriceTransferCache == null) 077 offerItemPriceTransferCache = new OfferItemPriceTransferCache(userVisit); 078 079 return offerItemPriceTransferCache; 080 } 081 082 public OfferItemTransferCache getOfferItemTransferCache() { 083 if(offerItemTransferCache == null) 084 offerItemTransferCache = new OfferItemTransferCache(userVisit); 085 086 return offerItemTransferCache; 087 } 088 089 public OfferNameElementDescriptionTransferCache getOfferNameElementDescriptionTransferCache() { 090 if(offerNameElementDescriptionTransferCache == null) 091 offerNameElementDescriptionTransferCache = new OfferNameElementDescriptionTransferCache(userVisit); 092 093 return offerNameElementDescriptionTransferCache; 094 } 095 096 public OfferNameElementTransferCache getOfferNameElementTransferCache() { 097 if(offerNameElementTransferCache == null) 098 offerNameElementTransferCache = new OfferNameElementTransferCache(userVisit); 099 100 return offerNameElementTransferCache; 101 } 102 103 public UseNameElementDescriptionTransferCache getUseNameElementDescriptionTransferCache() { 104 if(useNameElementDescriptionTransferCache == null) 105 useNameElementDescriptionTransferCache = new UseNameElementDescriptionTransferCache(userVisit); 106 107 return useNameElementDescriptionTransferCache; 108 } 109 110 public UseNameElementTransferCache getUseNameElementTransferCache() { 111 if(useNameElementTransferCache == null) 112 useNameElementTransferCache = new UseNameElementTransferCache(userVisit); 113 114 return useNameElementTransferCache; 115 } 116 117 public UseDescriptionTransferCache getUseDescriptionTransferCache() { 118 if(useDescriptionTransferCache == null) 119 useDescriptionTransferCache = new UseDescriptionTransferCache(userVisit); 120 121 return useDescriptionTransferCache; 122 } 123 124 public UseTransferCache getUseTransferCache() { 125 if(useTransferCache == null) 126 useTransferCache = new UseTransferCache(userVisit); 127 128 return useTransferCache; 129 } 130 131 public UseTypeDescriptionTransferCache getUseTypeDescriptionTransferCache() { 132 if(useTypeDescriptionTransferCache == null) 133 useTypeDescriptionTransferCache = new UseTypeDescriptionTransferCache(userVisit); 134 135 return useTypeDescriptionTransferCache; 136 } 137 138 public UseTypeTransferCache getUseTypeTransferCache() { 139 if(useTypeTransferCache == null) 140 useTypeTransferCache = new UseTypeTransferCache(userVisit); 141 142 return useTypeTransferCache; 143 } 144 145 public OfferCustomerTypeTransferCache getOfferCustomerTypeTransferCache() { 146 if(offerCustomerTypeTransferCache == null) 147 offerCustomerTypeTransferCache = new OfferCustomerTypeTransferCache(userVisit); 148 149 return offerCustomerTypeTransferCache; 150 } 151 152 public OfferChainTypeTransferCache getOfferChainTypeTransferCache() { 153 if(offerChainTypeTransferCache == null) 154 offerChainTypeTransferCache = new OfferChainTypeTransferCache(userVisit); 155 156 return offerChainTypeTransferCache; 157 } 158 159}