Sie sind auf Seite 1von 6

A BRIEF INTRODUCTION (How it executes?

) ABOUT JAVA

This project is based on JDBC in JAVA In this we create maximum of 4 forms which will describe the whole project Steps involved in the project First of all, the main thing to start a JDBC Project is to connect our JAVA program with the SQL Server. This is called the Back-hand Process. The forms which we create in our JAVA program have their database in the SQL Server. The SQL Server holds the whole database, and to check the working of any entries in the program we can consult the same from the SQL Server Database by applying the queries to it. Database it contains data that is in an organized form. Client/Server applications make extensive use of database programming. Typical activities involved in a database application are opening a connection, communicating with database, executing SQL statements and retrieving query results.ODBC and ODBC are two widely used APIs for such activities. The SQL Server will desire for Server type, Server name and authentication. If authentication is windows authentication then there is no need to give user name and password. Then new database is created by selected the option form SQL Server. Then new database is thus created and the user will use the appropriate query such as to add, delete, modify etc.

Different steps followed to access a databaseA table must be created into the SQL Server. Once the table has been created, a data source to connect to SQL Server is to be created. These steps are as followed Click on Start ->Settings->Control Panel. Double Click on the Administrative Tools icon. Select Data Sources (ODBC) icon. Select the System DSN tabs. Click in add button to open the New Data Source Window. Choose SQL Server. Click on Finish button to open the create e New Data Source to SQL Server dialog box. Type the Data Source name and description as test(any name) and select a system name on which SQL Servers installed.SQL Server name, Click on next. The dialog box which opens shows option for login authentication. Choose the default settings. Click on next. The dialog box shown, allows the user to choose the database. Click on next. The dialog box displays default settings. Click on Finish button. The ODBC Microsoft SQL Server Setup dialog box is displayed. Click on Test Data Source to check for the connection. Click on OK. The Data Source name appears in the System DSN tab.

Now after creation of Database Connection through SQL Server. Different forms are created in JAVA programs. Here in the project we are creating 4 forms. This includes Form1-Login Form- in which the user has to enter the correct information, and this can be confirmed by filling up the correct User Name and Password with the desired authentication. This Form further contains the two conditions. These ares1. If the user is Admin then he or she can move into the next form which is the issuing tickets, and is allowed to add few more entries into the table. 2. But if the user is Host then he or she is only allowed to search any entry but is not permissible to add any new entry. 3. Also if the user entered the incorrect User Name and Password the a message as Invalid User will be confirmed Form2- Then comes the introduction to the new Form which is the option frame That has its three options .These are1. Search Form-only this option will be activated for the user if there is an Admin there.

2. Issuing Tickets-with the activation of this option all other options are also activated for the user. 3. Back- this will let the user to bring out back to login form option. Form3- The next Form will be the issuing Ticket form if the user is Admin along with the correct User Name and Password. Here the user has different options. These are1. Date-which gets set automatically when this form gets open. 2. Sr.no-which tells the next person no. to be enter into the bus. 3. Person Name-which stores the name of that person which is going to be inserted 4. Time-which is the main field here because with the help of it the Destination get changed. 5. Destination-this is the field which offers the various options to user to start the journey within any place as prescribed under the list. 6. Arrival-it has the same entries as in the Destination option. 7. Total Seats-which will describe the total seats that the bus currently has (filled empty). 8. Available Seats-this will explain the no. of seats left over when all the other seats are filled.

9. Cost- This will show the fare accordingly with arrival stations. 10. Add button to add the record. 11. Check-to check that whether any seat is available or not. 12. Search-which directly links the user to the search form to search any entry. Form 4- Search Form- to search any entry if the authentication is only the Host. It has the same fields as in the issuing tickets form But it has two new buttons these are Delete and Search. 1. Delete helps to delete the selected no. from the list 2. Search- to search that no. from the list on which the user wants to do the modification.

Das könnte Ihnen auch gefallen