narsil/Tanshu.Accounts.DAOFactory/PostgresDAOFactory.cs
2010-03-02 23:26:21 +05:30

159 lines
4.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanshu.WebAccounts.PostgresDAO;
using Tanshu.Data.DAO;
using Tanshu.WebAccounts.PostgresDAO.Reports;
namespace Tanshu.WebAccounts.DAOFactory
{
public class PostgresDAOFactory : GetFactory
{
public override ICostCenterDAO GetCostCenterDAO(IConnectionDAO connection)
{
return new CostCenterDAO(connection);
}
public override IEmployeeDAO GetEmployeeDAO(IConnectionDAO connection)
{
return new EmployeeDAO(connection);
}
public override IInventoryDAO GetInventoryDAO(IConnectionDAO connection)
{
return new InventoryDAO(connection);
}
public override IInventoryDisplayDAO GetInventoryDisplayDAO(IConnectionDAO connection)
{
return new InventoryDisplayDAO(connection);
}
public override IIssueDAO GetIssueDAO(IConnectionDAO connection)
{
return new IssueDAO(connection);
}
public override IJournalDAO GetJournalDAO(IConnectionDAO connection)
{
return new JournalDAO(connection);
}
public override ILedgerDAO GetLedgerDAO(IConnectionDAO connection)
{
return new LedgerDAO(connection);
}
public override IMaintenanceDAO GetMaintenanceDAO(IConnectionDAO connection)
{
return new MaintenanceDAO(connection);
}
public override IMembershipDAO GetMembershipDAO(IConnectionDAO connection)
{
return new MembershipDAO(connection);
}
public override IPaymentSheetDAO GetPaymentSheetDAO(IConnectionDAO connection)
{
return new PaymentSheetDAO(connection);
}
public override IProductDAO GetProductDAO(IConnectionDAO connection)
{
return new ProductDAO(connection);
}
public override IProductTypeDAO GetProductTypeDAO(IConnectionDAO connection)
{
return new ProductTypeDAO(connection);
}
public override IRequirementDAO GetRequirementDAO(IConnectionDAO connection)
{
return new RequirementDAO(connection);
}
public override ISalarySheetDAO GetSalarySheetDAO(IConnectionDAO connection)
{
return new SalarySheetDAO(connection);
}
public override ITaxDAO GetTaxDAO(IConnectionDAO connection)
{
return new TaxDAO(connection);
}
public override IUserDAO GetUserDAO(IConnectionDAO connection)
{
return new UserDAO(connection);
}
public override IVerificationDAO GetVerificationDAO(IConnectionDAO connection)
{
return new VerificationDAO(connection);
}
public override IVoucherDAO GetVoucherDAO(IConnectionDAO connection)
{
return new VoucherDAO(connection);
}
public override IConnectionDAO Connection
{
get { return new Tanshu.WebAccounts.PostgresDAO.PostgresConnectionDAO(); }
}
public override ICashFlowDAO GetCashFlowDAO(IConnectionDAO connection)
{
return new CashFlowDAO(connection);
}
public override IClosingStockDAO GetClosingStockDAO(IConnectionDAO connection)
{
return new ClosingStockDAO(connection);
}
public override IEntriesDAO GetEntriesDAO(IConnectionDAO connection)
{
return new EntriesDAO(connection);
}
public override IIssueReportsDAO GetIssueReportsDAO(IConnectionDAO connection)
{
return new IssueReportsDAO(connection);
}
public override ILedgerReportDAO GetLedgerReportDAO(IConnectionDAO connection)
{
return new LedgerReportDAO(connection);
}
public override ILiabilityReportsDAO GetLiabilityReportsDAO(IConnectionDAO connection)
{
return new LiabilityReportsDAO(connection);
}
public override IProductLedgerDAO GetProductLedgerDAO(IConnectionDAO connection)
{
return new ProductLedgerDAO(connection);
}
public override IProfitLossDAO GetProfitLossDAO(IConnectionDAO connection)
{
return new ProfitLossDAO(connection);
}
public override IPurchaseDAO GetPurchaseDAO(IConnectionDAO connection)
{
return new PurchaseDAO(connection);
}
public override IStockDAO GetStockDAO(IConnectionDAO connection)
{
return new StockDAO(connection);
}
}
}