You are on page 1of 14
MODULE ¢ ¥ CONFIG L ROUTES Y e& (soo =) | conTROLLER VIEWS SERVICE DIRECTIVES FACTORY Application ae =e View Template Main Layout ae _-_ |_| ee Tomy fe) ae |, a: oe en cee |! | qiesalcrcle aaa a as affected tinings thin the When an event cur, Angular.js aug Bootstrap callback is Application > Bootstrap ‘Once bootsapped Angler wats Process for browser events at might ‘Angular compiles the DOM by starting at the ngApp root, then processes directives and bin Angular traverses the DON tree to find ng-app ‘Angular locates the element aul soca th sec Injector used for lrective ar Injector creates the root ‘scope object ($rootScope) will Become the coi Bean Initialization Steps + + oreach bean... Deveacei . Definition Ered : ee a Peon Sy aise Load Bean Definitions + Dependency LE wrree you've seen berore Injection ‘ea Contigueation fate setaeantactory ) (onurecteryinace!e) (epttcattonconteniawnse'2) Cod en Create POST | Create Read | scer | GET _ Update/Replace PUT -Updite/Rep place/Activate/Deactivate Delete DELETE _Delete or Remove Data Tpe Primitive Non-Primitive — [— string Boolean Numeric ;—— Array a __ ete, character integrad integer Fboating-point AIS 7 boolean char byte short int long out ovo Throwable OutOiMemaryEror | |] StackOveriowérror [ c 1 l Lintagetror —} [IteseArqumentxcenion ||| ndexourcrBoundsEscepton | [ FleNeiFoundEacention a ee — ee) ee ee Iterable ¥ for (Integer integer: numbers) { System. out printin(integer); } — nex) 1 Hterabie 1234 ——_, IteratoreT> —next() —P2 calls iterator() D> egy —3 ListsInteger> —next() > 4 HashMap Pen ‘Synchronized No Yes Thread-Safe No Yes Null Keys and Null ‘One null Key Any null Not permit null keys and values values values erator type Fail fast iterator Fail safe iterator Performance Fast Slow in comparison ‘Superciass and Legacy AbstractMap , No Dictionary , Yes I public ini exooutelipdate”) IS used to execute the update or delote query. 2 public List tsi) returns the result of the ralation as a list. Spublic Quory setlirstltesult(int mwno) specifies the row number from where record will be retrieved. 4 public Query setMaxesuli(int rowno) specifies the no. of records to be retrieved from the relation Spublic Query set!"arameter(int position, Object value) It sets the value to the JDBC style query parameter. © public Quory setParametor(String name, Object value) It sets the value to anamed query parameter. www InstanceOflava.Com — new ———>| garbage — (— “a savel) Removed \ saveOrUpdate() persist() = | bel merge)“ Koay | Query.lisi() e remove() ‘Query.uniqueResulti) —>(_ Persistent Queryiterate() — uecsecrll) eviet() spite close0) * saveOrUpdate) | getReference() : Jo Query.getResuitList() gesrh, } merge() | Query. getSingleResuit() / A pplication ping JDBC ak lay ~ DB Flow of Hibernate Application Database eer sent Persistent pean fod ae He cr Hibemate.cfg.xml chbm.xm| en etre rr) Eye tenit ee Tacla load0, persist) ifnot Gare — ” &> ‘save() saveOrUpdat() persis) e@ merge) = toad() find), ee updated) Sea e merge) <> net reattached HTTP Status Codes Peet) Level 200 (Success) Pee) le RGR Peete SE aac aCe Peer eee EYER ee} PEE ers i107 an cen a) Peet Ey eres 204 : No Content Pere EAN Cea rs ETRE oy Er aa ea t— Pees Berne Compiled Java code Local ——>) Developer Deploy code to —j Server App Server Runtime Request Servlet Runtime Get Connection [SQL Exceptio: Retum Result Handle Wamings Close Statement Class Loader SubSystem Lessing LunKing Tnivatizanon Class ¥ File > » PD) intisteation Prepare Stack Area PC Registers Bkgere ast Tweed |[ Tweed] [Tweadn Tenge wae? Native Method wed || Woop Arco Mecho Seat Fane [Seek] [Seek Fane sack — mae wae Runtime Data Areas Execution Engine W JIT Compiler fe Garbage ovine Meth Collecton ie Interpreter Profier nertsce Native Nethed mr ‘GND Uber ¥ Tages (0) Got Connection fom jar:zomplenrjabetransactonsiecalBeakDB (@) ConsectionsetAuta Commit fle) Spring 3.0 MVC Request Flow Request | } Capture the Request Locale + Mrequestis multipart-File upload data is exposed Prepare the View Request @ Desa sBeforelnitialization|) er ee ace ae near Te ust coo Pease aCe) 1 Request -_= Spring ORM ‘Spring AOP EU eae yi Spring Web Spring Web mvc acca Spring Core Spa ate ‘yf Primefaces-Hlcernte-Spring-Inteotation-Samale Y Bseeymatny java Yilcomiowraldey Simple Test Class > am ee "en murat de hie, eisai SF Mase Ben com journaldeuspring sence P DEMDVeCSVCC Spring Service Class yw sreymainyrasources Jomsn-claser hiram emea> Hibemate Contig and Mapping Files rizerate fax DP BIRE system Library Davase-1.6) > maven Dependencies Spring Context File (wob.xm) veer ‘Viesmain Vgwebaoo we SF /Primetaces Configuration File ‘F apalieatonContet: nd | faces-contigaxm: 2127 ———> Deployment Descriptor File Dl indexcxttmt » aptarger > SF View Page [3 pom.xml Esenpsq) sam Maven Dependencies and MySQL script Two-Way Data Binding ‘Change to View! Continuous Updates updates Model || | Model is Single-Source-of-Truth /

You might also like