0% found this document useful (0 votes)
137 views

College Management: Project Report ON

This project report summarizes a "College Management" system created using Java, Swing, JDBC, and Microsoft Access. It allows users to save, view, edit, and manage details of people like name, phone number, and address directly in a database. The report introduces Java and its advantages like portability. It also discusses JDBC for database connectivity and the different types of JDBC drivers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
137 views

College Management: Project Report ON

This project report summarizes a "College Management" system created using Java, Swing, JDBC, and Microsoft Access. It allows users to save, view, edit, and manage details of people like name, phone number, and address directly in a database. The report introduces Java and its advantages like portability. It also discusses JDBC for database connectivity and the different types of JDBC drivers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

PROJECT REPORT

ON
COLLEGE MANAGEMENT

PRESENTED BY:
Kajal (1931415)
Preeti Kumari (1931428)
Sem. 6th

Department of Computer Science


IKGPTU, AMRITSAR CAMPUS
ABOUT PROJECT
“College Management”
My project “College Management” has
been created in java using swing and JDBC
as front end and Microsoft Access as back
end. In this users can save the details of
person like his name, Phone No., City
Address just a single click and can easily
review all the information stored at the data
base and also can alter and change the
information just at a single click.
INTRODUCTION TO JAVA
Although the other programming languages which existed before
the origin of Java were as good and user friendly to the
professional programmers, they still expected something advance
to come up with all those features which were definitely the cause
of worry to them with respect to the security of their code and this
thought gave birth to a revolution which discovered another
Programming Language-JAVA with the features to ensure the
security and the portability of their programs. Developing your
applications using the Java programming language results in
software that is portable across multiple machine architectures,
operating systems, and graphical user interfaces, secure, and high
performance.
Java was originally developed at Sun Microsystems in 1991
to provide a platform-independent programming language
and operating system for consumer electronics (TV sets,
toasters and VCRs). In syntax and execution, Java is a lot like
a simplified version of C++.. It is a highly robust, distributed,
high performance, object-oriented, multi-threaded language
with all of the usual features. As such, it builds upon years of
C++ development, taking the good and dispensing with the
bad. As it so happened however, Java did not make it into the
consumer electronics market. Instead it wound up in our web
browsers. Java seemed to be a perfect fit for the web. The
language itself was extremely small. Thus it could quickly be
transferred over the web.
Java as a General-Purpose Language
Of course, the use of Java extends beyond the Web, and there is much to
recommend Java as a general-purpose development language. You've already
seen that Java is completely portable to a variety of hardware platforms and
operating systems. In this section, you'll learn about some of Java's attributes
that make it a desirable general-purpose language.
For example, because Java borrows much of its syntax and many of its
concepts from C and C++, there is a preexisting pool of programmers who
could quickly learn Java. However, Java goes far beyond being a mere
derivative of C++. It adds to C++ in the areas of automatic memory
management and language-level support for multithreaded applications. On
the other hand, Java remains easier to learn and simpler to use than C++
because of those C++ features that were left out of Java: multiple
inheritance, pointers, and the go to statement, among others.
The Java Tools
Of course, in order to write Java applications or applets, you need more than
a language-you need the tools that let you write, test, and debug your
programs.
Compiler
There is, of course, a Java compiler, named javac. The Java compiler takes
input source code files (these files typically have the extension .java) and
converts them into compiled byte code files.
Interpreter
The Java interpreter, known eponymously as java, can be used to execute
Java applications. The interpreter translates byte codes directly into program
actions.
Debugger
The Java debugger, jdb, enables you to debug your Java classes.
Unfortunately, the Java debugger is a throwback to the pre-GUI debugger
dark ages of programming. The Java debugger is a command-line debugger
that is enough to make you wish for even the 1988 version of CodeView.
Introduction to JDBC
What is JDBC?
JDBC stands for "Java DataBase Connectivity". It is an API
(Application Programming Interface) which consists of a set of
Java classes, interfaces and exceptions and a specification to
which both JDBC driver vendors and JDBC developers adhere
when developing applications.
JDBC is a very popular data access standard. RDBMS
(Relational Database Management Systems) or third-party
vendors develop drivers which adhere to the JDBC
specification. Other developers use these drivers to develop
applications which access those databases e.g. you'll use
ConnectorJ JDBC driver to access MySQL database.
Registering an ODBC data source
 
To configure the ODBC data source implement the
following steps:
 
 
NOTE: In Windows 2000, the Control Panel does not
contain the pointer to the "ODBC Data Sources". Using
Help, search on ODBC and then select the topic "Using
Data Sources". From there, select "Data Sources" to bring
up the ODBC Data Source Administrator window.
1. Open the control panel from Windows settings and start the
application "ODBC Data Sources [32bit]"
2. Select the Add button to add a new data source.
3. Select the appropriate driver for your
database and click the Finish button.
JDBC Architecture
We'll divide it into 2 parts:
*JDBC API (java.sql & javax.sql packages)
*JDBC Driver Types
*JDBC API

The JDBC API is available in the java.sql and javax.sql packages.


Following are important JDBC classes, interfaces and exceptions in
the java.sql package:DriverManager - Loads JDBC drivers in
memory. Can also be used to open connections to a data source.
Connection - Represents a connection with a data source. Is also
used for creating Statement, PreparedStatement and
CallableStatement objects.
Statement - Represents a static SQL statement. Can be used to
retrieve ResultSet object/s. PreparedStatement - Higher performance
alternative to Statement object, represents a precompiled SQL
statement.
JDBC Driver Types
There are 4 types of JDBC drivers. Commonest and
most efficient of which are type 4 drivers. Here is the
description of each of them:
JDBC Type 1 Driver - They are JDBC-ODBC Bridge
drivers. They delegatethe work of data access to ODBC
API. They are the slowest of all. SUN provides a
JDBC/ODBC driver implementation.
JDBC Type 2 Driver - They mainly use native API for
data access and provide Java wrapper classes to be able
to be invoked using JDBC drivers.
Thanks

You might also like