def interface_direct_class(data_class):
if data_class in ASSET:<EOL><INDENT>interface = AssetsInterface()<EOL><DEDENT>elif data_class in PARTY:<EOL><INDENT>interface = PartiesInterface()<EOL><DEDENT>elif data_class in BOOK:<EOL><INDENT>interface = BooksInterface()<EOL><DEDENT>elif data_class in CORPORATE_ACTION:<EOL><INDENT>interface = CorporateActionsInterface()<EOL><DEDENT>elif data_class in MARKET_DATA:<EOL><INDENT>interface = MarketDataInterface()<EOL><DEDENT>elif data_class in TRANSACTION:<EOL><INDENT>interface = TransactionsInterface()<EOL><DEDENT>else:<EOL><INDENT>interface = AssetManagersInterface()<EOL><DEDENT>return interface<EOL>
help to direct to the correct interface interacting with DB by class name only