0% found this document useful (0 votes)
98 views9 pages

Java II Assignment 2 (8746) X

Java II assignment 2x

Uploaded by

emmamusk061
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
98 views9 pages

Java II Assignment 2 (8746) X

Java II assignment 2x

Uploaded by

emmamusk061
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
: Assignment 2 | al anat 3 9 IPSC Piven 2 \ re 4 yhe JOBC anivens ANSuy the Java ap piearon _—— Tro comnmunrcare — Uti 48 daravage. — TT] jPBe ANIVEHS “TEanslates tHe Standaid 3IDBe APL calS “ro INE OBS spedePe HET ans. @ || Winek fs a conneafon 2 ans || A connecsfon ireguesentS a session WEED g epeciffc doraease : Lorie negistexing tne cutive: ne next step fs 40 Set UP A Connecifon . @ | Whar fo ane use of Fornamec) | AB || Foynamel) 7S asrarf meted of tme"élass? Class: This Merned \icads +ne Spedtied Eve class:. Q._ || Winot ane the types Of duvets fn jabe ANS (1) Type 1: JPBC-OORC Bavidge dive [2) Type 2: Nawve-pel autvesy (2) Type 3 : Netra Ruotocol Ot?ver @) Type 4 'oThYm cuivess | ' & || Whor fo aiPseuence perueen Statement ~_|| ANd PHepated Statement Ss | Te Statement cHepuesenrs 4 geneiod SOU ~~ __]||_ Statement citimecue PAHOMERHMS . The method | ieateStatement (> NeareS QA Statement’ Object: yaa esents ‘ It he porepasied SIS cece eaten OF LUtihouy sro a. 9OL prepare Statermeny panes Sratement puccompil® 3. tre mene ates O Rue tHe onject ' exe cure @. || wnar we aierenence perueen 5 L yecapdare % exyeareQuesny , Sxecu) sed Fa Statements tis °s ¥ MES | Ars “T execute Guey | Traore wenn an ourput SiS used Fa! Statements execure Update» THI Anaie do nor vierutn an gurpulr such aS UPDATE, OELETE , CREATE TABLE: _poolean execute + Executes A query and srertutns Hue Ftme queny Heras a wmesutth + Q@_|| Wear iS metadata? and way axe tne types OF Metadata. Ans JIPBC meranata fs the Conecye fr hyumas?, MYON aeour THe aqiastiuawie and opesty OR a col * Property SSIUMN Atiahawsle SA -panle- Teme DESAI OF any-+raie Jens us Ie Hame eof +ne columns AMnyoes used 10 \ rs Sa fluent and consttainiS uSeqao envar ne FVAWILS 9. 2 =a a —_ S aara Faro Bolum” of wre wae \ A. | pe me Types © sounrmetanara + PEPNESEMS ne Fnformatfion R' ca pwrrfeutasy SeStuiy— avow 5 H JOJO Ck toe : Fassarnesert pata+ Pr ob) Aceatalas Gor IT eneosarario® apour The types and ; fy each Pasiamerert: —]] properties Te || eowsermerapars | Pn objec! +hat contains es Paroumnation aeOtur ye columns fn a Rawset. oye Cr * Q Explain any 2 meineds used fax 4@qgsaafon management. ans [iy Rollback c) a Teansacton 7s tne Key Recsune of a ttansaeWon. Instead OF Success Fully WE ecg cranges fn dotanase watt comet we Can also Undo parfarmed Wruosuis 90 NE database whith PS wefenred AS “Soltek. “The syntax is conrect¥on + Str Autroms+(Craise) > Connection + siwliback( 5 2) Comment Oo: To perm a Atansacko shor uses munsple ——] ———| ~———_+ aaa ——~| ——] SMemMentS you paure +o cali ime seAUloconnett C) MEMod wR A aise asigquenene - THE cornenie (y mernod 3 SPpied TOE caraense PSO ushen Muratammet Is set to Fase - Suntox 1 connecrion « SekALUTO Comers (Parse), Page. ~ A ee pie Srorement9 cone —————s @, ||varor °9 ane ue ts goed 19 coll Stoyeg 0 i Ars Calianle avarenes ma ponent it fom JS : OceAUHe - See INNES k fa araremen™ ojo v YPeg ti | Catraov® 7 ween carey & sieneg of. paxamel© - NOoUT: it. procedune he ns, OWT ) i ecze FNS A dou, @. || vue a puogea® yo Ox - ho Paro student (Htol1n> poame + add} , PO) tang Ce Acs forpax™ Java aut ' cy rp. event Ks Frpasus Jou au! Fonpawk jour: suing 5 Frnpouke jaa sql. class Sipio- 2 extends JIPaeme, Froptement AcHonysrenes t Stave Lt) 22 235 JSTentFieva £1, 2 135 JBuUITON HIN, Connectfon com = Ault 5 Resurtser ass null: 5 9ife 10-2. ¢5 7 2) © new Ilawe} CRotno, ") wd ~~ ~~ 22 = newStare. 2) (NStudeat wu): a. Ras New )Lave} Cup Namne ie Ve ths Sacenrage >") = New Text Heid Oy fy. EL> new Jrexe Fieao, { AB = new Text Fea a cai el vi a = new IBUtON (HSNovs ") 4 btn oer Layout Crew Frowlayeut ©)» Vi serrfrie (" Empioyee IoFormatfos '")s, sersize (350) 25D) 5 fone) pl ene Panel) 095 Pl). getlayour (new GtidLasyour (4,2 ,20,0¢ Pl add (8495 plrada (41) 4 ou ple add (22) 5 Plrada (e295 Pl add (93)5 Ph add C2) 5 add Ce!) add Cot™) 5 ey f Stoternen St = con: cpeareStarement (Resutrser, TYPE_ SCROLL —~ SENSITIVE , ResutrSer.. CONCUR —UPDATABLE )5 Result Ser sis = Sh. exeane Quexy CaseLect % FRom student ")., wis Posh O15 tA. SerText ("4 aya gerTar (19) 9" EL: Set Tere Cl M4 ys. gerStéing (2) 5 £3. serToyt (1 Mes ge lor (305 {_caten C@cepon &) | 3 ie : tg Pur\ic Staic veia main Cereing o%9 » new Sip1o-2 05 - pas _ || Feopase a Fonposee Jeu 30TH class pp meradals YT te sraric void mae (erting Og ap iS = {___ (rong postgnesq) QV 1), — Connect¥on con = AudveHManaget -getConnediy (Midee : postguesays }! localhost 95% 32 / testdul) ZZ "postgsies!!, 2.3"), ’ Datatoas emeta Da tg | md = con -get Merapata (5 | System sour: QUO IA ("Darabase mer Cary Infomation), Sysrem tour puintin("e= teste see), System. outs pune IN CUROAUC pyQpne ils ede opr Para base Atoduch Name (9); ; Sy 7 2 ; YStern Ou -pLLtnt | Ch aseven vaaa pame!— tm get uivest Vex sion 0); | ) 8y be ALIN (UR at of JSIEM- OU OF TIN (' Ryrodu Vousiot Nurnben3 /! bend. get parot e uy eH md 9 Darabas i 3 R System .our sata In on pinde Ved | INS" Jer OXI VErINaeMe C5), = System our -RATMEINCHUSEY NAME 179-9 eHUSeH Name C))5 System. out - RuotIn CrDutuey minor version. V+ ' ma iger BitiueN minor! vyestsion 05 Resutrset wresuttset = md-gercolumas(nuit , oul jt student!) awt)s coniie Curesuitset- next OO) f STEiNg name = wesurtset _gersiting (c@LuMmn — NAMEN), Steing WyPS= wesulrser. gerStting (UTYPE_ name"), for size= esuugel. Jeti CH CoLumn- size"); Sysrern out padntin (column nacre + CI +name } aype + Patype+ "J, size: [NV tsize +"); { Resutt8et sieguttser 4 = rad gerTablé (nai, Output) new Steing C1 Putasre’ b)5 t wile Curesuttserk 4» nent 0) { Sing ~tmamne = uiesultset4 + gexSteing (ovOoce _ RAME"), Sysiecn sour pain thn CuTRBLE | trame) 5 5 { Catch (Exe Ption e ) | SYSTEM < Out pati (WVw95) FE), 3 4 on YO AISPIOY into abut 4 pure aJarg yen nome WWASEMCra Pada) nee cor Bo (use ROO || ees Uursermerdoe) Frm pore JOC” sa F's ! puoic crass aExample puntic oraric Void main Cjawas tang *SFeio Taegs) L By | — . o NY: Clas Ss: Pox name ("aX9: posrgniesy) pyutrey ")5 : nec ConnecHion con = ON ue Manages gexconnectan (jae + posignes a): Mfocabhost 7 S4 32 /@otcsy!) | "postques") 123" D5 Stajerrenp Sz cone cnrearestaieme nt: 0) RenuiiBer us= Serene Quay CISELECT "FROM, emMPY)s Resutt8ermera bara TSMA = ViS- Germeradata Dy, Fre colount = used ger coiuenn Coust 05 Fate srowcounr =O, fox (fate Ps 15 P= cot County t+ +) t the stern. “oui ; SYSTERA routh BASUIN (NIN Fourmat On Onoule concn ty} System our Bustin (Name 4 iaysend: Ger Coluran Narne (1) ; ; Systm sour puntrin (pate Type WF Gusend | 7 Serta Type (1) + NOV asis md 1 gexcolumd 7 Type Nome(t) +P; I SYSTEM OU -PHINEIA (1 HyOUs NUS... -- "Ys PL(sisena. 7s NUable (1) == ©) System - out. pint In (Mfaise!), e\se Syste + ou + pauintin (Hteue)s a Caren (Excephon e) 9 System sour psuntia (1Oo0PS: --- we hane an even: — '') © psuotStacstuace 05 5 3

You might also like