IP Project File CLASS 12
IP Project File CLASS 12
IP Project File CLASS 12
Project File
On
Hotel Managment
Session: 2014-15
Mrs.Lalita Chatterjee
for partial fulfillment of
Class XII
CBSE
Submitted to:
JAWAHARLAL NEHRU
SCHOOL
BHEL,BHOPAL.
Amey Satpute
&
S.R.S.Siddhart
Signature
Of
External Examiner
INTRODUCTION TO JAVA
Java is a computer programming language that is concurrent, classbased, object-oriented, and specifically designed to have as few
implementation dependencies as possible. It is intended to let
application developers "write once, run anywhere" (WORA),
meaning that code that runs on one platform does not need to be
recompiled to run on another. Java applications are typically
compiled to bytecode that can run on any Java virtual machine (JVM)
regardless of computer architecture. Java is, as of 2014, one of the
most popular programming languages in use, particularly for clientserver web applications, with a reported 9 million developers. Java
was originally developed by James Gosling at Sun Microsystems
(which has since merged into Oracle Corporation) and released in
1995 as a core component of Sun Microsystems' Java platform. The
language derives much of its syntax from C and C++, but it has fewer
low-level facilities than either of them.
The original and reference implementation Java compilers, virtual
machines, and class libraries were originally released by Sun under
proprietary licences. As of May 2007, in compliance with the
specifications of the Java Community Process, Sun relicensed most of
its Java technologies under the GNU General Public License. Others
have also developed alternative implementations of these Sun
technologies, such as the GNU Compiler for Java (bytecode
compiler), GNU Class path (standard libraries), and IcedTea-Web
(browser plug-in for applets).
HISTORY OF JAVA
James Gosling, Mike Sheridan, and Patrick Naughton initiated the
Java language project in June 1991. Java was originally designed for
interactive television, but it was too advanced for the digital cable
television industry at the time. The language was initially called Oak
after anoak tree that stood outside Gosling's office. Later the project
went by the name Green and was finally renamed Java, from Java
coffee, said to be consumed in large quantities by the language's
creators. Gosling designed Java with a C/C++-style syntax that system
and application programmers would find familiar.
Sun Microsystems released the first public implementation as Java
1.0 in 1995. It promised "Write Once, Run Anywhere" (WORA),
providing no-cost run-times on popular platforms. Fairly secure and
featuring configurable security, it allowed network- and file-access
restrictions. Major web browsers soon incorporated the ability to run
Java applets within web pages, and Java quickly became popular. The
Java 1.0 compiler was re-written in Java by Arthur van Hoff to comply
strictly with the Java 1.0 language specification. With the advent of
Java 2 (released initially as J2SE 1.2 in December 1998 1999), new
versions had multiple configurations built for different types of
platforms. J2EE included technologies and APIs for enterprise
applications typically run in server environments, while J2ME
featured APIs optimized for mobile applications. The desktop version
was renamed J2SE. In 2006, for marketing purposes, Sun renamed
new J2 versions as Java EE, Java ME, and Java SE, respectively.
In 1997, Sun Microsystems approached the ISO/IEC JTC1 standards
body and later the Ecma International to formalize Java, but it soon
withdrew from the process.Java remains a de facto standard,
controlled through the Java Community Process. At one time, Sun
made most of its Java implementations available without charge,
despite their proprietary software status. Sun generated revenue
from Java through the selling of licenses for specialized products
such as the Java Enterprise System.
On November 13, 2006, Sun released much of Java as free and open
source software, (FOSS), under the terms of the GNU General Public
License (GPL). On May 8, 2007, Sun finished the process, making all
of Java's core code available under free software/open-source
distribution terms, aside from a small portion of code to which Sun
did not hold the copyright.
Sun's vice-president Rich Green said that Sun's ideal role with
regards to Java was as an "evangelist." Following Oracle
Corporation's acquisition of Sun Microsystems in 20092010, Oracle
has described itself as the "steward of Java technology with a
relentless commitment to fostering a community of participation and
transparency". This did not prevent Oracle from filing a lawsuit
against Google shortly after that for using Java inside the Android
SDK (see Google section below). Java software runs on everything
from laptops to data centres, game consoles to scientific super
computers. There are 930 million Java Runtime Environment
downloads each year and 3 billion mobile phones run Java. On April
2, 2010, James Gosling resigned from Oracle.
Features of Java:
1.
2.
3.
4.
5.
6.
7.
8.
Simple
Object-Oriented
Platform Independent
Secured
Robust
Open product
Portable
WORA (Write once Run anywhere)
JAVA PLATFORM
One design goal of Java is portability, which means that programs
written for the Java platform must run similarly on any combination
of hardware and operating system with adequate runtime support.
This is achieved by compiling the Java language code to an
intermediate representation called Java byte code, instead of directly
to architecture-specific machine code. Java byte code instructions
are analogous to machine code, but they are intended to be
executed by a virtual machine (VM) written specifically for the host
hardware. End-users commonly use a Java Runtime Environment
(JRE) installed on their own machine for standalone Java
applications, or in a web browser for Java applets.
Standardized libraries provide a generic way to access host-specific
features such as graphics, threading, and networking.
A major benefit of using byte code is porting. However, the overhead
of interpretation means that interpreted programs almost always
run more slowly than programs compiled to native executables
would. Just-in-Time (JIT) compilers were introduced from an early
stage that compiles byte codes to machine code during runtime.
are
three
notions
of
the
JVM:
specification,
INTRODUCTION TO DBMS
A database is an organized collection of data. The data are typically
organized to model aspects of reality in a way that supports
processes requiring information.
Data Base Management Systems (DBMSs) are specially designed
software applications that interact with the user, other applications,
and the database itself to capture and analyze data. A generalpurpose DBMS is a software system designed to allow the definition,
creation, querying, update, and administration of databases. Wellknown DBMSs include MySQL, PostgreSQL, Microsoft SQL Server,
Oracle, SAP and IBM DB2. A database is not generally portable across
different DBMSs, but different DBMSs can interoperate by using
standards such as SQL and ODBC or JDBC to allow a single application
to work with more than one DBMS. Database management systems
are often classified according to the database model that they
support; the most popular database systems since the 1980s have all
supported the relational model as represented by the SQL language.
HISTORY OF DBMS
Following the technology progress in the areas of processors,
computer memory, computer storage and computer networks, the
sizes, capabilities, and performance of databases and their respective
DBMSs have grown in orders of magnitude. The development of
database technology can be divided into three eras based on data
model or structure:navigational, SQL/relational, and post-relational.
The two main early navigational data models were the hierarchical
model, epitomized by IBM's IMS system, and the CODASYL model
(network model), implemented in a number of products such as
IDMS.
The relational model, first proposed in 1970 by Edgar F. Codd,
departed from this tradition by insisting that applications should
search for data by content, rather than by following links. The
relational model employs sets of ledger-style tables, each used for a
different type of entity. Only in the mid-1980s did computing
hardware become powerful enough to allow the wide deployment of
relational systems (DBMSs plus applications). By the early 1990s,
however, relational systems dominated in all large-scale data
processing applications, and as of 2014 they remain dominant except
in niche areas. The dominant database language, standardised SQL
for the relational model, has influenced database languages for other
data models.
Object databases were developed in the 1980s to overcome the
inconvenience of object-relational impedance mismatch, which led
to the coining of the term "post-relational" and also the
development of hybrid object-relational databases.
The next generation of post-relational databases in the late 2000s
became known as NoSQL databases, introducing fast key-value
stores and document-oriented databases. A competing "next
generation" known as NewSQL databases attempted new
implementations that retained the relational/SQL model while
LANGUAGES IN DBMS
Database languages are special-purpose languages, which do one or
more of the following:
1.
2.
3.
ADVANTAGE OF DATABASE:
1.
2.
3.
4.
5.
INTRODUCTION TO MySQL
MySQL is (as of March 2014) the world's second most widely used
open-source relational database management system (RDBMS). It is
named after co-founder Michael Widenius's daughter, My. The SQL
phrase stands for Structured Query Language.
The MySQL development project has made its source code available
under the terms of the GNU General Public License, as well as under
a variety of proprietary agreements. MySQL was owned and
sponsored by a single for-profit firm, the Swedish company MySQL
AB, now owned by Oracle Corporation.
MySQL is a popular choice of database for use in web applications,
and is a central component of the widely used LAMP open source
web application software stack (and other 'AMP' stacks). LAMP is an
acronym for "Linux, Apache, MySQL, Perl/PHP/Python." Freesoftware-open source projects that require a full-featured database
management system often use MySQL.
MySQL is a query language that provide several DDL, DML, DCL and
TCL commands that helps us in feeding, manipulating , updating the
information stored in tabular form.
It allows us to store and retrieve inter-related information.
Connectivity is a tool that enables us to retrieve, update, delete data
from MySQL tables using java program.
HISTORY OF MySQL
MySQL was created by a Swedish company, MySQL AB, founded by
David Axmark, Allan Larsson and Michael "Monty" Widenius. The
first version of MySQL appeared on 23 May 1995. It was initially
created for personal usage from mSQL based on the low-level
language ISAM, which the creators considered too slow and
inflexible. They created a new SQLinterface, while keeping the same
API as mSQL. By keeping the API consistent with the mSQL system,
many developers were able to use MySQL instead of the
(proprietarily licensed) mSQL antecedent.
2.
Cross-platform support
3.
4.
Triggers
5.
Cursors
6.
Updatable views
7.
8.
Information schema
9.
Performance Schema
INTRODUCTION:
Introduction to NEW JFRAME:-
SCREENSHOT
CODING
Coding for Login button:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String user = txtuser.getText();
String pwd = new String(txtpwd.getPassword());
if (user.equals("") && pwd.equals(""))
{
NewJFrame1 obj = new NewJFrame1();
obj.setVisible(true); } else{
JOptionPane.showMessageDialog(this,"Invalid Username or Password");
txtuser.setText("");
txtpwd.setText("");
NEW JFRAME 1
INTRODUCTION:
This page having 3 button
New Reservation button will deals with new booking of the rooms.
Search reservation button will show the save record.
Delete record button will delete the record.
SCREENSHOT
CODING
1. Coding for New Reservation button:
BIBLIOGRAPHY
1.
2.
3.
Limitation
As said, perfection can only be dreamed of; our project also has
some limitations, which stops it to reach the ultimate goal of
perfection. Mentioned below, are some of those.
Money matters not involved
As in a general airways ticket booking system, user needs to pay for
the tickets they have booked. But we have limited our scope to not
include this factor.
Multiple users not supported
In our project we are using only one users login id to do all the
operation. As in general, booking system offer multiple user option
with different credentials to login, to view and do activities in their
respective account. Single user credentials are maintained.
THE END