Document Details

InstrumentalLemur

Uploaded by InstrumentalLemur

Aboulfateh Y. Al-Dhabei

Tags

java programming object-oriented programming database connectivity computer programming

Summary

This document provides details about object-oriented programming (OOP) concepts, including database connectivity. It covers important Java programming examples showcasing these concepts, with diagrams demonstrating the structure and functionality.

Full Transcript

ABOULFATEH PRO CIOMO PRO Your Tagline Here JAVA Michel Smith Designer A : New York City- Zip Code - 000 W : www.yourwebsitename.com P : +000 123 456 789 Date : 25 September, 2030 Lorem ipsum dolor sit ame...

ABOULFATEH PRO CIOMO PRO Your Tagline Here JAVA Michel Smith Designer A : New York City- Zip Code - 000 W : www.yourwebsitename.com P : +000 123 456 789 Date : 25 September, 2030 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut Object Oriented Programming 2 dolore eu fugiat nulla pariatur. DB - Random -Thread - Encryption laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut quia consequuntur voluptatem sequi nesciunt. Voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inven- tore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut quia consequuntur voluptatem sequi nesciunt. Neque porro quisquam dolorem ipsum quia dolor sit amet, consecteturtempora incidunt labore dolore magnam aliquam quaerat voluptatem. Jhone Smith Jhone Smith Manager Aboulfateh Y. Al-Dhabei +000 123 456 789 +000 123 456 789 [email protected] www.websitename.com Your Street Address Here New Yerk City, Zip - 000 Length CharAt False True StartsWith False True EndsWith Contiants GetChar Trim IndexOf String CopyValueOf ‫شكل البزًاهج‬ ‫هنا يقىم المستخذم بإدخال‬ ‫رقم الهاتف المراد معرفة‬ ‫نىعه والشركة الخاصة به‬ ‫وهنا يظهر النىع الهاتف‬ ‫والشركة الخاصة به‬ JButton1 Aboulfateh Y. Al-Dhabei 2 1 String JtextField1 1 2 Esle 3 4 5 6 NO 7 CharAt(0) 8 9 10 11 NO 12 lblComp 13 14 15 16 17 18 19 Jlabel ‫شكل البزًاهج‬ 3 2 Saleem eem Sal Se ae lm Seaelm P1 Seaelm P2 P1 P2 P1 Seaelm P2 Saleem eem P2 Sal P1 Jtext2 Jtext1 Jtext3 ‫شكل البزًاهج‬ 6 3 Jtext1 T 1 2 3. 4 5 6 M 7 8 P1 9 T 10 P2 11 T Code M P1 Jtext2 T Code P2 P1,P2 Code Jtext2 1 2 3 i 4 P1 5 6 7 8 9 P2 10 11 Jtext3 String P1,P2 Jtext3 7 False True Message Object JlistBox1 ‫شكل البزًاهج‬ Message 1 2 NextInt False True NextBoolean 8 5 JList1 1 Object 2 Random 3 4 5 NextInt Jlist Server Sun Client JDeveloper Oracle Developer Suit – OraDB10g _Home2 ==> JDeveloper ==> J Developer JDeveloper WorkSpaces.1 Project.2 Application.3 Frame.4 9 6 Thread ‫شكل البزًاهج‬ Import org.omg.SendingContext.RunTime; Thread Stpowatch Thread False 1 Run() 2 false 3 4 h m S 5 6 7 8 9 h + m+ s 10 11 12 13 14 15 16 17 18 19 20 21 22 23 19 7 ws Jlabel1 stopwatch false WS stopwatch S M,H Jlabel1 ws True ws 20 8 Driver open DB Connectivity ODBC SQL Connection Statement Result Set db1 Col_table 35 9 Col_no Col_name 36 10 ODBC 37 11 Col_ Link 38 12 ‫شكل البزًاهج‬ SQL 1 2 3 con 4 sql rs 39 13 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ConnDB JDBC ForName Class Col_Link rs DB dtm dtm dtm dtm 40 14 rs DB JTextField2 JTextField1 DB rs.first Do while Do Do while ary DB dtm dtm DB dtm IF JTextFiled1 ,2 dtm 41 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 New JTextFiled1,2 Save btnSave If JTextFiled1,2 s ps s S S t t False JTextFiled1,2 New btnSave 42 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Update JTextFiled1,2 Save btnUpadte s ps s S S t t 43 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 JTextFiled1 s ps s S S t t 44 18 1 2 3 4 5 6 7 8 9 JTextFiled3 JTextFiled3 ConDB rs = sql.executeQuery("Select * from Col_table" + Search); rs Search ConDB Select * from Col_table Where Col_name like '%" + jTextField3.getText() + "%'"; 1 2 rs 3 4 5 6 7 rs JTextFiled1,2 8 9 10 1 2 3 rs 4 5 6 7 rs JTextFiled1,2 8 9 10 45 19 1 2 rs 3 4 5 6 7 rs JTextFiled1,2 8 9 10 1 2 3 4 rs 5 6 7 rs JTextFiled1,2 8 9 10 46 20 ABOULFATEH PRO CIOMO PRO Your Tagline Here JAVA Michel Smith Designer A : New York City- Zip Code - 000 W : www.yourwebsitename.com P : +000 123 456 789 Date : 25 September, 2030 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut quia consequuntur voluptatem sequi nesciunt. Voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inven- tore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut quia consequuntur voluptatem sequi nesciunt. Neque porro quisquam dolorem ipsum quia dolor sit amet, consecteturtempora incidunt labore dolore magnam aliquam quaerat voluptatem. Jhone Smith Jhone Smith Manager +000 123 456 789 [email protected] Your Street Address Here +000 123 456 789 www.websitename.com New Yerk City, Zip - 000

Use Quizgecko on...
Browser
Browser