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.order.server.transfer;
018
019import com.echothree.model.data.user.server.entity.UserVisit;
020import com.echothree.util.server.transfer.BaseTransferCaches;
021
022public class OrderTransferCaches
023        extends BaseTransferCaches {
024    
025    protected OrderTypeTransferCache orderTypeTransferCache;
026    protected OrderTypeDescriptionTransferCache orderTypeDescriptionTransferCache;
027    protected OrderTimeTypeTransferCache orderTimeTypeTransferCache;
028    protected OrderTimeTypeDescriptionTransferCache orderTimeTypeDescriptionTransferCache;
029    protected OrderPaymentPreferenceTransferCache orderPaymentPreferenceTransferCache;
030    protected OrderShipmentGroupTransferCache orderShipmentGroupTransferCache;
031    protected OrderTimeTransferCache orderTimeTransferCache;
032    protected OrderLineTimeTransferCache orderLineTimeTransferCache;
033    protected OrderAdjustmentTypeTransferCache orderAdjustmentTypeTransferCache;
034    protected OrderAdjustmentTypeDescriptionTransferCache orderAdjustmentTypeDescriptionTransferCache;
035    protected OrderLineAdjustmentTypeTransferCache orderLineAdjustmentTypeTransferCache;
036    protected OrderLineAdjustmentTypeDescriptionTransferCache orderLineAdjustmentTypeDescriptionTransferCache;
037    protected OrderRoleTypeTransferCache orderRoleTypeTransferCache;
038    protected OrderRoleTransferCache orderRoleTransferCache;
039    protected OrderAliasTypeTransferCache orderAliasTypeTransferCache;
040    protected OrderAliasTypeDescriptionTransferCache orderAliasTypeDescriptionTransferCache;
041    protected OrderAliasTransferCache orderAliasTransferCache;
042    protected OrderPriorityTransferCache orderPriorityTransferCache;
043    protected OrderPriorityDescriptionTransferCache orderPriorityDescriptionTransferCache;
044    
045    /** Creates a new instance of OrderTransferCaches */
046    public OrderTransferCaches(UserVisit userVisit) {
047        super(userVisit);
048    }
049    
050    public OrderTypeTransferCache getOrderTypeTransferCache() {
051        if(orderTypeTransferCache == null)
052            orderTypeTransferCache = new OrderTypeTransferCache(userVisit);
053        
054        return orderTypeTransferCache;
055    }
056    
057    public OrderTypeDescriptionTransferCache getOrderTypeDescriptionTransferCache() {
058        if(orderTypeDescriptionTransferCache == null)
059            orderTypeDescriptionTransferCache = new OrderTypeDescriptionTransferCache(userVisit);
060
061        return orderTypeDescriptionTransferCache;
062    }
063
064    public OrderTimeTypeTransferCache getOrderTimeTypeTransferCache() {
065        if(orderTimeTypeTransferCache == null)
066            orderTimeTypeTransferCache = new OrderTimeTypeTransferCache(userVisit);
067
068        return orderTimeTypeTransferCache;
069    }
070
071    public OrderTimeTypeDescriptionTransferCache getOrderTimeTypeDescriptionTransferCache() {
072        if(orderTimeTypeDescriptionTransferCache == null)
073            orderTimeTypeDescriptionTransferCache = new OrderTimeTypeDescriptionTransferCache(userVisit);
074
075        return orderTimeTypeDescriptionTransferCache;
076    }
077
078    public OrderPaymentPreferenceTransferCache getOrderPaymentPreferenceTransferCache() {
079        if(orderPaymentPreferenceTransferCache == null)
080            orderPaymentPreferenceTransferCache = new OrderPaymentPreferenceTransferCache(userVisit);
081
082        return orderPaymentPreferenceTransferCache;
083    }
084
085    public OrderShipmentGroupTransferCache getOrderShipmentGroupTransferCache() {
086        if(orderShipmentGroupTransferCache == null)
087            orderShipmentGroupTransferCache = new OrderShipmentGroupTransferCache(userVisit);
088
089        return orderShipmentGroupTransferCache;
090    }
091
092    public OrderTimeTransferCache getOrderTimeTransferCache() {
093        if(orderTimeTransferCache == null)
094            orderTimeTransferCache = new OrderTimeTransferCache(userVisit);
095
096        return orderTimeTransferCache;
097    }
098
099    public OrderLineTimeTransferCache getOrderLineTimeTransferCache() {
100        if(orderLineTimeTransferCache == null)
101            orderLineTimeTransferCache = new OrderLineTimeTransferCache(userVisit);
102
103        return orderLineTimeTransferCache;
104    }
105
106    public OrderAdjustmentTypeTransferCache getOrderAdjustmentTypeTransferCache() {
107        if(orderAdjustmentTypeTransferCache == null)
108            orderAdjustmentTypeTransferCache = new OrderAdjustmentTypeTransferCache(userVisit);
109
110        return orderAdjustmentTypeTransferCache;
111    }
112
113    public OrderAdjustmentTypeDescriptionTransferCache getOrderAdjustmentTypeDescriptionTransferCache() {
114        if(orderAdjustmentTypeDescriptionTransferCache == null)
115            orderAdjustmentTypeDescriptionTransferCache = new OrderAdjustmentTypeDescriptionTransferCache(userVisit);
116
117        return orderAdjustmentTypeDescriptionTransferCache;
118    }
119
120    public OrderLineAdjustmentTypeTransferCache getOrderLineAdjustmentTypeTransferCache() {
121        if(orderLineAdjustmentTypeTransferCache == null)
122            orderLineAdjustmentTypeTransferCache = new OrderLineAdjustmentTypeTransferCache(userVisit);
123
124        return orderLineAdjustmentTypeTransferCache;
125    }
126
127    public OrderLineAdjustmentTypeDescriptionTransferCache getOrderLineAdjustmentTypeDescriptionTransferCache() {
128        if(orderLineAdjustmentTypeDescriptionTransferCache == null)
129            orderLineAdjustmentTypeDescriptionTransferCache = new OrderLineAdjustmentTypeDescriptionTransferCache(userVisit);
130
131        return orderLineAdjustmentTypeDescriptionTransferCache;
132    }
133
134    public OrderRoleTypeTransferCache getOrderRoleTypeTransferCache() {
135        if(orderRoleTypeTransferCache == null)
136            orderRoleTypeTransferCache = new OrderRoleTypeTransferCache(userVisit);
137
138        return orderRoleTypeTransferCache;
139    }
140
141    public OrderRoleTransferCache getOrderRoleTransferCache() {
142        if(orderRoleTransferCache == null)
143            orderRoleTransferCache = new OrderRoleTransferCache(userVisit);
144
145        return orderRoleTransferCache;
146    }
147
148    public OrderAliasTypeTransferCache getOrderAliasTypeTransferCache() {
149        if(orderAliasTypeTransferCache == null)
150            orderAliasTypeTransferCache = new OrderAliasTypeTransferCache(userVisit);
151
152        return orderAliasTypeTransferCache;
153    }
154
155    public OrderAliasTypeDescriptionTransferCache getOrderAliasTypeDescriptionTransferCache() {
156        if(orderAliasTypeDescriptionTransferCache == null)
157            orderAliasTypeDescriptionTransferCache = new OrderAliasTypeDescriptionTransferCache(userVisit);
158
159        return orderAliasTypeDescriptionTransferCache;
160    }
161
162    public OrderAliasTransferCache getOrderAliasTransferCache() {
163        if(orderAliasTransferCache == null)
164            orderAliasTransferCache = new OrderAliasTransferCache(userVisit);
165
166        return orderAliasTransferCache;
167    }
168
169    public OrderPriorityTransferCache getOrderPriorityTransferCache() {
170        if(orderPriorityTransferCache == null)
171            orderPriorityTransferCache = new OrderPriorityTransferCache(userVisit);
172
173        return orderPriorityTransferCache;
174    }
175
176    public OrderPriorityDescriptionTransferCache getOrderPriorityDescriptionTransferCache() {
177        if(orderPriorityDescriptionTransferCache == null)
178            orderPriorityDescriptionTransferCache = new OrderPriorityDescriptionTransferCache(userVisit);
179
180        return orderPriorityDescriptionTransferCache;
181    }
182
183}