#NEWLINE# def _EncodeVariable( self , arg ) : #NEWLINE# #INDENT# 'Converts a variable to a type and value.\n\n    Args:\n      arg: Any tuple, string, numeric, or datetime object.\n\n    Returns:\n      A (int, str) tuple, representing a JDBC type and encoded value.\n\n    Raises:\n      TypeError: The argument is not a recognized type.\n    ' #NEWLINE# arg_jdbc_type = self . _GetJdbcTypeForArg ( arg ) #NEWLINE# value = self . _conn . encoders [ type ( arg ) ] ( self , self . _conn . encoders ) #NEWLINE# return ( arg_jdbc_type , value )