Mixing Conduits with JDBC HotSync®-ing Palm® Programs, Java Style with Database Connectivity by Mike Kirschman.

Slides:



Advertisements
Similar presentations
Lecture plan Information retrieval (from week 11)
Advertisements

© 2007 by Prentice Hall10-1 Introduction to Oracle 10g Chapter 10 Creating and Modifying Reports James Perry and Gerald Post.
Using JavaServer Pages Harry R. Erwin, PhD CIT304/CSE301.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
Keeping It in Sync HotSync®-ing Palm® Programs, Java Style by Mike Kirschman.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
DT228/3 Web Development JSP: Directives and Scripting elements.
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
EmbeddedSQL: 1 Impedance Mismatch Problem Problem : How to connect SQL statements with conventional programming languages Different models of language.
JDBC. In This Class We Will Cover: What SQL is What ODBC is What JDBC is JDBC basics Introduction to advanced JDBC topics.
Java Server Pages Russell Beale. What are Java Server Pages? Separates content from presentation Good to use when lots of HTML to be presented to user,
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
CMPUT 391 – Database Management Systems Department of Computing Science University of Alberta CMPUT 391 Database Management Systems JavaServer Pages (JSP)
Java Servlets. What Are Servlets? Basically, a java program that runs on the server Basically, a java program that runs on the server Creates dynamic.
Java Server Programming Jeff Schmitt Towson University October 15, 1998.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Web Application Development Muhammad Ali Versonic Pte Asher Imtiaz Forman Christian College.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 37 - JavaServer Pages (JSP): Bonus for Java Developers Outline 37.1 Introduction 37.2 JavaServer.
CERN ORACLE DEVELOPERS FORUM 5 Nov 2001 Adding Mathematica Software to an ORACLE database Roberto Terenzi CNR-IFSI & INFN CERN.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
JSP Standard Tag Library
Database Management Systems 1 Oracle Programming.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
JDBC. What is JDBC JDBC is an acronym for –Java Data Base Connectivity. It allows java/jsp program to connect to any database.
Java Database Connectivity (JDBC) Introduction to JDBC JDBC is a simple API for connecting from Java applications to multiple databases. Lets you smoothly.
Java Omar Rana University of South Asia. Course Overview JAVA  C/C++ and JAVA Comparison  OOP in JAVA  Exception Handling  Streams  Graphics User.
Introduction to Java Server Pages (JSPs) Robert Thornton.
M1G Introduction to Database Development 6. Building Applications.
Chapter 8 Browsing and Searching the Web. Browsing and Searching the Web FAQs: – What’s a Web page? – What’s a URL? – How does a browser work? – How do.
Accessing MySQL with PHP IDIA 618 Fall 2014 Bridget M. Blodgett.
MDCFUG Is Java in Your Future? Tyler Williams Principal dataTerrace
Overview of JDBC and Pro*C 1 CSE 5330 – Database Systems.
Java + XML. Java 2 Enterprise Edition Server Side java Servlets JSP JavaBeans Web Services Database jdbc.
JSTL Lec Umair©2006, All rights reserved JSTL (ni) Acronym of  JavaServer Pages Standard Tag Library JSTL (like JSP) is a specification, not an.
Introduction to JavaServer Pages. 2 JSP and Servlet Limitations of servlet  It’s inaccessible to non-programmers JSP is a complement to servlet  focuses.
JSP program that interacts with HTML form & Access Data Base.
Chapter 8 Databases.
COMP201 Java Programming Topic 15: Database Connectivity JDBC Reading: Chapter 4, Volume 2.
14 June 2004System-wide Services: User InterfaceRich Moeser 1 EVLA Overall Software Design Final Internal Review System-wide Services: User Interface.
Java Database Connectivity. Java and the database Database is used to store data. It is also known as persistent storage as the data is stored and can.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
CF101: Welcome to ColdFusion Simon Horwith CTO, Etrilogy Ltd.
1 CS 430 Database Theory Winter 2005 Lecture 14: Additional SQL Topics.
Implementing and Using the SIRWEB Interface Setup of the CGI script and web procfile Connecting to your database using HTML Retrieving data using the CGI.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
Database Access Using JDBC BCIS 3680 Enterprise Programming.
OOSSE Week 7 Java Server Pages Format of lecture: Introduction What are Java Server Pages? (JSPs) What do you need to run JSPs? Demo of an example of a.
Basics of JDBC Session 14.
Server-Side Scripting with Java Server Page, JSP.
Advanced Java Session 5 New York University School of Continuing and Professional Studies.
Web Programming Assistant Professor Xiaozhong Liu
 Java Server Pages (JSP) By Offir Golan. What is JSP?  A technology that allows for the creation of dynamically generated web pages based on HTML, XML,
