public static < T > Map < String , Object > getRowFromObject ( T entity ) throws IllegalAccessException , InstantiationException , InvocationTargetException { Field [ ] fields = AnnotationUtils . filterDeepFields ( entity . getClass ( ) ) ; Map < String , Object > row = new HashMap <> ( ) ; for ( Field field : fields ) { Method method = Utils . findGetter ( field . getName ( ) , entity . getClass ( ) ) ; Object object = method . invoke ( entity ) ; if ( object != null ) { row . put ( AnnotationUtils . deepFieldName ( field ) , object ) ; } } return row ; }
Returns a JDBC row data structure from a Stratio Deep Entity .