a66cceaf4a4b617d4e3e5c0b12013e557d8bd9aa
Files Diff
- Added: 7
- Removed: 3
- Renamed: 0
- Modified: 16
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 5 | ||
Rename Method public update(id Object, entity Object) : void renamed to public find(clazz Class<T>, id Object) : T in class org.rapidoid.jpa.JPA | From | To | |
Rename Method public persist(record Object) : Object renamed to public save(record Object) : Object in class org.rapidoid.jpa.JPA | From | To | |
Rename Method public getAll() : List<E> renamed to public getAllEntities() : List<E> in class org.rapidoid.jpa.JPA | From | To | |
Rename Method public getIfExists(clazz Class<T>, id Object) : T renamed to public find(clazz Class<T>, id Object) : T in class org.rapidoid.jpa.JPAUtil | From | To | |
Rename Method public persist(record Object) : Object renamed to public save(entity Object) : Object in class org.rapidoid.jpa.JPAUtil | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type entity : Object to clazz : Class<T> in method public find(clazz Class<T>, id Object) : T in class org.rapidoid.jpa.JPA | From | To | |
Inline Method | 1 | ||
Inline Method public update(id Object, entity Object) : void inlined to public update(entity Object) : void in class org.rapidoid.jpa.JPAUtil | From | To | |
Change Return Type | 5 | ||
Change Return Type String to Object in method public getIdIfExists(obj Object) : Object in class org.rapidoid.beany.Beany | From | To | |
Change Return Type void to T in method public find(clazz Class<T>, id Object) : T in class org.rapidoid.jpa.JPA | From | To | |
Change Return Type String to Object in method public getId(obj Object) : Object in class org.rapidoid.beany.Beany | From | To | |
Change Return Type Iterable<E> to List<E> in method public all() : List<E> in class org.rapidoid.jpa.DAO | From | To | |
Change Return Type String[] to Object[] in method public getIds(objs Object...) : Object[] in class org.rapidoid.beany.Beany | From | To | |
Extract Variable | 1 | ||
Extract Variable props : Properties in method public emf(path String[], entities Class<?>...) : HibernateEntityManagerFactory from class org.rapidoid.jpa.QuickJPA | From | To | |
Change Variable Type | 3 | ||
Change Variable Type id : String to id : Object in method public urlFor(entity Object) : String in class org.rapidoid.gui.base.BootstrapWidgets | From | To | |
Change Variable Type ids : String[] to ids : Object[] in method public getIds(objs Object...) : Object[] in class org.rapidoid.beany.Beany | From | To | |
Change Variable Type id : String to id : Object in method public mediaList(found List<Object>) : Tag[] in class org.rapidoid.gui.base.BootstrapWidgets | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method public flush() : void extracted from public testBasicCRUD() : void in class org.rapidoid.jpa.JPATest & moved to class org.rapidoid.jpa.JPA | From | To | |
Rename Parameter | 5 | ||
Rename Parameter readonly : boolean to readOnly : boolean in method public transaction(action Runnable, readOnly boolean) : void in class org.rapidoid.jpa.JPAUtil | From | To | |
Rename Parameter entity : Object to clazz : Class<T> in method public find(clazz Class<T>, id Object) : T in class org.rapidoid.jpa.JPA | From | To | |
Rename Parameter record : Object to entity : Object in method public delete(entity Object) : void in class org.rapidoid.jpa.JPAUtil | From | To | |
Rename Parameter record : Object to entity : Object in method public save(entity Object) : Object in class org.rapidoid.jpa.JPAUtil | From | To | |
Rename Parameter record : Object to entity : Object in method public update(entity Object) : void in class org.rapidoid.jpa.JPAUtil | From | To |