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.financial.server.transfer;
018
019import com.echothree.model.control.financial.server.control.FinancialControl;
020import com.echothree.model.data.user.server.entity.UserVisit;
021import com.echothree.util.server.transfer.BaseTransferCaches;
022
023public class FinancialTransferCaches
024        extends BaseTransferCaches {
025    
026    protected FinancialControl financialControl;
027    
028    protected FinancialAccountRoleTypeTransferCache financialAccountRoleTypeTransferCache;
029    protected FinancialAccountTypeTransferCache financialAccountTypeTransferCache;
030    protected FinancialAccountTypeDescriptionTransferCache financialAccountTypeDescriptionTransferCache;
031    protected FinancialAccountTransactionTypeTransferCache financialAccountTransactionTypeTransferCache;
032    protected FinancialAccountTransactionTypeDescriptionTransferCache financialAccountTransactionTypeDescriptionTransferCache;
033    protected FinancialAccountAliasTypeTransferCache financialAccountAliasTypeTransferCache;
034    protected FinancialAccountAliasTypeDescriptionTransferCache financialAccountAliasTypeDescriptionTransferCache;
035    protected FinancialAccountRoleTransferCache financialAccountRoleTransferCache;
036    protected FinancialAccountTransferCache financialAccountTransferCache;
037    protected FinancialAccountAliasTransferCache financialAccountAliasTransferCache;
038    protected FinancialAccountTransactionTransferCache financialAccountTransactionTransferCache;
039    
040    /** Creates a new instance of FinancialTransferCaches */
041    public FinancialTransferCaches(UserVisit userVisit, FinancialControl financialControl) {
042        super(userVisit);
043        
044        this.financialControl = financialControl;
045    }
046    
047    public FinancialAccountRoleTypeTransferCache getFinancialAccountRoleTypeTransferCache() {
048        if(financialAccountRoleTypeTransferCache == null)
049            financialAccountRoleTypeTransferCache = new FinancialAccountRoleTypeTransferCache(userVisit, financialControl);
050        
051        return financialAccountRoleTypeTransferCache;
052    }
053    
054    public FinancialAccountTypeTransferCache getFinancialAccountTypeTransferCache() {
055        if(financialAccountTypeTransferCache == null)
056            financialAccountTypeTransferCache = new FinancialAccountTypeTransferCache(userVisit, financialControl);
057        
058        return financialAccountTypeTransferCache;
059    }
060    
061    public FinancialAccountTypeDescriptionTransferCache getFinancialAccountTypeDescriptionTransferCache() {
062        if(financialAccountTypeDescriptionTransferCache == null)
063            financialAccountTypeDescriptionTransferCache = new FinancialAccountTypeDescriptionTransferCache(userVisit, financialControl);
064        
065        return financialAccountTypeDescriptionTransferCache;
066    }
067    
068    public FinancialAccountTransactionTypeTransferCache getFinancialAccountTransactionTypeTransferCache() {
069        if(financialAccountTransactionTypeTransferCache == null)
070            financialAccountTransactionTypeTransferCache = new FinancialAccountTransactionTypeTransferCache(userVisit, financialControl);
071        
072        return financialAccountTransactionTypeTransferCache;
073    }
074    
075    public FinancialAccountTransactionTypeDescriptionTransferCache getFinancialAccountTransactionTypeDescriptionTransferCache() {
076        if(financialAccountTransactionTypeDescriptionTransferCache == null)
077            financialAccountTransactionTypeDescriptionTransferCache = new FinancialAccountTransactionTypeDescriptionTransferCache(userVisit, financialControl);
078        
079        return financialAccountTransactionTypeDescriptionTransferCache;
080    }
081    
082    public FinancialAccountAliasTypeTransferCache getFinancialAccountAliasTypeTransferCache() {
083        if(financialAccountAliasTypeTransferCache == null)
084            financialAccountAliasTypeTransferCache = new FinancialAccountAliasTypeTransferCache(userVisit, financialControl);
085        
086        return financialAccountAliasTypeTransferCache;
087    }
088    
089    public FinancialAccountAliasTypeDescriptionTransferCache getFinancialAccountAliasTypeDescriptionTransferCache() {
090        if(financialAccountAliasTypeDescriptionTransferCache == null)
091            financialAccountAliasTypeDescriptionTransferCache = new FinancialAccountAliasTypeDescriptionTransferCache(userVisit, financialControl);
092        
093        return financialAccountAliasTypeDescriptionTransferCache;
094    }
095    
096    public FinancialAccountRoleTransferCache getFinancialAccountRoleTransferCache() {
097        if(financialAccountRoleTransferCache == null)
098            financialAccountRoleTransferCache = new FinancialAccountRoleTransferCache(userVisit, financialControl);
099        
100        return financialAccountRoleTransferCache;
101    }
102    
103    public FinancialAccountTransferCache getFinancialAccountTransferCache() {
104        if(financialAccountTransferCache == null)
105            financialAccountTransferCache = new FinancialAccountTransferCache(userVisit, financialControl);
106        
107        return financialAccountTransferCache;
108    }
109    
110    public FinancialAccountAliasTransferCache getFinancialAccountAliasTransferCache() {
111        if(financialAccountAliasTransferCache == null)
112            financialAccountAliasTransferCache = new FinancialAccountAliasTransferCache(userVisit, financialControl);
113        
114        return financialAccountAliasTransferCache;
115    }
116    
117    public FinancialAccountTransactionTransferCache getFinancialAccountTransactionTransferCache() {
118        if(financialAccountTransactionTransferCache == null)
119            financialAccountTransactionTransferCache = new FinancialAccountTransactionTransferCache(userVisit, financialControl);
120        
121        return financialAccountTransactionTransferCache;
122    }
123    
124}