0 ratings0% found this document useful (0 votes) 91 views11 pagesAjp 2
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
Q=——?
Assignmenb-2 hed. Qa=9
¢- «
dof each
—_______|Wrike code snipes Fox each ype of ZDBC_commechion
| Explain bhi. and thin diver. SC
Tdpec_is an_APt ehich is weed in Tava pee ene
| fox_imbemuching —citl, a .LrrrSS~s—SCsSCS
Wheb is JDe0%
jie oe Ffesenk types of Joec diver 2 explain woke
| Comment on Selechian diver. — oe
lipec_is_the “shundeesd mebhod of accessing debabeses
__| From deve _applicabion. __ ao
Dec isa plate Fearn
a
| selabional database end
— | (fac ae =
ee Loe elie
| Applicebion, Dri vex. aa (os
= Type JD8c- ya ee
| Nok poskable —— -
4 [Tyanskbe pec_calls info opp cals arnd_use_Wintdao'S —
Depends on_suppasb for omBc._ ee
loge bulb _ien_cbvivers SS
ODB¢ must be sek upon every cliemk =
Nok Suppoxt from JDK LE. aealls AE _ Co
verte) _
—/-88EuMigue fy
: i the dabey hase
nese csivexs core Lelia rivided by the ded
Sad used in the 7 Zhe y
b
—» | Nekive Code _cbiver _
> | The Vendors - Specific _
| chrenk _ machine,
in
Gee Dee. APL)
to. /Nabive_ APD
plicabion ——\ diveg /
os) Vedas 1
on :
inko_ ~native: APT —cils, chich
tabuce™ eis
=-ODBe bid
CO,
be insted. on. ——
etba bases.
farce bo _anulbiple
ole een clienks use aes me
Gommunjceihe ith 4 itl nen rh oe
SY The ‘Kind ak aaa Std of eg
peaaixes —No___Ca
Slick sie Senex
slawnk —Sockebs bo —
pplicabion SEES. ———
1 Gnceit———
wel = gt —
igle of 4525.
viaccess AoA
yada coun exch — Se
Sf eine4
by
i MySQL
Glance APL) —_clioal-tochine
Buble
CS
Javea _»/ Nebawalt x Midlleoaaé)
icabion) protocol duives)
Sexven Side
| ope 4: Database Psatacol :
Jkis mewn asthe diseck fo dubabase pure dave daives
Need be doonkad a new dsiws fow ecich dubabase ensine,
This__kind of dyivex is extsemely flexible , you don’t
_jneed bo inskall special sofkoaxe” on the clignh ow
Serves. ,
Such_drivexs ave —implemenked by dams vendaxs.
2
Ings Api i
—_ tee
1 —S
ievr —_ _-— (Chin diveas> »! puta base! :
~ Arpicabion [| _
7 client - Machine : ia -
Code - Snippels : oo
class. foxNime (com. amsql. dd be. daives
conmeckim —cnm = Drivers Many Xu agahcinnedbtin Cox cfd
—” dbbe:- ngatle Mf localhost + rat dude = Tame”, id, eat’)
Sb ee sip |Ti
ii
lh
pdoadle: luwaldbs, tac eet |
_————— a eee ae
Flas Gone Comacle: “ible deivey, omelohao——————
deve. onaclechiveg")
“coma = Diver .Maagex.gelconnechion ( Cee
Filson thins @hosh. halt pc " salalaganedb ook” "pads
\
[DB 2s
aa
[eles feansne (com, ibon. dhe. dhe -neb. ama Davex)i
—_lconnechi “con, Drives Me ebcomecki ion
el" [ibe dbp: ochnane : a pe gion
Thick diver = 3
4: Typed 4 Type-2. — i
SENThien dlsivony := ;
Connect fo
eh The Hin li rab_dsivear, ehich mean opt can
a dababooe vcilhow fb bhe cli mk iki nme
Se Tears
Seren on_selecion oh tess
S21 en axe _excessing one ne bype 2 oe -disie seks ysl,
sp poaele. “ot IBM eke.
a ‘eb oF |
Se eur Java _applicabion. a ejocessing 5 le
esse ab __Ehe_samne—! " |
yo —_ ,Explain prepared shakement «ith suilable example.
| The. Prepayed Skakemenk inbesfice extends the
| Skakemenk _inboxface.
Ih. sepresonls Pt precompiled At. chakement.
(As stakememb is precompiled and stewed in et:
| Prepared Stakemenk—obieck.
| This abjeck can then be used bo efficiently execu bed
| this shabemenk multiple limes. 4
Shsing query ="insewk ino sbudenk values (2, 10)";
Example =
Limmparsl Jawa. sql.
La | public class Prepaved Skikemont,
ee tga
___Comneckion Conn = Dalyey Meret
pot i _watrettony» ie 2
ee Skwing —9="ingewk |
fable -sbukic Void snain.( Sksings 1 ays)
| Chats. fans Nera. Cor. snya. dhe. Daivey.")5 4
"4 ex. gekconmecbien
pie chk 3 2206 aby, sack Ypou')s—~
ana a) |ERE
Hl
bal
+
ze fad 14092") 5
2," Se
(s campaber.")
“pS oaks (x Nox") 5
_____ink i= ps. execube Vpdel ales
[Sistem oub. pial (no. ae ces valle
‘paclose: Ose
comm. clase 05 _
e |
Peach CExerplon e) £ 23 tists
em. oud paintin Ce basbaing 2) —__—
pe —
Giye the ~s habe mkt a: Prepared Sbabemend een
aheterts "ecole lot ingexh three ecard
ea __
ee
ke Hash genes [=e cess be Abe
etal horn afta. — __usis " 7[tise Bis chen ya pln. fa vse “the Sah stubements san
= ee edSkabemenk imbexface _accepks a
a proce Lex _ak eee itoatsot—% — L
- | CallableSkabemenk +
2 4 | Use bhis chen pu want bo access the datebase
[stored _gaoceduaeS. The Cullable Shale ment — inkewfuce
can also a Sette rumbime impuk parsurmebexs,
public class - Prepared Tasext
“public sabic void mein C Sbaing £5 eags)
ext)
Cohmachienn Conn= sence yekconnectin
GC db mysq]* 1/lcelhast,: 306 La ued" "Poids
bing 9.2" Insexk tm bo _skulenk valves (42%);
See
Sie ps:seh.Shying (1, " Hens 5
—}—___ ps sobs As" nee
=| 6)GE=O0
execube Updabe. (03 rey esis AL +
Ps.
ps sebhain Cato") 5 -y wal
ee ——pssebshsiag (sie oe Otis wad
ee ee non «=f |
| —_ = DAN? UAT is a
| ‘ps. sebSbsinng a,"
a. so ps sebSheafe(e, Neat, is __|
Bc boot me a pose bsbaing 3,."os Win bee}
_ ee
| _ pseclesecds, es = co
a ao A ovis) i
Fl _ conn.closec) 5
q _ :
al ~cabeh CExcepbion .e) 1.
zz - Sober. eh.pinbl (eb being 1); —_——
ao -_ ned ie ison
f s. phen ui ct
bs ik 4 al i ——
of 1, if pba _quesit
eee ti ex ubi ofi_afs a_ a beemsechio oN) :
ne foal exec bed cond. nd_the noo a
differen) som —olJol [ deleed bo / fxm ther debubaGe , hich way
affech yout 3S. __—_§—7__
A ii wl ie
=P _| TRANSACTION SERIALIZABLE =
& [Tn thie lelel of isakibion oily = a ose
—|weads ,cnd phentom weeds “ase prevented.
Weike a Java pogo usin - feerel Slabemen} b
penbex record of “3 employee» having following Fields: _
—_—__| Ennp. ~id_C Sbxing) Fyn (sig? © Emp -seileust Celeb)
7 bimposhioeglas
——$ petites + Pepe Inex [ss
a anctin in (Shang 96)
by £
Chas. ees erme (comm. a \ddbe- Drsivers "jy
ev.
eT amen a Mgnt "soo
pod").
3(121)4
= = frepaxedSbibimenk ps = conn. guepeteShubemen ta
=|
rts Shing 3 id= ne sega He" 184i
a
C St igh mene =e ch os" nah! "yey" YS
Sp Cink ice ? i& id-length + tet JL
piniisi ps. seb Skein 1 idee
_9s.cebGlrint (e,nomefitys 1 Ss
ps seb Flea C3, salary Ci) 3 —_——
i j —psadd Bakch C5
psexecbegabhQi
poeclseCs :
——
ee ef
— System. ook. pintin CesbosbaingcaiQm==O
using Callable —Shakemenk
lary ig bel ere a
wse_mame_“rxebxive ey
LSB tapped, devbiiqle
© Tpuitiel VelastCallableDemas
£ ee oe =
—— Pyle shakic. ace ue cogs) ———
ee Ese by f
a ae Clas, fastlone(esm.mysglidhe anvex)5
——| —Catinechion com= Guives Maney. gebConnechion—
| ithe: mysgl: H locithast 12306 /emplayjee* tek"
"Pos
— Catablestabennon 7 5. cenn pcp ca(
a “Leall Relive deosy (1A
— —cs.seknb (1201) —
es picheyouh Panemeben (2, Types In.) 5
cs oxeculeli —
—}-—— + ao i
ae
cabch (Exception e) £_ o
2 System. cok. guintln Ce. beSbainge ie oe
af
Ea) —