public static List < SQLProperty > extractUsedProperties ( Builder methodBuilder , SQLiteModelMethod method , Class < ? extends Annotation > annotationClazz ) { SQLiteEntity entity = method . getEntity ( ) ; List < SQLProperty > listPropertyInContentValue = new ArrayList < SQLProperty > ( ) ; Set < String > foundColumns = JQLChecker . getInstance ( ) . extractColumnsToInsertOrUpdate ( method , method . jql . value , entity ) ; // for each property in entity except primaryKey and excluded properties for ( SQLProperty item : entity . getCollection ( ) ) { if ( foundColumns . size ( ) > 0 && ! foundColumns . contains ( item . getName ( ) ) ) { continue ; } // add property to list of used properties listPropertyInContentValue . add ( item ) ; } return listPropertyInContentValue ; }
Generate code necessary to put bean properties in content values map . Return primary key