Bayu Priyambadha, S.Kom. Static content  Web Server delivers contents of a file (html) 1. Browser sends request to Web Server 3. Web Server sends HTML.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
Intro to JDBC Joseph Sant Applied Computing and Engineering Sciences Sheridan ITAL.
Database application development 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall OBJECTIVES  Define terms  Explain three components.
Database Processing with JSP ISYS 350. Database Applications Applications Database Server Queries/Updates Results.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
CS 562 Advanced Java and Internet Application Computer Warehouse Web Application By Team Alpha :-  Puja Mehta (102163)  Mona Nagpure (102147)
JSP and DB.
JSP (Java Server Page) JSP is server side technology which is used to create dynamic web pages just like Servlet technology. This is mainly used for implementing.
JDBC & Servlet CSE 4504/6504 Lab.
4166 Review.
Database Driven Websites
Monitoring Java Applications with JAMon
Client Access, Queries, Stored Procedures, JDBC
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Storing and Processing Sensor Networks Data in Public Clouds
Presentation transcript:

Mixing Conduits with JDBC HotSync®-ing Palm® Programs, Java Style with Database Connectivity by Mike Kirschman

Goals During HotSync® Translate text to HTML code Translate text to HTML code Include Graphics as ’s (postponed to later time) Include Graphics as ’s (postponed to later time) Allow Replacement Variables Allow Replacement Variables Where variable value will be drawn from SQL database Where variable value will be drawn from SQL database Allow XML output (postponed to later time) Allow XML output (postponed to later time)

The Palm® Model Do minor processing on the handheld. Do minor processing on the handheld. Minor data entry Minor data entry Data display (often only a subset of data) Data display (often only a subset of data) Small remote database queries (if capable) Small remote database queries (if capable) Etc. Etc. Do major processing on PC/Laptop Do major processing on PC/Laptop Large data entry Large data entry Extended processing Extended processing Internet (though, some appearing on HH) Internet (though, some appearing on HH) Larger database queries. Larger database queries.

Conduits Overall Conduit Design 1. Read HH data to PC (HotSync®) 2. Read PC copy of data into conduit 3. Read PC data 4. Determine type of sync necessary: 5. Write data to HH or PC as necessary The JDBC substitutions happen here.

Why Use JDBC Provides a fairly portable database interface (just need JDBC driver, which are usually free with the database.) Provides a fairly portable database interface (just need JDBC driver, which are usually free with the database.) Fairly simple interface to use. Fairly simple interface to use. Combined with Java, GUI Database programs are rather straight-forward to write. (Also, can use JSP/Servlets technology for web.) Combined with Java, GUI Database programs are rather straight-forward to write. (Also, can use JSP/Servlets technology for web.) (For my project) Because I already wrote the Conduit in Java. (For my project) Because I already wrote the Conduit in Java.

Simple JDBC Example Class.forName(driverName); // Load Driver Connection con = DriverManager.getConnection(dbURL, username, password); ResultSet rs = con.executeQuery(“Select * from customer”); while (rs.next()) { String customer = rs.getString(“cname”); String customer = rs.getString(“cname”);…}rs.close();con.close();

What’s It Good For? Sales manager can write “form letter” (or ) while traveling. Sales manager can write “form letter” (or ) while traveling. Reports can be written during a collaborative meeting without the requirement that someone bring a laptop (inserting data later where not known.) Reports can be written during a collaborative meeting without the requirement that someone bring a laptop (inserting data later where not known.) With dynamic SQL, reports could be programmed while riding the train to work. With dynamic SQL, reports could be programmed while riding the train to work.

More Information Palm OS® Development: Palm OS® Development: Other Palm Resources: (look for Palm Development Kit, PilRC, & jCode) Other Palm Resources: (look for Palm Development Kit, PilRC, & jCode) Conduit Development: Conduit Development: IDE-Based Development: IDE-Based Development: JDBC, JSP, and Servlet Development Core Servlets and JavaServer Pages by Marty Hall (© Prentice Hall) (There are many other books on the topic, as well.) JDBC, JSP, and Servlet Development Core Servlets and JavaServer Pages by Marty Hall (© Prentice Hall) (There are many other books on the topic, as well.)