private void addPrimaryKeyToRow ( PartialRow row , EmbeddableType embeddable , Field [ ] fields , MetamodelImpl metaModel , Object key ) { for ( Field f : fields ) { if ( ! ReflectUtils . isTransientOrStatic ( f ) ) { Object value = PropertyAccessorHelper . getObject ( key , f ) ; if ( f . getType ( ) . isAnnotationPresent ( Embeddable . class ) ) { // nested addPrimaryKeyToRow ( row , ( EmbeddableType ) metaModel . embeddable ( f . getType ( ) ) , f . getType ( ) . getDeclaredFields ( ) , metaModel , value ) ; } else { Attribute attribute = embeddable . getAttribute ( f . getName ( ) ) ; Type type = KuduDBValidationClassMapper . getValidTypeForClass ( f . getType ( ) ) ; KuduDBDataHandler . addToRow ( row , ( ( AbstractAttribute ) attribute ) . getJPAColumnName ( ) , value , type ) ; } } } }
Adds the primary key to row .