#NEWLINE# @ reflection . cache #NEWLINE# def _prepare_reflection_args( self , connection , table_name , schema = None , resolve_synonyms = False , dblink = '' , **kw ) : #NEWLINE# #INDENT# if resolve_synonyms : #NEWLINE# #INDENT# ( actual_name , owner , dblink , synonym ) = self . _resolve_synonym ( connection , desired_owner = self . denormalize_name ( schema ) , desired_synonym = self . denormalize_name ( table_name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( actual_name , owner , dblink , synonym ) = ( None , None , None , None ) #NEWLINE# #UNINDENT# if ( not actual_name ) : #NEWLINE# #INDENT# actual_name = self . denormalize_name ( table_name ) #NEWLINE# #UNINDENT# if dblink : #NEWLINE# #INDENT# owner = connection . scalar ( sql . text ( 'SELECT username FROM user_db_links WHERE db_link=:link' ) , link = dblink ) #NEWLINE# dblink = ( '@' + dblink ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not owner ) : #NEWLINE# #INDENT# owner = self . denormalize_name ( ( schema or self . default_schema_name ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( actual_name , owner , ( dblink or '' ) , synonym )