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.shipment.server.transfer;
018
019import com.echothree.model.data.user.server.entity.UserVisit;
020import com.echothree.util.server.transfer.BaseTransferCaches;
021
022public class ShipmentTransferCaches
023        extends BaseTransferCaches {
024    
025    protected ShipmentTypeTransferCache shipmentTypeTransferCache;
026    protected ShipmentTypeDescriptionTransferCache shipmentTypeDescriptionTransferCache;
027    protected ShipmentTypeShippingMethodTransferCache shipmentTypeShippingMethodTransferCache;
028    protected ShipmentAliasTypeTransferCache shipmentAliasTypeTransferCache;
029    protected ShipmentAliasTypeDescriptionTransferCache shipmentAliasTypeDescriptionTransferCache;
030    protected ShipmentAliasTransferCache shipmentAliasTransferCache;
031    protected ShipmentTimeTypeTransferCache shipmentTimeTypeTransferCache;
032    protected ShipmentTimeTypeDescriptionTransferCache shipmentTimeTypeDescriptionTransferCache;
033    protected ShipmentTimeTransferCache shipmentTimeTransferCache;
034    protected FreeOnBoardTransferCache freeOnBoardTransferCache;
035    protected FreeOnBoardDescriptionTransferCache freeOnBoardDescriptionTransferCache;
036    protected PartyFreeOnBoardTransferCache partyFreeOnBoardTransferCache;
037
038    /** Creates a new instance of ShipmentTransferCaches */
039    public ShipmentTransferCaches(UserVisit userVisit) {
040        super(userVisit);
041    }
042    
043    public ShipmentTypeTransferCache getShipmentTypeTransferCache() {
044        if(shipmentTypeTransferCache == null)
045            shipmentTypeTransferCache = new ShipmentTypeTransferCache(userVisit);
046        
047        return shipmentTypeTransferCache;
048    }
049    
050    public ShipmentTypeDescriptionTransferCache getShipmentTypeDescriptionTransferCache() {
051        if(shipmentTypeDescriptionTransferCache == null)
052            shipmentTypeDescriptionTransferCache = new ShipmentTypeDescriptionTransferCache(userVisit);
053
054        return shipmentTypeDescriptionTransferCache;
055    }
056
057    public ShipmentTypeShippingMethodTransferCache getShipmentTypeShippingMethodTransferCache() {
058        if(shipmentTypeShippingMethodTransferCache == null)
059            shipmentTypeShippingMethodTransferCache = new ShipmentTypeShippingMethodTransferCache(userVisit);
060
061        return shipmentTypeShippingMethodTransferCache;
062    }
063
064    public ShipmentAliasTypeTransferCache getShipmentAliasTypeTransferCache() {
065        if(shipmentAliasTypeTransferCache == null)
066            shipmentAliasTypeTransferCache = new ShipmentAliasTypeTransferCache(userVisit);
067        
068        return shipmentAliasTypeTransferCache;
069    }
070    
071    public ShipmentAliasTypeDescriptionTransferCache getShipmentAliasTypeDescriptionTransferCache() {
072        if(shipmentAliasTypeDescriptionTransferCache == null)
073            shipmentAliasTypeDescriptionTransferCache = new ShipmentAliasTypeDescriptionTransferCache(userVisit);
074        
075        return shipmentAliasTypeDescriptionTransferCache;
076    }
077    
078    public ShipmentAliasTransferCache getShipmentAliasTransferCache() {
079        if(shipmentAliasTransferCache == null)
080            shipmentAliasTransferCache = new ShipmentAliasTransferCache(userVisit);
081        
082        return shipmentAliasTransferCache;
083    }
084    
085    public ShipmentTimeTypeTransferCache getShipmentTimeTypeTransferCache() {
086        if(shipmentTimeTypeTransferCache == null)
087            shipmentTimeTypeTransferCache = new ShipmentTimeTypeTransferCache(userVisit);
088
089        return shipmentTimeTypeTransferCache;
090    }
091
092    public ShipmentTimeTransferCache getShipmentTimeTransferCache() {
093        if(shipmentTimeTransferCache == null)
094            shipmentTimeTransferCache = new ShipmentTimeTransferCache(userVisit);
095
096        return shipmentTimeTransferCache;
097    }
098
099    public ShipmentTimeTypeDescriptionTransferCache getShipmentTimeTypeDescriptionTransferCache() {
100        if(shipmentTimeTypeDescriptionTransferCache == null)
101            shipmentTimeTypeDescriptionTransferCache = new ShipmentTimeTypeDescriptionTransferCache(userVisit);
102
103        return shipmentTimeTypeDescriptionTransferCache;
104    }
105
106    public FreeOnBoardTransferCache getFreeOnBoardTransferCache() {
107        if(freeOnBoardTransferCache == null)
108            freeOnBoardTransferCache = new FreeOnBoardTransferCache(userVisit);
109
110        return freeOnBoardTransferCache;
111    }
112
113    public FreeOnBoardDescriptionTransferCache getFreeOnBoardDescriptionTransferCache() {
114        if(freeOnBoardDescriptionTransferCache == null)
115            freeOnBoardDescriptionTransferCache = new FreeOnBoardDescriptionTransferCache(userVisit);
116
117        return freeOnBoardDescriptionTransferCache;
118    }
119
120    public PartyFreeOnBoardTransferCache getPartyFreeOnBoardTransferCache() {
121        if(partyFreeOnBoardTransferCache == null)
122            partyFreeOnBoardTransferCache = new PartyFreeOnBoardTransferCache(userVisit);
123
124        return partyFreeOnBoardTransferCache;
125    }
126
127}