public String generateSqlInsert ( String tableName ) { try { return cacheSQLs . get ( "INSERT:" + tableName , ( ) -> { return MessageFormat . format ( "INSERT INTO {0} ({1}) VALUES ({2})" , tableName , strAllColumns , StringUtils . repeat ( "?" , "," , getAllColumns ( ) . length ) ) ; } ) ; } catch ( ExecutionException e ) { throw new DaoException ( e ) ; } }
Generate INSERT statement to insert a BO .