David was the father of all of those sons. His concubines also had sons by him. David's sons had a sister named Tamar.