from stock.streams.mysql import DB, Ops
from stock.streams.mysql.connections import Connections
from stock.streams.models import Model

class NasdaqFinancialController:

    def __init__(self):
        self.mysql = DB(Connections.STOCK)

    def getCompanySymbols(self, letter):
        model = Model("NasdaqListingReference")
        self.mysql.select(model).where("Reference", Ops.EQUALS, letter).execute()
        return model

    def insertNasdaqAnnualBalanceSheet(self, item):
        self.mysql.insertNasdaqAnnualBalanceSheet(item)

    def insertNasdaqQarterlyBalanceSheet(self, item):
        self.mysql.insertNasdaqQuarterlyBalanceSheet(item)

    def insertNasdaqAnnualCashFlow(self, item):
        self.mysql.insertNasdaqAnnualCashFlow(item)

    def insertNasdaqQuarterlyCashFlow(self, item):
       self.mysql.insertNasdaqQuarterlyCashFlo(item)

    def insertNasdaqAnnualIncomeStatement(self, item):
       self.mysql.insertNasdaqAnnualIncomeStatemen(item)

    def insertNasdaqQuarterlyIncomeStatement(self, item):
       self.mysql.insertNasdaqQuarterlyIncomeStatemen(item)

866b16f3abc90cd3a80ad7b0db09115e9c933226
<mask token>


class NasdaqFinancialController:

    def __init__(self):
        self.mysql = DB(Connections.STOCK)
    <mask token>
    <mask token>

    def insertNasdaqQarterlyBalanceSheet(self, item):
        self.mysql.insertNasdaqQuarterlyBalanceSheet(item)

    def insertNasdaqAnnualCashFlow(self, item):
        self.mysql.insertNasdaqAnnualCashFlow(item)

    def insertNasdaqQuarterlyCashFlow(self, item):
        self.mysql.insertNasdaqQuarterlyCashFlo(item)
    <mask token>

    def insertNasdaqQuarterlyIncomeStatement(self, item):
        self.mysql.insertNasdaqQuarterlyIncomeStatemen(item)

<mask token>


class NasdaqFinancialController:

    def __init__(self):
        self.mysql = DB(Connections.STOCK)
    <mask token>

    def insertNasdaqAnnualBalanceSheet(self, item):
        self.mysql.insertNasdaqAnnualBalanceSheet(item)

    def insertNasdaqQarterlyBalanceSheet(self, item):
        self.mysql.insertNasdaqQuarterlyBalanceSheet(item)

    def insertNasdaqAnnualCashFlow(self, item):
        self.mysql.insertNasdaqAnnualCashFlow(item)

    def insertNasdaqQuarterlyCashFlow(self, item):
        self.mysql.insertNasdaqQuarterlyCashFlo(item)

    def insertNasdaqAnnualIncomeStatement(self, item):
        self.mysql.insertNasdaqAnnualIncomeStatemen(item)

    def insertNasdaqQuarterlyIncomeStatement(self, item):
        self.mysql.insertNasdaqQuarterlyIncomeStatemen(item)

<mask token>


class NasdaqFinancialController:

    def __init__(self):
        self.mysql = DB(Connections.STOCK)

    def getCompanySymbols(self, letter):
        model = Model('NasdaqListingReference')
        self.mysql.select(model).where('Reference', Ops.EQUALS, letter
            ).execute()
        return model

    def insertNasdaqAnnualBalanceSheet(self, item):
        self.mysql.insertNasdaqAnnualBalanceSheet(item)

    def insertNasdaqQarterlyBalanceSheet(self, item):
        self.mysql.insertNasdaqQuarterlyBalanceSheet(item)

    def insertNasdaqAnnualCashFlow(self, item):
        self.mysql.insertNasdaqAnnualCashFlow(item)

    def insertNasdaqQuarterlyCashFlow(self, item):
        self.mysql.insertNasdaqQuarterlyCashFlo(item)

    def insertNasdaqAnnualIncomeStatement(self, item):
        self.mysql.insertNasdaqAnnualIncomeStatemen(item)

    def insertNasdaqQuarterlyIncomeStatement(self, item):
        self.mysql.insertNasdaqQuarterlyIncomeStatemen(item)

from stock.streams.mysql import DB, Ops
from stock.streams.mysql.connections import Connections
from stock.streams.models import Model


class NasdaqFinancialController:

    def __init__(self):
        self.mysql = DB(Connections.STOCK)

    def getCompanySymbols(self, letter):
        model = Model('NasdaqListingReference')
        self.mysql.select(model).where('Reference', Ops.EQUALS, letter
            ).execute()
        return model

    def insertNasdaqAnnualBalanceSheet(self, item):
        self.mysql.insertNasdaqAnnualBalanceSheet(item)

    def insertNasdaqQarterlyBalanceSheet(self, item):
        self.mysql.insertNasdaqQuarterlyBalanceSheet(item)

    def insertNasdaqAnnualCashFlow(self, item):
        self.mysql.insertNasdaqAnnualCashFlow(item)

    def insertNasdaqQuarterlyCashFlow(self, item):
        self.mysql.insertNasdaqQuarterlyCashFlo(item)

    def insertNasdaqAnnualIncomeStatement(self, item):
        self.mysql.insertNasdaqAnnualIncomeStatemen(item)

    def insertNasdaqQuarterlyIncomeStatement(self, item):
        self.mysql.insertNasdaqQuarterlyIncomeStatemen(item)

from stock.streams.mysql import DB, Ops
from stock.streams.mysql.connections import Connections
from stock.streams.models import Model

class NasdaqFinancialController:

    def __init__(self):
        self.mysql = DB(Connections.STOCK)

    def getCompanySymbols(self, letter):
        model = Model("NasdaqListingReference")
        self.mysql.select(model).where("Reference", Ops.EQUALS, letter).execute()
        return model

    def insertNasdaqAnnualBalanceSheet(self, item):
        self.mysql.insertNasdaqAnnualBalanceSheet(item)

    def insertNasdaqQarterlyBalanceSheet(self, item):
        self.mysql.insertNasdaqQuarterlyBalanceSheet(item)

    def insertNasdaqAnnualCashFlow(self, item):
        self.mysql.insertNasdaqAnnualCashFlow(item)

    def insertNasdaqQuarterlyCashFlow(self, item):
       self.mysql.insertNasdaqQuarterlyCashFlo(item)

    def insertNasdaqAnnualIncomeStatement(self, item):
       self.mysql.insertNasdaqAnnualIncomeStatemen(item)

    def insertNasdaqQuarterlyIncomeStatement(self, item):
       self.mysql.insertNasdaqQuarterlyIncomeStatemen(item)
