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.invoice.server.transfer;
018
019import com.echothree.model.control.invoice.server.control.InvoiceControl;
020import com.echothree.model.data.user.server.entity.UserVisit;
021import com.echothree.util.server.transfer.BaseTransferCaches;
022
023public class InvoiceTransferCaches
024        extends BaseTransferCaches {
025    
026    protected InvoiceControl invoiceControl;
027    
028    protected InvoiceLineUseTypeTransferCache invoiceLineUseTypeTransferCache;
029    protected InvoiceRoleTypeTransferCache invoiceRoleTypeTransferCache;
030    protected InvoiceRoleTransferCache invoiceRoleTransferCache;
031    protected InvoiceTypeTransferCache invoiceTypeTransferCache;
032    protected InvoiceTypeDescriptionTransferCache invoiceTypeDescriptionTransferCache;
033    protected InvoiceAliasTypeTransferCache invoiceAliasTypeTransferCache;
034    protected InvoiceAliasTypeDescriptionTransferCache invoiceAliasTypeDescriptionTransferCache;
035    protected InvoiceLineTypeTransferCache invoiceLineTypeTransferCache;
036    protected InvoiceLineTypeDescriptionTransferCache invoiceLineTypeDescriptionTransferCache;
037    protected InvoiceTransferCache invoiceTransferCache;
038    protected InvoiceAliasTransferCache invoiceAliasTransferCache;
039    protected InvoiceLineTransferCache invoiceLineTransferCache;
040    protected InvoiceLineItemTransferCache invoiceLineItemTransferCache;
041    protected InvoiceLineGlAccountTransferCache invoiceLineGlAccountTransferCache;
042    protected InvoiceTimeTypeTransferCache invoiceTimeTypeTransferCache;
043    protected InvoiceTimeTypeDescriptionTransferCache invoiceTimeTypeDescriptionTransferCache;
044    protected InvoiceTimeTransferCache invoiceTimeTransferCache;
045    
046    /** Creates a new instance of InvoiceTransferCaches */
047    public InvoiceTransferCaches(UserVisit userVisit, InvoiceControl invoiceControl) {
048        super(userVisit);
049        
050        this.invoiceControl = invoiceControl;
051    }
052    
053    public InvoiceLineUseTypeTransferCache getInvoiceLineUseTypeTransferCache() {
054        if(invoiceLineUseTypeTransferCache == null)
055            invoiceLineUseTypeTransferCache = new InvoiceLineUseTypeTransferCache(userVisit, invoiceControl);
056        
057        return invoiceLineUseTypeTransferCache;
058    }
059    
060    public InvoiceRoleTypeTransferCache getInvoiceRoleTypeTransferCache() {
061        if(invoiceRoleTypeTransferCache == null)
062            invoiceRoleTypeTransferCache = new InvoiceRoleTypeTransferCache(userVisit, invoiceControl);
063        
064        return invoiceRoleTypeTransferCache;
065    }
066    
067    public InvoiceRoleTransferCache getInvoiceRoleTransferCache() {
068        if(invoiceRoleTransferCache == null)
069            invoiceRoleTransferCache = new InvoiceRoleTransferCache(userVisit, invoiceControl);
070        
071        return invoiceRoleTransferCache;
072    }
073    
074    public InvoiceTypeTransferCache getInvoiceTypeTransferCache() {
075        if(invoiceTypeTransferCache == null)
076            invoiceTypeTransferCache = new InvoiceTypeTransferCache(userVisit, invoiceControl);
077        
078        return invoiceTypeTransferCache;
079    }
080    
081    public InvoiceTypeDescriptionTransferCache getInvoiceTypeDescriptionTransferCache() {
082        if(invoiceTypeDescriptionTransferCache == null)
083            invoiceTypeDescriptionTransferCache = new InvoiceTypeDescriptionTransferCache(userVisit, invoiceControl);
084        
085        return invoiceTypeDescriptionTransferCache;
086    }
087    
088    public InvoiceAliasTypeTransferCache getInvoiceAliasTypeTransferCache() {
089        if(invoiceAliasTypeTransferCache == null)
090            invoiceAliasTypeTransferCache = new InvoiceAliasTypeTransferCache(userVisit, invoiceControl);
091        
092        return invoiceAliasTypeTransferCache;
093    }
094    
095    public InvoiceAliasTypeDescriptionTransferCache getInvoiceAliasTypeDescriptionTransferCache() {
096        if(invoiceAliasTypeDescriptionTransferCache == null)
097            invoiceAliasTypeDescriptionTransferCache = new InvoiceAliasTypeDescriptionTransferCache(userVisit, invoiceControl);
098        
099        return invoiceAliasTypeDescriptionTransferCache;
100    }
101    
102    public InvoiceLineTypeTransferCache getInvoiceLineTypeTransferCache() {
103        if(invoiceLineTypeTransferCache == null)
104            invoiceLineTypeTransferCache = new InvoiceLineTypeTransferCache(userVisit, invoiceControl);
105        
106        return invoiceLineTypeTransferCache;
107    }
108    
109    public InvoiceLineTypeDescriptionTransferCache getInvoiceLineTypeDescriptionTransferCache() {
110        if(invoiceLineTypeDescriptionTransferCache == null)
111            invoiceLineTypeDescriptionTransferCache = new InvoiceLineTypeDescriptionTransferCache(userVisit, invoiceControl);
112        
113        return invoiceLineTypeDescriptionTransferCache;
114    }
115    
116    public InvoiceTransferCache getInvoiceTransferCache() {
117        if(invoiceTransferCache == null)
118            invoiceTransferCache = new InvoiceTransferCache(userVisit, invoiceControl);
119        
120        return invoiceTransferCache;
121    }
122    
123    public InvoiceAliasTransferCache getInvoiceAliasTransferCache() {
124        if(invoiceAliasTransferCache == null)
125            invoiceAliasTransferCache = new InvoiceAliasTransferCache(userVisit, invoiceControl);
126        
127        return invoiceAliasTransferCache;
128    }
129    
130    public InvoiceLineTransferCache getInvoiceLineTransferCache() {
131        if(invoiceLineTransferCache == null)
132            invoiceLineTransferCache = new InvoiceLineTransferCache(userVisit, invoiceControl);
133        
134        return invoiceLineTransferCache;
135    }
136    
137    public InvoiceLineGlAccountTransferCache getInvoiceLineGlAccountTransferCache() {
138        if(invoiceLineGlAccountTransferCache == null)
139            invoiceLineGlAccountTransferCache = new InvoiceLineGlAccountTransferCache(userVisit, invoiceControl);
140        
141        return invoiceLineGlAccountTransferCache;
142    }
143    
144    public InvoiceLineItemTransferCache getInvoiceLineItemTransferCache() {
145        if(invoiceLineItemTransferCache == null)
146            invoiceLineItemTransferCache = new InvoiceLineItemTransferCache(userVisit, invoiceControl);
147        
148        return invoiceLineItemTransferCache;
149    }
150    
151    public InvoiceTimeTypeTransferCache getInvoiceTimeTypeTransferCache() {
152        if(invoiceTimeTypeTransferCache == null)
153            invoiceTimeTypeTransferCache = new InvoiceTimeTypeTransferCache(userVisit, invoiceControl);
154
155        return invoiceTimeTypeTransferCache;
156    }
157
158    public InvoiceTimeTransferCache getInvoiceTimeTransferCache() {
159        if(invoiceTimeTransferCache == null)
160            invoiceTimeTransferCache = new InvoiceTimeTransferCache(userVisit, invoiceControl);
161
162        return invoiceTimeTransferCache;
163    }
164
165    public InvoiceTimeTypeDescriptionTransferCache getInvoiceTimeTypeDescriptionTransferCache() {
166        if(invoiceTimeTypeDescriptionTransferCache == null)
167            invoiceTimeTypeDescriptionTransferCache = new InvoiceTimeTypeDescriptionTransferCache(userVisit, invoiceControl);
168
169        return invoiceTimeTypeDescriptionTransferCache;
170    }
171
172}