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.inventory.server.transfer; 018 019import com.echothree.model.control.inventory.server.control.InventoryControl; 020import com.echothree.model.data.user.server.entity.UserVisit; 021import com.echothree.util.server.transfer.BaseTransferCaches; 022 023public class InventoryTransferCaches 024 extends BaseTransferCaches { 025 026 protected InventoryControl inventoryControl; 027 028 protected InventoryLocationGroupTransferCache inventoryLocationGroupTransferCache; 029 protected InventoryLocationGroupDescriptionTransferCache inventoryLocationGroupDescriptionTransferCache; 030 protected InventoryConditionTransferCache inventoryConditionTransferCache; 031 protected InventoryConditionDescriptionTransferCache inventoryConditionDescriptionTransferCache; 032 protected InventoryLocationGroupCapacityTransferCache inventoryLocationGroupCapacityTransferCache; 033 protected InventoryLocationGroupVolumeTransferCache inventoryLocationGroupVolumeTransferCache; 034 protected PartyInventoryLevelTransferCache partyInventoryLevelTransferCache; 035 protected InventoryConditionUseTransferCache inventoryKindUseTransferCache; 036 protected InventoryConditionUseTypeTransferCache inventoryConditionUseTypeTransferCache; 037 protected InventoryConditionGlAccountTransferCache inventoryConditionGlAccountTransferCache; 038 protected LotAliasTypeTransferCache lotAliasTypeTransferCache; 039 protected LotAliasTypeDescriptionTransferCache lotAliasTypeDescriptionTransferCache; 040 protected LotAliasTransferCache lotAliasTransferCache; 041 protected LotTimeTypeTransferCache lotTimeTypeTransferCache; 042 protected LotTimeTypeDescriptionTransferCache lotTimeTypeDescriptionTransferCache; 043 protected LotTimeTransferCache lotTimeTransferCache; 044 protected AllocationPriorityTransferCache allocationPriorityTransferCache; 045 protected AllocationPriorityDescriptionTransferCache allocationPriorityDescriptionTransferCache; 046 protected LotTransferCache lotTransferCache; 047 048 /** Creates a new instance of InventoryTransferCaches */ 049 public InventoryTransferCaches(UserVisit userVisit, InventoryControl inventoryControl) { 050 super(userVisit); 051 052 this.inventoryControl = inventoryControl; 053 } 054 055 public InventoryLocationGroupTransferCache getInventoryLocationGroupTransferCache() { 056 if(inventoryLocationGroupTransferCache == null) 057 inventoryLocationGroupTransferCache = new InventoryLocationGroupTransferCache(userVisit, inventoryControl); 058 059 return inventoryLocationGroupTransferCache; 060 } 061 062 public InventoryLocationGroupDescriptionTransferCache getInventoryLocationGroupDescriptionTransferCache() { 063 if(inventoryLocationGroupDescriptionTransferCache == null) 064 inventoryLocationGroupDescriptionTransferCache = new InventoryLocationGroupDescriptionTransferCache(userVisit, inventoryControl); 065 066 return inventoryLocationGroupDescriptionTransferCache; 067 } 068 069 public InventoryConditionTransferCache getInventoryConditionTransferCache() { 070 if(inventoryConditionTransferCache == null) 071 inventoryConditionTransferCache = new InventoryConditionTransferCache(userVisit, inventoryControl); 072 073 return inventoryConditionTransferCache; 074 } 075 076 public InventoryConditionDescriptionTransferCache getInventoryConditionDescriptionTransferCache() { 077 if(inventoryConditionDescriptionTransferCache == null) 078 inventoryConditionDescriptionTransferCache = new InventoryConditionDescriptionTransferCache(userVisit, inventoryControl); 079 080 return inventoryConditionDescriptionTransferCache; 081 } 082 083 public InventoryLocationGroupCapacityTransferCache getInventoryLocationGroupCapacityTransferCache() { 084 if(inventoryLocationGroupCapacityTransferCache == null) 085 inventoryLocationGroupCapacityTransferCache = new InventoryLocationGroupCapacityTransferCache(userVisit, inventoryControl); 086 087 return inventoryLocationGroupCapacityTransferCache; 088 } 089 090 public InventoryLocationGroupVolumeTransferCache getInventoryLocationGroupVolumeTransferCache() { 091 if(inventoryLocationGroupVolumeTransferCache == null) 092 inventoryLocationGroupVolumeTransferCache = new InventoryLocationGroupVolumeTransferCache(userVisit, inventoryControl); 093 094 return inventoryLocationGroupVolumeTransferCache; 095 } 096 097 public PartyInventoryLevelTransferCache getPartyInventoryLevelTransferCache() { 098 if(partyInventoryLevelTransferCache == null) 099 partyInventoryLevelTransferCache = new PartyInventoryLevelTransferCache(userVisit, inventoryControl); 100 101 return partyInventoryLevelTransferCache; 102 } 103 104 public InventoryConditionUseTransferCache getInventoryConditionUseTransferCache() { 105 if(inventoryKindUseTransferCache == null) 106 inventoryKindUseTransferCache = new InventoryConditionUseTransferCache(userVisit, inventoryControl); 107 108 return inventoryKindUseTransferCache; 109 } 110 111 public InventoryConditionUseTypeTransferCache getInventoryConditionUseTypeTransferCache() { 112 if(inventoryConditionUseTypeTransferCache == null) 113 inventoryConditionUseTypeTransferCache = new InventoryConditionUseTypeTransferCache(userVisit, inventoryControl); 114 115 return inventoryConditionUseTypeTransferCache; 116 } 117 118 public InventoryConditionGlAccountTransferCache getInventoryConditionGlAccountTransferCache() { 119 if(inventoryConditionGlAccountTransferCache == null) 120 inventoryConditionGlAccountTransferCache = new InventoryConditionGlAccountTransferCache(userVisit, inventoryControl); 121 122 return inventoryConditionGlAccountTransferCache; 123 } 124 125 public LotAliasTypeTransferCache getLotAliasTypeTransferCache() { 126 if(lotAliasTypeTransferCache == null) 127 lotAliasTypeTransferCache = new LotAliasTypeTransferCache(userVisit, inventoryControl); 128 129 return lotAliasTypeTransferCache; 130 } 131 132 public LotAliasTypeDescriptionTransferCache getLotAliasTypeDescriptionTransferCache() { 133 if(lotAliasTypeDescriptionTransferCache == null) 134 lotAliasTypeDescriptionTransferCache = new LotAliasTypeDescriptionTransferCache(userVisit, inventoryControl); 135 136 return lotAliasTypeDescriptionTransferCache; 137 } 138 139 public LotAliasTransferCache getLotAliasTransferCache() { 140 if(lotAliasTransferCache == null) 141 lotAliasTransferCache = new LotAliasTransferCache(userVisit, inventoryControl); 142 143 return lotAliasTransferCache; 144 } 145 146 public LotTimeTypeTransferCache getLotTimeTypeTransferCache() { 147 if(lotTimeTypeTransferCache == null) 148 lotTimeTypeTransferCache = new LotTimeTypeTransferCache(userVisit, inventoryControl); 149 150 return lotTimeTypeTransferCache; 151 } 152 153 public LotTimeTransferCache getLotTimeTransferCache() { 154 if(lotTimeTransferCache == null) 155 lotTimeTransferCache = new LotTimeTransferCache(userVisit, inventoryControl); 156 157 return lotTimeTransferCache; 158 } 159 160 public LotTimeTypeDescriptionTransferCache getLotTimeTypeDescriptionTransferCache() { 161 if(lotTimeTypeDescriptionTransferCache == null) 162 lotTimeTypeDescriptionTransferCache = new LotTimeTypeDescriptionTransferCache(userVisit, inventoryControl); 163 164 return lotTimeTypeDescriptionTransferCache; 165 } 166 167 public AllocationPriorityTransferCache getAllocationPriorityTransferCache() { 168 if(allocationPriorityTransferCache == null) 169 allocationPriorityTransferCache = new AllocationPriorityTransferCache(userVisit, inventoryControl); 170 171 return allocationPriorityTransferCache; 172 } 173 174 public AllocationPriorityDescriptionTransferCache getAllocationPriorityDescriptionTransferCache() { 175 if(allocationPriorityDescriptionTransferCache == null) 176 allocationPriorityDescriptionTransferCache = new AllocationPriorityDescriptionTransferCache(userVisit, inventoryControl); 177 178 return allocationPriorityDescriptionTransferCache; 179 } 180 181 public LotTransferCache getLotTransferCache() { 182 if(lotTransferCache == null) 183 lotTransferCache = new LotTransferCache(userVisit, inventoryControl); 184 185 return lotTransferCache; 186 } 187 188}