add getClassModel
Add SqlWriterSumCaster
add handling empty method by implement check in offsetExists