Biblioteca Java - Rev 3

Subversion Repositories:
Rev:
Êþº¾.ž lab/scd/db/jdbc10/TestTranzactiijava/lang/ObjectconnLjava/sql/Connection;statLjava/sql/Statement;<init>()V
Exceptionsjava/lang/ExceptionCode    

com.mysql.jdbc.Driverjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class;
5jdbc:mysql://localhost/testdb?user=root&password=rootjava/sql/DriverManager
getConnection)(Ljava/lang/String;)Ljava/sql/Connection;
java/lang/System!outLjava/io/PrintStream;#$   "%$Conexiune la baza de date realizata.'java/io/PrintStream)println(Ljava/lang/String;)V+,
*-java/sql/Connection/createStatement()Ljava/sql/Statement;1203 5LineNumberTableLocalVariableTablethis"Llab/scd/db/jdbc10/TestTranzactii;testTranzactie(Z)V    =
setAutoCommit?<0@+INSERT INTO STOC VALUES ('produs A' , 2500)Bjava/sql/StatementD
executeUpdate(Ljava/lang/String;)IFGEHjava/sql/SQLExceptionJEroare update.L      ,
KN+INSERT INTO STOC VALUES ('produs B' , 7900)PcommitR
0SprintStackTraceU

KVrollbackX
0Y
simulateErrorZexLjava/sql/SQLException;e
afiseazaTabelSELECT * FROM STOC;aexecuteQuery((Ljava/lang/String;)Ljava/sql/ResultSet;cdEePRODgjava/sql/ResultSeti   getString&(Ljava/lang/String;)Ljava/lang/String;kljmPRETogetIntqGjrjava/lang/StringBuffertProdus:v
uNappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;yz
u{ Pret:}(I)Ljava/lang/StringBuffer;y
u€toString()Ljava/lang/String;‚ƒ
u„next()Z†‡jˆrsLjava/sql/ResultSet;pnameLjava/lang/String;ppretImain([Ljava/lang/String;)V
;<
“`


Vargs[Ljava/lang/String;tLjava/lang/Exception;
SourceFileTestTranzactii.java! 

k#*·¸W¸ L²&(¶.*+¹4µ6±7
 "!8#9:;<ÓS*´>¹A*´6C¹IW™
»KYM·O¿*´6Q¹IW*´>¹T§M,¶W*´>¹Z§N-¶W±<<KAMMK7.&
(+,$.01<3=5A7M8R<8*S9:S[\=]^N_^`
KªJ*´6b¹fL§4+h¹nM+p¹s>²&»uYw·x,¶|~¶|¶¶…¶.+¹‰šÿɱ7?ABC!D@AIG8*J9:>Š‹(Œ!Ž       ‘t»Y·’L+¶”+¶–§L+¶—±
7LN
PRSU8 ˜™š:_›œ