What is the meaning of Matthew 1:6?

Matthew 1:6 KJV
And Jesse begat David the king; and David the king begat Solomon of her [that had been the wife] of Urias;

Matthew 1:6 NKJV
and Jesse begot David the king. David the king begot Solomon by her [who had been the wife] of Uriah.

Matthew 1:6 MKJV
and Jesse fathered David the king. And David the king fathered Solomon of [her who had been] wife of Uriah.

Matthew 1:6 KJV 2000
And Jesse begat David the king; and David the king begat Solomon of her that had been the wife of Uriah;

Interlinear KJV

And /de/ Jesse /Iessai/ begat /gennao/ David /Dabid/ the king; /basileus/ and /de/ David /Dabid/ the king /basileus/ begat /gennao/ Solomon /Solomon/ of /ek/ her /ho/ that had been the wife of Urias; /Ourias/

Philip Doddridge N.T.

Verse 6:  And Jesse begat, besides several elder children, David, the celebrated king of Israel, who was favored with the title of “The man after God’s own heart,” and had an express promise that the Messiah should descend from him: (compare 2Sa 7:12-16 and Ac 2:30) And David the king begat Solomon of Bathsheba, who had before been {the wife} of Uriah the Hittite: and, though that holy man, in this unhappy affair, acted in a way most unworthy his character, yet God, on his deep repentance, graciously forgave him, and entailed the promise on his seed by her. – Philip Doddridge N.T.

People’s New Testament Commentary

David the king. The greatest of line from Abraham to Christ, so exalted that one of the titles of the Messiah was “the Son of David.”  

Of Uriah. The mother of Solomon is referred to, not by name, but as the wife of Uriah. Uriah was a Hittite, a Gentile, and his wife may have been also. She was certainly a partner of David in the greatest guilt of his life.

Mt ch 1Mt 1:1Mt 1:2Mt 1:3Mt 1:4Mt 1:5Mt 1:6Mt 1:7Mt 1:8
Mt 1:9Mt 1:10Mt 1:11Mt 1:12Mt 1:13Mt 1:14Mt 1:15Mt 1:16Mt 1:17
Mt 1:18Mt 1:19Mt 1:20Mt 1:21Mt 1:22Mt 1:23Mt 1:24Mt 1:25