IP Project File CLASS 12

Embed Size (px)

Citation preview

  • 8/10/2019 IP Project File CLASS 12

    1/33

    By-

  • 8/10/2019 IP Project File CLASS 12

    2/33

    Project File

    On

    Hotel Managment

    Session: 2014-15

    By-

    Amey Satpute

    Under the guidance of

    Mrs.Lalita Chatterjee

    for partial fulfillment of

    Class XII

    CBSE

    Submitted to:

    J W H RL L NEHRU

    SCHOOL

    BHEL BHO PAL.

  • 8/10/2019 IP Project File CLASS 12

    3/33

    A project usually falls short of its expectations unless guided by

    the right person at the right time. This project would not have

    been completed without the direct and indirect support of Mrs

    Lalita Chatterjee and school authorities. She provided me

    with an environment conductive of healthy learning and her

    support. This project would not have been such a success without

    her contribution. Last but not the least, I would like to thank

    my Family, Friends and all those who helped me in some

    way or the other in successful completion of the project.

    Amey Satpute

    &

    S.R.S.Siddhart

  • 8/10/2019 IP Project File CLASS 12

    4/33

    This is to certify that Amey Satpute &

    SSRSSiddhart

    has successfully completed the Project

    File with the help of Java Programming Language and

    MySQL under my guidance & supervision.

    I am satisfied with there initiative and the efforts for

    the completion of Project file as a part of curriculum of

    CBSE Class XIIExamination.

    DATE: 14thNovember , 2014

    PLACE: BHOPAL

    Signature Signature

    Of Of

    Internal Examiner External Examiner

    bout our project

  • 8/10/2019 IP Project File CLASS 12

    5/33

  • 8/10/2019 IP Project File CLASS 12

    6/33

  • 8/10/2019 IP Project File CLASS 12

    7/33

    INTRODUCTION TO THE PROJECTAIRLINE RESERVATION SYSTEM

    This project has been designed using JAVA platform and MySQL as

    database.

    FLIGHTS, PASSENGER and CANCELLED are three tables in MySQL. The

    records of flights are displayed from FLIGHTS table as per the details

    of destinations entered by passenger. The personal details given by

    passenger are stored in PASSENGER table. We can add and delete

    records from PASSENGER table. The records that are deleted from

    passenger table are moved to CANCELLED table.

  • 8/10/2019 IP Project File CLASS 12

    8/33

    INTRODUCTION TO JAVA

    Java is a computer programming languagethat is concurrent,class-

    based, object-oriented, and specifically designed to have as fewimplementation 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

    compiledtobytecodethat can run on anyJava virtual machine(JVM)

    regardless of computer architecture. Java is, as of 2014, one of the

    most popular programming languages in use, particularly for client-

    server 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 itssyntaxfromCandC++,but it has fewer

    low-levelfacilities 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 theJava 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).

    http://en.wikipedia.org/wiki/Computer_programming_languagehttp://en.wikipedia.org/wiki/Computer_programming_languagehttp://en.wikipedia.org/wiki/Concurrent_computinghttp://en.wikipedia.org/wiki/Concurrent_computinghttp://en.wikipedia.org/wiki/Class-basedhttp://en.wikipedia.org/wiki/Class-basedhttp://en.wikipedia.org/wiki/Class-basedhttp://en.wikipedia.org/wiki/Object-oriented_programminghttp://en.wikipedia.org/wiki/Object-oriented_programminghttp://en.wikipedia.org/wiki/Write_once,_run_anywherehttp://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Java_virtual_machinehttp://en.wikipedia.org/wiki/Java_virtual_machinehttp://en.wikipedia.org/wiki/Java_virtual_machinehttp://en.wikipedia.org/wiki/Computer_architecturehttp://en.wikipedia.org/wiki/Computer_architecturehttp://en.wikipedia.org/wiki/James_Goslinghttp://en.wikipedia.org/wiki/James_Goslinghttp://en.wikipedia.org/wiki/Sun_Microsystemshttp://en.wikipedia.org/wiki/Sun_Microsystemshttp://en.wikipedia.org/wiki/Sun_acquisition_by_Oraclehttp://en.wikipedia.org/wiki/Sun_acquisition_by_Oraclehttp://en.wikipedia.org/wiki/Java_(software_platform)http://en.wikipedia.org/wiki/Java_(software_platform)http://en.wikipedia.org/wiki/Syntax_(programming_languages)http://en.wikipedia.org/wiki/Syntax_(programming_languages)http://en.wikipedia.org/wiki/Syntax_(programming_languages)http://en.wikipedia.org/wiki/C_(programming_language)http://en.wikipedia.org/wiki/C_(programming_language)http://en.wikipedia.org/wiki/C_(programming_language)http://en.wikipedia.org/wiki/C%2B%2Bhttp://en.wikipedia.org/wiki/C%2B%2Bhttp://en.wikipedia.org/wiki/C%2B%2Bhttp://en.wikipedia.org/wiki/Low-level_programming_languagehttp://en.wikipedia.org/wiki/Low-level_programming_languagehttp://en.wikipedia.org/wiki/Reference_implementation_(computing)http://en.wikipedia.org/wiki/Reference_implementation_(computing)http://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Library_(computing)http://en.wikipedia.org/wiki/Library_(computing)http://en.wikipedia.org/wiki/Java_Community_Processhttp://en.wikipedia.org/wiki/Java_Community_Processhttp://en.wikipedia.org/wiki/Java_Community_Processhttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/GNU_Compiler_for_Javahttp://en.wikipedia.org/wiki/GNU_Compiler_for_Javahttp://en.wikipedia.org/wiki/GNU_Classpathhttp://en.wikipedia.org/wiki/GNU_Classpathhttp://en.wikipedia.org/wiki/IcedTeahttp://en.wikipedia.org/wiki/IcedTeahttp://en.wikipedia.org/wiki/IcedTeahttp://en.wikipedia.org/wiki/GNU_Classpathhttp://en.wikipedia.org/wiki/GNU_Compiler_for_Javahttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/Java_Community_Processhttp://en.wikipedia.org/wiki/Library_(computing)http://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Reference_implementation_(computing)http://en.wikipedia.org/wiki/Low-level_programming_languagehttp://en.wikipedia.org/wiki/C%2B%2Bhttp://en.wikipedia.org/wiki/C_(programming_language)http://en.wikipedia.org/wiki/Syntax_(programming_languages)http://en.wikipedia.org/wiki/Java_(software_platform)http://en.wikipedia.org/wiki/Sun_acquisition_by_Oraclehttp://en.wikipedia.org/wiki/Sun_Microsystemshttp://en.wikipedia.org/wiki/James_Goslinghttp://en.wikipedia.org/wiki/Computer_architecturehttp://en.wikipedia.org/wiki/Java_virtual_machinehttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Write_once,_run_anywherehttp://en.wikipedia.org/wiki/Object-oriented_programminghttp://en.wikipedia.org/wiki/Class-basedhttp://en.wikipedia.org/wiki/Class-basedhttp://en.wikipedia.org/wiki/Concurrent_computinghttp://en.wikipedia.org/wiki/Computer_programming_language
  • 8/10/2019 IP Project File CLASS 12

    9/33

    HISTORY OF JAVA

    James Gosling, Mike Sheridan, and Patrick Naughton initiated the

    Java language project in June 1991. Java was originally designed forinteractive 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 aC/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. Majorweb browsers soon incorporated the ability to run

    Java applets within web pages, and Java quickly became popular. The

    Java 1.0 compiler was re-writtenin Java byArthur van Hoff to comply

    strictly with the Java 1.0 language specification. With the advent ofJava 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 asJava EE,Java ME,andJava 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.

    http://en.wikipedia.org/wiki/James_Goslinghttp://en.wikipedia.org/wiki/Patrick_Naughtonhttp://en.wikipedia.org/wiki/Oak_(programming_language)http://en.wikipedia.org/wiki/Oakhttp://en.wikipedia.org/wiki/Java_coffeehttp://en.wikipedia.org/wiki/Java_coffeehttp://en.wikipedia.org/wiki/C_(programming_language)http://en.wikipedia.org/wiki/C%2B%2Bhttp://en.wikipedia.org/wiki/Sun_Microsystemshttp://en.wikipedia.org/wiki/Computing_platformhttp://en.wikipedia.org/wiki/Web_browserhttp://en.wikipedia.org/wiki/Java_applethttp://en.wikipedia.org/wiki/Bootstrapping_(compilers)http://en.wikipedia.org/wiki/Arthur_van_Hoffhttp://en.wikipedia.org/wiki/Java_Platform,_Enterprise_Editionhttp://en.wikipedia.org/wiki/Java_Platform,_Micro_Editionhttp://en.wikipedia.org/wiki/Java_Platform,_Standard_Editionhttp://en.wikipedia.org/wiki/ISO/IEC_JTC1http://en.wikipedia.org/wiki/Ecma_Internationalhttp://en.wikipedia.org/wiki/De_facto_standardhttp://en.wikipedia.org/wiki/Java_Community_Processhttp://en.wikipedia.org/wiki/Proprietary_softwarehttp://en.wikipedia.org/wiki/Proprietary_softwarehttp://en.wikipedia.org/wiki/Java_Community_Processhttp://en.wikipedia.org/wiki/De_facto_standardhttp://en.wikipedia.org/wiki/Ecma_Internationalhttp://en.wikipedia.org/wiki/ISO/IEC_JTC1http://en.wikipedia.org/wiki/Java_Platform,_Standard_Editionhttp://en.wikipedia.org/wiki/Java_Platform,_Micro_Editionhttp://en.wikipedia.org/wiki/Java_Platform,_Enterprise_Editionhttp://en.wikipedia.org/wiki/Arthur_van_Hoffhttp://en.wikipedia.org/wiki/Bootstrapping_(compilers)http://en.wikipedia.org/wiki/Java_applethttp://en.wikipedia.org/wiki/Web_browserhttp://en.wikipedia.org/wiki/Computing_platformhttp://en.wikipedia.org/wiki/Sun_Microsystemshttp://en.wikipedia.org/wiki/C%2B%2Bhttp://en.wikipedia.org/wiki/C_(programming_language)http://en.wikipedia.org/wiki/Java_coffeehttp://en.wikipedia.org/wiki/Java_coffeehttp://en.wikipedia.org/wiki/Oakhttp://en.wikipedia.org/wiki/Oak_(programming_language)http://en.wikipedia.org/wiki/Patrick_Naughtonhttp://en.wikipedia.org/wiki/James_Gosling
  • 8/10/2019 IP Project File CLASS 12

    10/33

    On November 13, 2006, Sun released much of Java as free and open

    source software,(FOSS), under the terms of theGNU 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 billionmobile phones run Java. On April

    2, 2010, James Gosling resigned from Oracle.

    Features of Java:

    1. Simple

    2. Object-Oriented

    3.

    Platform Independent4. Secured

    5. Robust

    6. Open product

    7. Portable

    8. WORA (Write once Run anywhere)

    http://en.wikipedia.org/wiki/Free_and_open_source_softwarehttp://en.wikipedia.org/wiki/Free_and_open_source_softwarehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/Free_softwarehttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Laptophttp://en.wikipedia.org/wiki/Data_centerhttp://en.wikipedia.org/wiki/Video_game_consolehttp://en.wikipedia.org/wiki/Supercomputerhttp://en.wikipedia.org/wiki/Supercomputerhttp://en.wikipedia.org/wiki/Java_(software_platform)http://en.wikipedia.org/wiki/Mobile_phonehttp://www.javatpoint.com/features-of-java#featuressimplehttp://www.javatpoint.com/features-of-java#featuresobjecthttp://www.javatpoint.com/features-of-java#featuresplateformhttp://www.javatpoint.com/features-of-java#featuressecuredhttp://www.javatpoint.com/features-of-java#featuresrobusthttp://www.javatpoint.com/features-of-java#featuresportablehttp://www.javatpoint.com/features-of-java#featuresportablehttp://www.javatpoint.com/features-of-java#featuresrobusthttp://www.javatpoint.com/features-of-java#featuressecuredhttp://www.javatpoint.com/features-of-java#featuresplateformhttp://www.javatpoint.com/features-of-java#featuresobjecthttp://www.javatpoint.com/features-of-java#featuressimplehttp://en.wikipedia.org/wiki/Mobile_phonehttp://en.wikipedia.org/wiki/Java_(software_platform)http://en.wikipedia.org/wiki/Supercomputerhttp://en.wikipedia.org/wiki/Supercomputerhttp://en.wikipedia.org/wiki/Video_game_consolehttp://en.wikipedia.org/wiki/Data_centerhttp://en.wikipedia.org/wiki/Laptophttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Free_softwarehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/Free_and_open_source_softwarehttp://en.wikipedia.org/wiki/Free_and_open_source_software
  • 8/10/2019 IP Project File CLASS 12

    11/33

    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 calledJava 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 Javaapplets.

    Standardized libraries provide a generic way to access host-specific

    features such as graphics,threading,andnetworking.

    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.

    http://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Machine_codehttp://en.wikipedia.org/wiki/Virtual_machinehttp://en.wikipedia.org/wiki/End-userhttp://en.wikipedia.org/wiki/Java_virtual_machinehttp://en.wikipedia.org/wiki/Applethttp://en.wikipedia.org/wiki/Thread_(computer_science)http://en.wikipedia.org/wiki/Computer_networkhttp://en.wikipedia.org/wiki/Computer_networkhttp://en.wikipedia.org/wiki/Thread_(computer_science)http://en.wikipedia.org/wiki/Applethttp://en.wikipedia.org/wiki/Java_virtual_machinehttp://en.wikipedia.org/wiki/End-userhttp://en.wikipedia.org/wiki/Virtual_machinehttp://en.wikipedia.org/wiki/Machine_codehttp://en.wikipedia.org/wiki/Java_bytecode
  • 8/10/2019 IP Project File CLASS 12

    12/33

    JAVA VIRTUAL MACHINE

    AJava Virtual Machine(JVM) isan abstract computing machine.

    There are three notions of the JVM: specification,

    implementation, and instance. An instance of the JVM can

    execute any executable computer program compiled into Java

    byte code. It is the code execution component of the Java

    platform.

    The Java virtual machine is called "virtual" because it is an

    abstract computer defined by a specification. JVM specification

    omits implementation details that are not part of the Java

    virtual machine's specification. For example, the memory

    layout of run-time data areas, the garbage-collection algorithm

    used, and any internal optimization of the Java virtual machine

    instructions (their translation into machine code). The main

    reason for this omission is to not unnecessarily constrain the

    creativity of implementers. Any Java application can be run only

    inside a run-time instance of some concrete implementation of

    the abstract specification of the Java virtual machine.

    http://en.wikipedia.org/wiki/Virtual_machine#Process_virtual_machineshttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Java_platformhttp://en.wikipedia.org/wiki/Java_platformhttp://en.wikipedia.org/wiki/Java_platformhttp://en.wikipedia.org/wiki/Java_platformhttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Java_bytecodehttp://en.wikipedia.org/wiki/Virtual_machine#Process_virtual_machines
  • 8/10/2019 IP Project File CLASS 12

    13/33

    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 general-

    purpose DBMS is asoftwaresystem designed to allow the definition,

    creation, querying, update, and administration of databases. Well-

    known DBMSs include MySQL, PostgreSQL, Microsoft SQL Server,

    Oracle,SAPandIBM DB2.A database is not generallyportableacross

    different DBMSs, but different DBMSs can interoperate by using

    standardssuch asSQLandODBCorJDBCto 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 therelational modelas represented by theSQLlanguage.

    http://en.wikipedia.org/wiki/Data_(computing)http://en.wikipedia.org/wiki/Data_(computing)http://en.wikipedia.org/wiki/Computer_softwarehttp://en.wikipedia.org/wiki/Computer_softwarehttp://en.wikipedia.org/wiki/Computer_softwarehttp://en.wikipedia.org/wiki/MySQLhttp://en.wikipedia.org/wiki/MySQLhttp://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/Microsoft_SQL_Serverhttp://en.wikipedia.org/wiki/Microsoft_SQL_Serverhttp://en.wikipedia.org/wiki/Oracle_Databasehttp://en.wikipedia.org/wiki/Oracle_Databasehttp://en.wikipedia.org/wiki/SAP_SEhttp://en.wikipedia.org/wiki/SAP_SEhttp://en.wikipedia.org/wiki/SAP_SEhttp://en.wikipedia.org/wiki/IBM_DB2http://en.wikipedia.org/wiki/IBM_DB2http://en.wikipedia.org/wiki/IBM_DB2http://en.wikipedia.org/wiki/Software_portabilityhttp://en.wikipedia.org/wiki/Software_portabilityhttp://en.wikipedia.org/wiki/Software_portabilityhttp://en.wikipedia.org/wiki/Technical_standardhttp://en.wikipedia.org/wiki/Technical_standardhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/ODBChttp://en.wikipedia.org/wiki/ODBChttp://en.wikipedia.org/wiki/ODBChttp://en.wikipedia.org/wiki/JDBChttp://en.wikipedia.org/wiki/JDBChttp://en.wikipedia.org/wiki/JDBChttp://en.wikipedia.org/wiki/Database_modelhttp://en.wikipedia.org/wiki/Database_modelhttp://en.wikipedia.org/wiki/Relational_modelhttp://en.wikipedia.org/wiki/Relational_modelhttp://en.wikipedia.org/wiki/Relational_modelhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/Relational_modelhttp://en.wikipedia.org/wiki/Database_modelhttp://en.wikipedia.org/wiki/JDBChttp://en.wikipedia.org/wiki/ODBChttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/Technical_standardhttp://en.wikipedia.org/wiki/Software_portabilityhttp://en.wikipedia.org/wiki/IBM_DB2http://en.wikipedia.org/wiki/SAP_SEhttp://en.wikipedia.org/wiki/Oracle_Databasehttp://en.wikipedia.org/wiki/Microsoft_SQL_Serverhttp://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/MySQLhttp://en.wikipedia.org/wiki/Computer_softwarehttp://en.wikipedia.org/wiki/Data_(computing)
  • 8/10/2019 IP Project File CLASS 12

    14/33

  • 8/10/2019 IP Project File CLASS 12

    15/33

    aiming to match the high performance of NoSQL compared to

    commercially available relational DBMSs.

  • 8/10/2019 IP Project File CLASS 12

    16/33

    LANGUAGES IN DBMS

    Database languages are special-purpose languages, which do one or

    more of the following:

    1. Data definition language defines data types and the

    relationships among them

    2. Data manipulation language performs tasks such as

    inserting, updating, or deleting data occurrences

    3. Query language allows searching for information and

    computing derived information

    ADVANTAGE OF DATABASE:

    1. Database reduces data redundancy.

    2. Database facilitates sharing of data.

    3. Database enforces standards.

    4. Database insures data security.

    5. Database provides integrity of data

    .

    http://en.wikipedia.org/wiki/Data_definition_languagehttp://en.wikipedia.org/wiki/Data_manipulation_languagehttp://en.wikipedia.org/wiki/Query_languagehttp://en.wikipedia.org/wiki/Query_languagehttp://en.wikipedia.org/wiki/Data_manipulation_languagehttp://en.wikipedia.org/wiki/Data_definition_language
  • 8/10/2019 IP Project File CLASS 12

    17/33

    INTRODUCTION TO MySQL

    MySQL is (as of March 2014) the world's second most widely used

    open-source relational database management system(RDBMS). It isnamed after co-founder Michael Widenius's daughter, My. The SQL

    phrase stands forStructured Query Language.

    The MySQL development project has made its source codeavailable

    under the terms of theGNU 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 MySQLAB,now owned byOracle 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." Free-

    software-open source projects that require a full-featured databasemanagement 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.

    http://en.wikipedia.org/wiki/Relational_database_management_systemhttp://en.wikipedia.org/wiki/Relational_database_management_systemhttp://en.wikipedia.org/wiki/Michael_Wideniushttp://en.wikipedia.org/wiki/Michael_Wideniushttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/Structured_Query_Languagehttp://en.wikipedia.org/wiki/Structured_Query_Languagehttp://en.wikipedia.org/wiki/Structured_Query_Languagehttp://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/Proprietary_softwarehttp://en.wikipedia.org/wiki/Proprietary_softwarehttp://en.wikipedia.org/wiki/Businesshttp://en.wikipedia.org/wiki/Businesshttp://en.wikipedia.org/wiki/Swedenhttp://en.wikipedia.org/wiki/Swedenhttp://en.wikipedia.org/wiki/MySQL_ABhttp://en.wikipedia.org/wiki/MySQL_ABhttp://en.wikipedia.org/wiki/MySQL_ABhttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/LAMP_(software_bundle)http://en.wikipedia.org/wiki/LAMP_(software_bundle)http://en.wikipedia.org/wiki/List_of_AMP_packageshttp://en.wikipedia.org/wiki/List_of_AMP_packageshttp://en.wikipedia.org/wiki/List_of_AMP_packageshttp://en.wikipedia.org/wiki/Linuxhttp://en.wikipedia.org/wiki/Linuxhttp://en.wikipedia.org/wiki/Apache_HTTP_Serverhttp://en.wikipedia.org/wiki/Apache_HTTP_Serverhttp://en.wikipedia.org/wiki/PHPhttp://en.wikipedia.org/wiki/Python_(programming_language)http://en.wikipedia.org/wiki/Python_(programming_language)http://en.wikipedia.org/wiki/Free_softwarehttp://en.wikipedia.org/wiki/Free_softwarehttp://en.wikipedia.org/wiki/Free_softwarehttp://en.wikipedia.org/wiki/Free_softwarehttp://en.wikipedia.org/wiki/Free_softwarehttp://en.wikipedia.org/wiki/Python_(programming_language)http://en.wikipedia.org/wiki/PHPhttp://en.wikipedia.org/wiki/Apache_HTTP_Serverhttp://en.wikipedia.org/wiki/Linuxhttp://en.wikipedia.org/wiki/List_of_AMP_packageshttp://en.wikipedia.org/wiki/LAMP_(software_bundle)http://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/MySQL_ABhttp://en.wikipedia.org/wiki/MySQL_ABhttp://en.wikipedia.org/wiki/Swedenhttp://en.wikipedia.org/wiki/Businesshttp://en.wikipedia.org/wiki/Proprietary_softwarehttp://en.wikipedia.org/wiki/GNU_General_Public_Licensehttp://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Structured_Query_Languagehttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/Michael_Wideniushttp://en.wikipedia.org/wiki/Relational_database_management_system
  • 8/10/2019 IP Project File CLASS 12

    18/33

    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 newSQLinterface, 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.

    FEATURES AND LIMITATIONS

    MySQL is offered under two different editions: the open source

    MySQL Community Server and the proprietary Enterprise Server.

    MySQL Enterprise Server is differentiated by a series of proprietary

    extensions which install as server plugins, but otherwise shares the

    version numbering system and is built from the same code base.

    Major features as available in MySQL 5.6:

    1. A broad subset ofANSI SQL 99,as well as extensions

    2.

    Cross-platform support3. Stored procedures,using a procedural language that closely

    adheres toSQL/PSM

    4. Triggers

    5. Cursors

    6. Updatableviews

    7.

    Online DDL when using the InnoDB Storage Engine.

    http://en.wikipedia.org/wiki/David_Axmarkhttp://en.wikipedia.org/wiki/Allan_Larssonhttp://en.wikipedia.org/wiki/Michael_(Monty)_Wideniushttp://en.wikipedia.org/wiki/MSQLhttp://en.wikipedia.org/wiki/ISAMhttp://en.wikipedia.org/wiki/Structured_Query_Languagehttp://en.wikipedia.org/wiki/Application_programming_interfacehttp://en.wikipedia.org/wiki/MySQL_Enterprisehttp://en.wikipedia.org/wiki/SQL:1999http://en.wikipedia.org/wiki/Stored_procedurehttp://en.wikipedia.org/wiki/SQL/PSMhttp://en.wikipedia.org/wiki/Database_triggerhttp://en.wikipedia.org/wiki/Cursor_(databases)http://en.wikipedia.org/wiki/View_(SQL)http://en.wikipedia.org/wiki/Data_Definition_Languagehttp://en.wikipedia.org/wiki/Data_Definition_Languagehttp://en.wikipedia.org/wiki/View_(SQL)http://en.wikipedia.org/wiki/Cursor_(databases)http://en.wikipedia.org/wiki/Database_triggerhttp://en.wikipedia.org/wiki/SQL/PSMhttp://en.wikipedia.org/wiki/Stored_procedurehttp://en.wikipedia.org/wiki/SQL:1999http://en.wikipedia.org/wiki/MySQL_Enterprisehttp://en.wikipedia.org/wiki/Application_programming_interfacehttp://en.wikipedia.org/wiki/Structured_Query_Languagehttp://en.wikipedia.org/wiki/ISAMhttp://en.wikipedia.org/wiki/MSQLhttp://en.wikipedia.org/wiki/Michael_(Monty)_Wideniushttp://en.wikipedia.org/wiki/Allan_Larssonhttp://en.wikipedia.org/wiki/David_Axmark
  • 8/10/2019 IP Project File CLASS 12

    19/33

    8. Information schema

    9. Performance Schema

    10. A set of SQL Mode options to control runtime behavior,

    including a strict mode to better adhere to SQL standards.

    11. X/Open XAdistributed transaction processing (DTP) support;

    two phase commit as part of this, using the default InnoDB

    storage engine

    12. Transactions withsavepoints when using the default InnoDB

    Storage Engine. The NDB Cluster Storage Engine also

    supports transactions.

    13.

    ACID compliance when using InnoDB and NDB Cluster

    Storage Engines

    14. SSL support

    15. Querycaching

    16. Sub-SELECTs (i.e. nested SELECTs)

    17. Built-in Replication support (i.e. Master-Master Replication

    & Master-Slave Replication) with one master per slave, manyslaves per master. Multi-master replication is provided in

    MySQL Cluster, and multi-master support can be added to

    unclustered configurations using Galera Cluster.

    18. Full-textindexing and searching]

    19. Embedded database library

    20. Unicode support

    21. Partitioned tables with pruning of partitions in optimizer

    22. Shared-nothing clustering throughMySQL Cluster

    23. Multiple storage engines, allowing one to choose the one

    that is most effective for each table in the application.

    24. Native storage engines InnoDB, MyISAM, Merge, Memory

    (heap),Federated,Archive,CSV,Blackhole, NDB Cluster.

    http://en.wikipedia.org/wiki/Information_schemahttp://en.wikipedia.org/wiki/X/Open_XAhttp://en.wikipedia.org/wiki/Distributed_transaction_processinghttp://en.wikipedia.org/wiki/Two-phase-commit_protocolhttp://en.wikipedia.org/wiki/InnoDBhttp://en.wikipedia.org/wiki/Savepointhttp://en.wikipedia.org/wiki/Atomicity,_consistency,_isolation,_durabilityhttp://en.wikipedia.org/wiki/Secure_Sockets_Layerhttp://en.wikipedia.org/wiki/Cache_(computing)http://en.wikipedia.org/wiki/Select_(SQL)http://en.wikipedia.org/wiki/Database_replicationhttp://en.wikipedia.org/wiki/Multi-master_replicationhttp://en.wikipedia.org/wiki/MySQL_Clusterhttp://en.wikipedia.org/wiki/Index_(database)http://en.wikipedia.org/wiki/MySQL#cite_note-41http://en.wikipedia.org/wiki/MySQL#cite_note-41http://en.wikipedia.org/wiki/Unicodehttp://en.wikipedia.org/wiki/Shared-nothinghttp://en.wikipedia.org/wiki/MySQL_Clusterhttp://en.wikipedia.org/wiki/MySQL_Federatedhttp://en.wikipedia.org/wiki/Comma-separated_valueshttp://en.wikipedia.org/wiki/Comma-separated_valueshttp://en.wikipedia.org/wiki/MySQL_Federatedhttp://en.wikipedia.org/wiki/MySQL_Clusterhttp://en.wikipedia.org/wiki/Shared-nothinghttp://en.wikipedia.org/wiki/Unicodehttp://en.wikipedia.org/wiki/MySQL#cite_note-41http://en.wikipedia.org/wiki/Index_(database)http://en.wikipedia.org/wiki/MySQL_Clusterhttp://en.wikipedia.org/wiki/Multi-master_replicationhttp://en.wikipedia.org/wiki/Database_replicationhttp://en.wikipedia.org/wiki/Select_(SQL)http://en.wikipedia.org/wiki/Cache_(computing)http://en.wikipedia.org/wiki/Secure_Sockets_Layerhttp://en.wikipedia.org/wiki/Atomicity,_consistency,_isolation,_durabilityhttp://en.wikipedia.org/wiki/Savepointhttp://en.wikipedia.org/wiki/InnoDBhttp://en.wikipedia.org/wiki/Two-phase-commit_protocolhttp://en.wikipedia.org/wiki/Distributed_transaction_processinghttp://en.wikipedia.org/wiki/X/Open_XAhttp://en.wikipedia.org/wiki/Information_schema
  • 8/10/2019 IP Project File CLASS 12

    20/33

    25. Commit grouping, gathering multiple transactions from

    multiple connections together to increase the number of

    commits per second.

    The developers release minor updates of the MySQL Server

    approximately every two months. The sources can be obtained from

    MySQL's website or from MySQL'sBazaar repository, both under the

    GPL license.

    Some of its limitations are:

    Like other SQL databases,MySQL does not currently comply with the

    full SQL standard for some of the implemented functionality,including foreign key references when using some storage engines

    other than the default of InnoDB.]

    Up until MySQL 5.7, triggers are limited to one per action / timing,

    meaning that at most one trigger can be defined to be executed after

    an INSERT operation, and one beforeINSERT on the same table. No

    triggers can be defined on views.

    MySQL, like most othertransactional relational databases, is stronglylimited by hard disk performance. This is especially true in terms of

    write latency. Given the recent appearance of very affordable

    consumer grade SATA interface solid-state drives that offer zero

    mechanical latency,a fivefold speedup over even an eight drive RAID

    array can be had for a smaller investment.

    MySQL database's inbuilt functions like UNIX_TIMESTAMP() will

    return 0 after 03:14:07UTC on 19 January 2038.

    http://en.wikipedia.org/wiki/Bazaar_(software)http://en.wikipedia.org/wiki/SQL#Cross-vendor_portabilityhttp://en.wikipedia.org/wiki/MySQL#cite_note-44http://en.wikipedia.org/wiki/MySQL#cite_note-44http://en.wikipedia.org/wiki/MySQL#cite_note-44http://en.wikipedia.org/wiki/Database_transactionhttp://en.wikipedia.org/wiki/Solid-state_drivehttp://en.wikipedia.org/wiki/Latency_(engineering)#Mechanical_latencyhttp://en.wikipedia.org/wiki/UTChttp://en.wikipedia.org/wiki/UTChttp://en.wikipedia.org/wiki/Latency_(engineering)#Mechanical_latencyhttp://en.wikipedia.org/wiki/Solid-state_drivehttp://en.wikipedia.org/wiki/Database_transactionhttp://en.wikipedia.org/wiki/MySQL#cite_note-44http://en.wikipedia.org/wiki/SQL#Cross-vendor_portabilityhttp://en.wikipedia.org/wiki/Bazaar_(software)
  • 8/10/2019 IP Project File CLASS 12

    21/33

    INTRODUCTION:

    Introduction to NEW JFRAME:-

    This is the welcoming page of our project.

    By entering the correct user name and passwordwe can proceed.

  • 8/10/2019 IP Project File CLASS 12

    22/33

    SCREENSHOT

  • 8/10/2019 IP Project File CLASS 12

    23/33

    CODING

    Coding for Loginbutton:

    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("");

    }

  • 8/10/2019 IP Project File CLASS 12

    24/33

    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.

    Pressing EXIT button will close the application.

  • 8/10/2019 IP Project File CLASS 12

    25/33

    SCREENSHOT

  • 8/10/2019 IP Project File CLASS 12

    26/33

    CODING

    1. Coding for New Reservation button:

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

    NewJFrame2 obj = new NewJFrame2();

    obj.setVisible(true); // TODO add your handling code here:

    }

    2. Coding for EXIT button

    System.exit(0);

    3.Coding for Search Record button

  • 8/10/2019 IP Project File CLASS 12

    27/33

  • 8/10/2019 IP Project File CLASS 12

    28/33

  • 8/10/2019 IP Project File CLASS 12

    29/33

    BIBLIOGRAPHY

    1. Moving ahead with information practices(Question Bank) by

    Sumita Arora

  • 8/10/2019 IP Project File CLASS 12

    30/33

    2. Informatics practices by Rita Sahoo class 11

    3. Informatics practices by Rita Sahoo class 12

  • 8/10/2019 IP Project File CLASS 12

    31/33

    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 supportedIn 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.

  • 8/10/2019 IP Project File CLASS 12

    32/33

    THE END

  • 8/10/2019 IP Project File CLASS 12

    33/33