'Returns a database representation of a Transaction object.
:rtype: tuple'

def to_database(self):

    return (unicode(self.transaction_id.trader_id), int(self.transaction_id.transaction_number), unicode(self.order_id.trader_id), int(self.order_id.order_number), unicode(self.partner_order_id.trader_id), int(self.partner_order_id.order_number), float(self.price), unicode(self.price.wallet_id), float(self.transferred_price), float(self.total_quantity), unicode(self.total_quantity.wallet_id), float(self.transferred_quantity), float(self.timestamp), self.sent_wallet_info, self.received_wallet_info, unicode(self.incoming_address), unicode(self.outgoing_address), unicode(self.partner_incoming_address), unicode(self.partner_outgoing_address))
