Professional Documents
Culture Documents
Page 1
SUBMITTED TO THE DEPATMENT OF COMPUTER SCIENCE IN PARTIAL FULFILLMENT OF REQUIREMENTS FOR THE B.C.A-IIIrd YEAR
& KAVITA
COCO-COLA COMPANY
Page 2
Project for the partial fulfillment for the award of Bachelors degree In Computer Applications
BY JYOTI KUMARI ROLLA Project submitted in partial fulfillment of the requirements for the degree of Bachelors of Computer Application Of Magadh University
COCO-COLA COMPANY
Page 4
ACKNOWLEDGEMENT
A Project report usually falls short of its. Expectation unless aided and guided by right time. We humbly state that this project is not a fruit of our individual effort but a number of persons who guided us throughout the span of this project. First, acknowledge and we would deep like sense to of express
gratitude to our respected sir Mr. Ananth Kumar faculty of Department of Computer application J.D WOMENs COLLEGE, PATNA and also be very thankful to my partner and others who help me in completing my project as well as give me the valuable suggestion. My thanks belong to all who help me with their full support and encouragement at my every step.
COCO-COLA COMPANY
Page 5
ID-SHEET
NAME : JYOTI KUMARI
ADDRESS :
PROJECT TITLE :
PURPOSE :
B.C.A PROJECT
COLLEGE :
COCO-COLA COMPANY
Page 6
INDEX
SI. NO. I. II. III. IV. V. VI. VII. TOPIC CERTIFICATE OF ORIGINALITY EXAMINERS CERTIFICATE DECLARATION CERTIFICATE PREFACE ACKNOWLEDGEMENT ID-SHEET INTRODUCTION TO THE PROJECT i. ii. iii. iv. v. vi. vii. TITTLE OF THE PROJECT INTRODUCTION OF THE PROJECT PROJECT CATEGORY OBJECTIVE OF THE PROJECT BANK INPUT DETAILS PROCESS LOGIC TO EACH MODULE OUTPUT OF THE PROJECT PAGE NO.
COCO-COLA COMPANY
Page 7
xi.
Feasibility Study
COCO-COLA COMPANY
Page 8
INDEX
SI. NO. TOPIC
PAGE NO.
VIII. ENVIRONMENT &APPLICATION TOOLS i. ii. iii. iv. v. vi. ABOUT J2EE Enterprise Java Beans (EJB) Java Server Pages (JSP) The WebLogic Server Solution WebLogic Server Application architecture Java Database Connectivity (JDBC)
vii. Introduction To Oracle IX. SOFTWARE REQUIREMENTS &SPECIFICATION i. ii. iii. iv. v. THE LINEAR SEQUENTIAL MODEL THE PROTOTYPING MODEL THE RAD MODEL THE INCREMENTAL MODEL THE SPIRAL MODEL
COCO-COLA COMPANY
Page 9
INDEX
SI. NO. TOPIC PAGE NO.
X.
DESIGNING i. ii. iii. iv. v. ORACLE TABLE STRUCTURE E-H DIAGRAM E-R DIAGRAM DATA FLOW DIAGRAM CONTEXT ANALYSIS DIAGRAM
XI.
UML(UNIFORM MODIFIED LANGUAGE) i. CLASS DIAGRAM ii. iii. OBJECT DIAGRAM COLLABORATION DIAGRAM
vii. COMPONENT DIAGRAM vii. DEPLOYMENT DIAGRAM XII. TESTING i. ii. SOFTWRE TESTING STAGES TEST CASE DESIGN
COCO-COLA COMPANY
Page 10
COCO-COLA COMPANY
Page 11
COCO-COLA COMPANY
Page 12
Two well structured programming languages Java and Oracle have developed Production Management System. The first one is dedicated for front end and next for back end. The back end language is first priority of almost all programmers because it facilitates a well-structured query for programmer point of view as well as users point of view .Oracle also provides a greater security of databases. After the complex discussion, this project has been developed to fulfill the almost all requirements of COCOCOLA Company as the project title suggests. First company produces the product of soft drink then supply to retailer. After verification the appropriate information of retailer. After manipulating the main database, it reflects to linked table. When a new retailer wants for join , first company takes all necessary information then checks the validity of such retailer them propose him to fulfill the all the conditions then fetch the appropriate data to system. In Production Management System different types of activities performed in company, like production, supply, retailer, price and send to the manager. Apart from all these activity, the main work is updating retailer, price, sevices, and rout .This is the backbone of daily company. In this project this is also included.
COCO-COLA COMPANY
Page 13
COCO-COLA COMPANY
Page 14
ENVIROMENT REQUIREMENT:
Environment..Networking Frame workJ2EE Abstraction Layer..J2EE n- Tier client server architecture Firewall Security / NTLS Hash Security
APPLICATION REQUIREMENT:
Java Program.....J2SE *Standard Edition+ Java Enterprise..J2EE Web ServerSOAP, WSDL Application Server.Bea Web logic 8.1
COCO-COLA COMPANY
Page 15
ABOUT J2EE Java Server Pages (JSP) The Web Logic Server Solution Web Logic Server Application Architecture:Java Database Connectivity (JDBC) Introduction To Oracle
1. HARDWARE:
Recommended: CPU = 2.6 GHz Memory = 2 GB RAM Hard Disk = 160 GB VDU = SVGA (1024*760) Mouse = PS/2 Keyboard = 105 Keys Lan card
Recommended/ Minimum: CPU = 2.4 GHz Memory = 512 MB Hard Disk = 40 GB Mouse = PS/2 Keyboard = 105 Keys VDU = SVGA
LAN Card
COCO-COLA COMPANY
Page 16
About J2EE
This platform is the architecture for developing, deploying, and executing applications in a distributed environment. These applications require system-level services, such as transaction management, security, client connectivity, and database access. J2EE provides these services, allowing you to focus on the business logic in your applications, not the system-level plumbing. We code the business logic in enterprise beans, reusable components that can be accessed by client programs. Enterprises today need to extend their reach, reduce their costs, and lower their response times by providing easy-to-access services to their customer, partners, employees, and suppliers. Typically, applications that provide these services must combine existing enterprise information systems (EIS) with new business functions that deliver services to a broad range of users. These services need to be : Highly available, to meet the needs of todays global business environment. Secure, to protect the privacy of users and the integrity of enterprise data. Reliable and scalable, to ensure that business transactions are accurately and promptly processed. For a variety of reasons, these services are generally architected as distributed application as distributed applications consisting of several tiers, including client on the front end, data resources on the back end, and one or more middle tiers between them where the majority of the application development work is done. The middle tiers implement the new services that integrate existing EISs with the business functions and data of the new service. The middle tier
COCO-COLA COMPANY
Page 17
shields the client tier from the complexity of the enterprise and takes advantage of rapidly maturing Internet technologies to minimize user administration and training. Java reduces the cost and complexity of developing these multi-tier services, resulting in services that can be rapidly deployed and easily enhanced as the enterprise responds to competitive pressures. Java achieves these benefits by defining a standard architecture that is delivered as the following elements: J2EE Application Programming Model A standard programming model for developing multi-tier, thin-client applications. J2EE Platform A standard platform for hosting J2EE applications, specified as a set of required APIs and policies. J2EE Compatibility Test Suite A suite of compatibility tests for verifying that a J2EE platform product is compatible with the J2EE platform standard. J2EE Reference Implementation A reference implementation for demonstrating the capabilities of J2EE and for providing an operational definition of the J2EE platform.
J2EE ARCHITECTURE :The Java TM 2 SDK, Enterprise Edition (J2EE SDK) is the reference implementation provided by Sun Microsystems, Inc. The following figure shows the major elements of the architecture for the J2EE SDK :
COCO-COLA COMPANY
Page 18
J2ee architecture
server : The J2EE server provides the following services : NAMING AND DIRECTORY Allows programs to locate services and components through the Java Naming and Directory InterfaceTM ( JNDI ) API . AUTHENTICATION Enforces security by requiring users to log in .
COCO-COLA COMPANY
Page 19
HTTP Enables Web browsers to access servlets and JavaServer PagesTM (JSP) files . EJB Allows clients to invoke methods on enterprise beans .
Transaction management : When a client invokes a method in an enterprise bean, the container intervenes in order to manage the transaction. Because the container manages the transaction, you do not have to code transaction boundaries in the enterprise bean. The code required to control distributed transactions can be quite complex. Instead of writing and debugging complex code, you simply declare the enterprise beans transactional properties in the deployment descriptor file. The container reads the file and handles the enterprise beans transactions for you.
Security :The container permits only authorized clients to invoke an enterprise beans methods. Each client belongs to a particular role, and each role is permitted to invoke certain methods. You declare the roles and the methods they may invoke in the enterprise beans deployment descriptor. Because of this declarative approach, you dont need to code routines that enforce security.
COCO-COLA COMPANY
Page 20
The container manages the low-level communications between clients and enterprise beans. After an enterprise bean has been created, a client invokes methods on it as if it were in the same virtual machine.
Life Cycle Management :An enterprise bean passes through several states during its lifetime. The container creates the enterprise bean, moves it between a pool of available instances and the active state, and finally, removes it. Although the client calls methods to create and remove an enterprise bean, the container performs these tasks behind the scenes.
Web Container :The Web container is a runtime environment for JSP files and and servlets. Although these Web components are an important part of a J2EE application, this manual focuses on enterprise beans. For more information on developing Web components, see the home pages for the JavaServer Pages (www.java.sun.com/products/jsp/) and Java Servlet (www.java.sun.com/products/servlet/) technologies.
COCO-COLA COMPANY
Page 21
Introduction to JSP :Java Server Pages (JSP) is a technology based on the Java language and enables the development of dynamic web sites. JSP was developed by Sun Microsystems to allow server side development. JSP files are HTML files with special Tags containing Java source code that provide the dynamic content. Java Server Pages (JSP) is used for combining Java with HTML to provide dynamic content for Web pages. When you create dynamic content, JSPs are more convenient to write than HTTP servlets because they allow you to embed Java code directly into your HTML pages, in contrast with HTTP servlets, in which you embed HTML inside Java code. JSP is part of the Java 2 Enterprise Edition (J2EE). JSP enables you to separate the dynamic content of a Web page from its presentation. It caters to two different types of developers: HTML developers, who are responsible for the graphical design of the page ,and Java developers, who handle the development of software to create the dynamic content.
Because JSP is part of the J2EE standard, you can deploy JSPs on a variety of platforms, including Web Logic Server. In addition, third-party vendors and application developers can provide Java Bean components and define custom JSP tags that can be referenced from a JSP page to provide dynamic content.
COCO-COLA COMPANY
Page 22
Main reasons to use JSP : Multi platform Component reuse by using Java beans and EJB. Advantages of Java.
J.S.P compared to A.S.P :JSP and ASP are fairly similar in the functionality that they provide. JSP may have slightly higher learning curve. Both allow embedded code in an HTML page, session variables and database access and manipulation. Whereas ASP is mostly found on Microsoft platforms i.e. NT, JSP can operate on any platform that conforms to the J2EE specification.
JSP allow component reuse by using Javabeans and EJBs. ASP provides the use of COM / ActiveX controls.
COCO-COLA COMPANY
Page 23
A Servlet is a Java class that provides special server side service. It is hard work to write HTML code in Servlets. In Servlets you need to have lots of println statements to generate HTML.
Web Logic Server handles JSP requests in the following sequence :1. A browser requests a page with a .jsp file extension from WebLogic Server. 2. Web Logic Server reads the request. 3. Using the JSP compiler, Web Logic Server converts the JSP into a servlet class that implements the javax.servlet.jsp.JspPage interface. The JSP file is compiled only when the page is first requested, or when the JSP file has been changed. Otherwise, the previously compiled JSP servlet class is re-used, making subsequent responses much quicker. 4. The generated JspPage servlet class is invoked to handle the browser request.
JSP Tags :The following table describes the basic tags that you can use in a JSP page. Each shorthand tag has an XML equivalent.
COCO-COLA COMPANY
Page 24
Embeds Java source code scriptlet in your HTML page. The Java code is executed and its <jsp:scriptlet> </jsp:scriptlet> output is inserted in sequence with the rest java_code of the HTML in the page. Directive <%@ dir-type dir-attr Directives contain messages to %> the application server. A directive ...or use the XML equivalent: can also contain form <jsp:directive.dir_type attr=value,which provides name/value pair attributes in the additional instructions to the dir_attr /> application server. Declarations can be referenced <%! declaration %> by other ... or use XML equivalent ... declarations, scriptlets, or <jsp:declaration> expressions in the page. </jsp:declaration> Defines a Java expression that is <%= expression %> Expression evaluated at page ... or use XML equivalent ... request time, converted to a <jsp:expression> String, and sent inline to the expression output stream of the JSP </expression> response <%= expression %> ... or use XML equivalent ... <jsp:expression> expression </expression> Defines a Java expression that is Expression evaluated at page request time, converted to a String, and sent inline to the output stream of the JSP response
COCO-COLA COMPANY
Page 25
What Is JDBCTM?
JDBCTM is a JAVATM API for executing SQL statements. (As a point of interest, JDBC is a trademarked name and is not an acronym; nevertheless, JDBC is often thought of as standing for "Java Database Connectivity".) It consists of a set of classes and interfaces written in the Java programming language. JDBC provides a standard API for tool/database developers and makes it possible to write database applications using a pure Java API. Using JDBC, it is easy to send SQL statements to virtually any elational database. In other words, with the JDBC API, it isn't necessary to write one program to access a Sybase database, another program to access an Oracle database, another program to access an Informix database, and so on. One can write a single program using the JDBC API, and the program will be able to send SQL statements to the appropriate database. And, with an application written in the Java programming language, one also doesn't have to worry about writing different applications to run on different platforms. The combination of Java and JDBC lets a programmer write it once and run it anywhere. Java, being robust, secures, easy to use, easy to understand, and automatically downloadable on a network, is an excellent language basis for database applications. What is needed is away for Java applications to talk to a variety of different databases. JDBC is the mechanism for doing this. JDBC extends what can be done in Java. For
COCO-COLA COMPANY
Page 26
example, with Java and the JDBC API, it is possible to publish a web page containing an applet that uses information obtained from a remote database. Or an enterprise canuse JDBC to connect all its employees (even if they are using aconglomeration of Windows, Macintosh, and UNIX machines) to one or more internal databases via an intranet. With more and moreprogrammers using the Java programming language, the need for easy database access from Java is continuing to grow.MIS managers like the combination of Java and JDBC because it makes disseminating information easy and economical. Businesses can continue to use their installed databases and access information easily even if it is stored on different database management systems. Development time for new applications is short. Installation and version control are greatly simplified. A programmer can write an application or an update once, put it on the server, and everybody has access to the latest version. And for businesses selling information services, Java and JDBC offer a better way of getting out information updates to external customers.
COCO-COLA COMPANY
Page 27
COCO-COLA COMPANY
Page 28
INTRODUCTION OF ORACLE
Oracle Database 8i/9i/10g is a relational Database Management System (RDBMS), which means that is a set of software programs that handles the storage of information, the security for access to the information, and connection between various portions of the information. The database is made up of data files stored on the hard disks of computer. This is where all of your information will be stored. To add information into the database, you must start up an Oracle instance. Once started, your computer will be running set of background processes, which manage and manipulated the data files, among other thing. You also have a memory area called the System Global Area (SGA) that is reserved or Oracles use.
INSTANCE
MEMORY
BACKGROUND
ORACLE 8i
RDBMS
(SGA)
PROCESES
SOFTWARE
DATABASE
DATAFILE DATAFILE
COCO-COLA COMPANY
Page 29
Oracles stores as much information as possible in its memory to speed up the processing time whatever operation you do, from retrieving data in a special stored format(which you will learn how to do in to loading data from an online application.) The computer that contains all of these elements is called the database server.
DATABASE
Oracle database conventions refer to defined group of ownership (generally associated with a username) as schemas. Most Oracle database installations traditionally come with a default schema called SCOTT. After the installations have been set up the simple tables, the user can log into the database with the username SCOTT and the password TIGER. The name of the SCOTT schema was originated with Bruce Scott, one of the first employees of Oracle. Then Software Development Laboratories had a cat named Tiger.
COCO-COLA COMPANY
Page 30
The Scott schema has seen less use as it is uses few of the more recent releases of Oracle. Most recent examples reference the default HR or OE schemas.
Other default schemas includes SYS(essential core database structures and utilities) SYSTEM(additional core database structures and utilities, and privileged account) OUTLN (utilized to store metadata for stored outlines for stable queryoptimizer execution plans).
COCO-COLA COMPANY
Page 31
Oracle database management tracks its computer data storage with the help of information stored in the SYSTEM table space. The SYSTEM table space contains the data dictionary- and often (by default) index and clusters (A data dictionary consists of a special collection of table that contains information about all user-object in the database). Since version 8i, the oracle RDBMS also supports locally managed table spaces which can store space management information in bitmaps in their own headers rather than in the system table space (as happen with the default dictionary managed tables pace). If the oracle database administer has instituted Oracle RAC (Real Application Cluster), then multiple instances, usually on different servers, attach to a central storage array. This scenario offers numerous advantages, most importantly performance, scalability, and redundancy.
This stores the most recently used data blocks. These data blocks can contain modified data not yet written on disks(sometime known as Dirty Data Blocks), unmodified blocks, or blocks written to disks since modification(called as Clean block).Because the buffers cache keep the blocks based on a most recently used algorithm, the most active buffers stay in memory to reduce I/O and improve performance.
This store redo entities- a log of changes made on database. The instance write redo log as quickly and efficiently as possible. The redo log aids in instance recovery in the event failure. Page 32
COCO-COLA COMPANY
This area of the SGA stores the shared memory structures such as shared SQL areas in the library cache and the amount of memory allocated to shared pool can cause performance degradation
Program Global Area :--The Program Global Area or PGA memory area contains data and control information for Oracle server processes. The size and the content of PGA depend upon the Oracle-Server option installed. These areas consist of following components :---
Stack Space :
so on.
an area in PGA which Holds information suchas bind variables and runtime buffers.
COCO-COLA COMPANY
Page 33
An Integrated Development Environment is computer software help computer programmers develop software. The Leaders: - NetBeans - Microsoft Visual Studio - Eclipse
Optional Tools:
- Debugger. - Version control system.
Tools For Object Oriented Design: - Object inspector. - Class Browser. - Class hierarchy diagram.
IDE abstracts the configuration necessary to piece together various utilities in one unit, which could ease the learning of a language, and increases developer productivity. Most IDEs today have GUI modelling utilities that simplify the development of UIs, which is critical for commercial software today. NETBEANS FEATURES Environment: easily configured user interface and a modular architecture extensible with additional Project System: support for multiple source roots, easy management of libraries, easily ported to other environments, all based on Apache Ant. Web Development: Web Application project type, Supports the J2EE 1.3 and 1.4 standards with web application build support based on Apache Ant. Enterprise Java Beans (EJB) Development: easy to create and deploy and import java beans.
COCO-COLA COMPANY
Page 35
Web Services Development: wizards for creating we services and web services clients, providing the basic(java/wsdl) code needed, and easy to use testing tools of existing web services. Java 2 Platform, Micro Edition (J2ME) MIDP
COCO-COLA COMPANY
Page 36
Introduction to HTML:
The hypertext markup language (HTML) is a simple markup language. Used to create a hypertext documents that are portable from one platform to another HTML documents are SGML (Standard generalized mark up language) documents with generic semantics that are appropriate for representing information from a wide range of applications. This specification defines HTML version 3.2.HTML 3.2 aims to capture recommended practice as of early 96 and as such a replacement for HTML2.0 (RFC 1866).A set of instructions embedded in a document is called mark up language. These instructions describe what the document text means and hoe it should look like in a display. Hyper Text Mark Up language(HTML) is the language used to encode World Wide Web documents.
WHY TO USE HTML: Website is a collection of pages, publications, and documents that reside on web server. While these pages publications and a document as a formatted in a single format, you should use HTML for home page and all primary pages and the site. This will enable the millions of web users can easily access and to take advantage of your website.HTML is considered first for formatting any new material you plan to publish on the web. HTML documents are platform independent,meaning that they dont confirm to any standard. If they are created properly you can move home page to any server platform or you can access them with any complaint www browser.
COCO-COLA COMPANY
Page 37
STRUCTURE OF HTML: HTML elements perform a defined task. HTML uses two types of elements Empty Tags Container Tags Empty (or open) tags and container tags. These tags differ because of what they represent. Empty tags represent formatting constricts such as line breaks and horizontal rules. Container tags define a section of text and specify the formatting the containers dot all of the selected text. A container tag has both a beginning and an ending.
HTML LAYOUT: An HTML document consists of text, which comprises the content of the document and tags, which, defines the structure, and appearance of the document. The structure of an HTML document is simple, consists of outer. <HTML>tag enclosing the document header and body <HTML> <HEAD> <TITLE>the title of HTML document</TITLE> </HEAD> <BODY>
COCO-COLA COMPANY Page 38
This is where the actual HTML documents Text lies, which is displayed in the browser </BODY> </HTML> Each document has a head and body delimited by the<HEAD> and <BODY > tag. The head is where you give your HTML document a title and where you indicate other parameters the browser may use when displaying the document. This includes the text for displaying the text. Tag also references special and indicates the hot spots that link your document to other documents.
HTML FORMS: Create a form usually involves two independent steps: create the layout for the form itself and then writing a script program on the server side to process the formation you get back from a form. To create a form. You use the <FORM> tag. Inside the opening and closing FORM tags are each of the individual form elements plus any other HTML content to create a layout for that form. The opening tag of the FORM element usually includes the attributes: METHOD and ACTION. The METHOD attributes can be either GET or POST which determines how your form data is sent to the script to process it. The ACTION attribute is a pointer to the script that processes the form on the server side. The ACTION can be included by a relative path or by a full URL to a script on your server or somewhere else. For example,
COCO-COLA COMPANY Page 39
the following <FORM> tag would call a script called Form name in cgibin directory on server www.myservser.com <FORM Method= post action=http://www.mytservser.com/cgibin/form-name.pl> . </FORM>
METHOD ATTRIBUTE: The other required attribute for the <form> tag sets the methods by which the browser forms data to the server for processing. There are two ways: the POST method and GET method. With POST method, the browser sends the data in two steps: the browser first contacts the form processing server specified in the action attributes, and once contact is made, sends the data to the in to a separate transmission. The GET method in the other hand contacts the form processing server and sends the form data in a single transaction step: the browser appends the data to the forms action URL, separated by the question mark (?) character.
COCO-COLA COMPANY
Page 40
COCO-COLA COMPANY
Page 41
COCO-COLA COMPANY
Page 42
Software Requirement Specification is The Requirement as A Condition of capability needed by a user for solving the problem or achieve an objective. Specification can be categorized as User Requirements: It deals with the working of the user. Basically, it is a document having the details of constraints. The other activity can be started after creating the Master File of Customers as well as Products. It includes: An user must be an authorize one Duplication of Master Code is not allowed. Name and Description in the master file must be entered. System Requirements: - It is a detailed description of the user requirements. It is served as the basis for contracts for the implementation of the system and is complete and consistent specification of the whole system. It specifies the user requirements. The basic user requirements include: Have a complete good services And Monitoring System. Analytical reports can be generated at any point of time. One time entry should be used for generating the respective reports. The services position should be reflected on line.
COCO-COLA COMPANY
Page 43
Software Requirements: -The basic issue of an SRS must address Functionality - how the inputs are being converted into outputs has been described. All the data and their operation have been defined in the data structure and DFD attached with the documents. The inputs and outputs have also been listed. Performance -Usually software is designed keeping different constraints. - No of data is more and keep on growing. - Since the software have been developed keeping in mind of single user, so it will work for one user only. But it uses Oracle 8i/10g as database, so it can easily be transferred into multi-user form. It maintains the response time in case of more data. Design Constraints - The Details have been listed in view Form or Search also. - The error handling is given in error handling and fault tolerance. - Changes or operation must be recorded in audit file. External interface requirements The external interface is designed in such a manner that the user should not have any difficulty while interfacing with it. The screen is being designed user friendly. The screen and form layout features of Micromedia Dreamweaver 8 make it so user friendly that any novice can easily operate the system. - Combo Box, - Text Box,
COCO-COLA COMPANY Page 44
- Button - And several other user-friendly features have been used. All the option has been categorized in different groups and presented as a set in menu based option. Within Menu, it has sub menu facility, which also provides categorized operation facility. As a system analyst, one should be involved in only a few of the tasks required in the construction phase. These tasks include completion of the users operations manuals, assistance with the conversion process and helping the user carry out acceptance test.
COCO-COLA COMPANY
Page 45
System Overview
The design of an information system produces the details that state how a system will meet the requirements identified during systems analysis. This stage is login design.
Module Description:
We have identified the following modules:
DFDs are simple pictorial representations; easily understood by users and management. DFDs are unambiguous and concise They can describe processing at physical as well as logical level DFDs facilitate top-down development They permit outlining of preferences and scope
or
Process
or
n n
Or
COCO-COLA COMPANY Page 47
D.F.D. of Login
0-Level D.F.D.
COCO-COLA COMPANY
Page 48
1-Level D.F.D
COCO-COLA COMPANY
Page 49
2-LEVEL D.F.D.
COCO-COLA COMPANY
Page 50
ER- DIAGRAM
The process of database design is an iterative rather than a linear or sequential process. It usually begins with a general narrative of the organizations operations and procedures. The basic E-R model is graphically depicted and presented for review. The process is repeated until the end users and designers agree that the E-R diagram is a fair representation of the organizations activities and functions.
ENTITY
WEAK ENTITY
RELATIONSHIP
IDENTIFYING RELATIONSHIP
COCO-COLA COMPANY Page 51
NAME
ATTRIBUTE
NAME
KEY ATTRIBUTE
NAME
COMPOSITE
NAME
DERIVED ATTRIBUTE
NAME
MULTIVALUED ATTRIBUTE
COCO-COLA COMPANY
Page 52
1nN
CARDINALITY
Emp_name Emp_addresss
EMPLOYEE
COCO-COLA COMPANY
Page 53
COCO-COLA COMPANY
STOCK LOGIN
STOCK INSERT
SALE ENTRY
SALING
ID PASSWORD
QTY_FREE PACK PARTICULARS BATCH RATE EXPIRY DATE MRP GROSS TOTAL DISCOUNT VAT BATCH_ NO. EXPIRY DATE RATE MRP CUST_NO ADDRESS TIN_NO DATE
COCO-COLA COMPANY
Page 54
THE UML CONSIST OF A NUMBER OF GRAPHICAL ELEMENTS THAT COMBINED TO FORM DIAGRAM.THE PURPOSE OF THE DIAGRAM IS TO PRESENT MULTIPLE VIEWS OF A SYSTEM,AND THIS SET OF MULTIPLE VIEW IS CALLED A MODEL. THERE ARE 9 DIFFERENT MODELS IN A UML DIAGRAM. THEY ARE:-
A. CLASS DIAGRAM B. OBJECT DIAGRAM C. USE CASE DIAGRAM D. STATE DIAGRAM E. SEQUENCE DIAGRAM F. ACTIVITY DIAGRAM G. COLLABORATION DIAGRAM H. COMPONENT DIAGRAM I. DEPLOYMENT DIAGRAM
COCO-COLA COMPANY
Page 55
CLASS DIAGRAM
A class is a category or group of things that have similar attributes and common behavior Class diagram express the static structure of a system, interns of classes and relationship between those classes.
LOGIN
CLASS
STOCKLOGIN LOGIN
ID ID PASSWORD PASSWORD
VARIABLE NAME
METHOD
AUTHORIZATION ( )( ) AUTHORIZATION
AUTHORIZATION ( )
COCO-COLA COMPANY
Page 56
INSERT Personal
RETAILER INSERT
PERSONAL INFO ( )
COCO-COLA COMPANY
Page 57
DISTRIBUTOR ENTRY
DISTRIBUTOR ENTRY
CODE NO TM
TM_ONE SS SM_ONE DTM_FIVE GOLD SM_TWO COWMILK CALMILK TOTAMOUNT ZONE SHIFT SDATE
SALES ( )
COCO-COLA COMPANY
Page 58
RATE INSERT
RATE INSERT
RTM RTM_ONE RSS RSM_ONE RDIM RGOLD RSM_TWO RCOWMILK
PURCHASE ( )
COCO-COLA COMPANY
Page 59
OBJECT DIAGRAM
An object is an instance of a class , a specific thing that has specific value of the attributes and behavior. Each object is represented by a rectangle , which contain either name of the object, the name and class of the object or only the class name .The name is underlined.
: LOGIN
: RETAILER INSERT
:DISTRIBUTOR ENTRY
:RATE ENTRY
COCO-COLA COMPANY
Page 60
COMPONENT DIAGRAM
THE UNIFIED MODELING LANGUAGE COMPONENT DIAGRAM DESCRIBES SOFTWARE COMPONENTS AND THEIR RELATIONSHIP
JAVA
NETBEANS IDE
COCO-COLA COMPANY
JSP
ORACLE 8i
XML
COCO-COLA COMPANY
Page 61
DEPLOYMENT DIAGRAM
IT SHOWS THE PHYSICAL ARCHITECTURE OF A COMPUTER BASED SYSTEM. EACH HARDWARE RESOURCE IS REPRESENTED BY A CUBE, EVOKING THE PHYSICAL PRESENTS OF THE EQUIPMENT WITHIN THE SYSTEM.
COCO-COLA COMPANY
1024 MB Memory
COCO-COLA COMPANY
INTERNET
COCO-COLA COMPANY
Page 62
STATE DIAGRAM
AT ANY GIVEN TIME, AN OBJECT IS IN A PERTICULAR STATE. THE UML STATE DIAGRAM CAPTURE THIS BIT OF REALITY. HERE IS ALWAYS ONE AND ONLY ONE INITIAL STATE. IT IS ALWAYS POSSIBLE TO HAVE SEVERAL FINAL STATES THAT EACH CORRESPONDS TO A DIFFERENT END CONDITION. IT IS ALSO POSSIBLE NOT TO HAVE ANY FINAL STATE .
COCO-COLA COMPANY
Page 63
INTRODUCTION
Data Base:
A database is a collection of data with some inherent meaning, designed built and populated with data for a specific purpose.
A database management system provides flexibility in the storage and retrieval of data. The DBMS is a bridge between the application program, which determines what data are needed and how they are processed, and the operating system of the computer, which is responsible for placing data on the magnetic storage devices. A schema defines the database and a subschema defines the portion of the database that a specific program will use. Characteristics: i. Represents complex relationships between data. ii. Keeps control on data redundancy. iii. Keeps a centralized data dictionary for the storage of retaining to data and its manipulation information. iv. Enforces data access authorization. v. Has automatic intelligent backup and recovery Procedure for data.
Database Administrator:
A database administrator is a block of code loaded into memory, which organizes all information (database) between the users.
COCO-COLA COMPANY Page 64
The DBA takes care of the following things: i. Updating database ii. Retrieving the data iii. Accepting the queries iv. Enforces security v. Enforces data integrity specifications vi. Managing data sharing vii. Optimizing queries viii. Managing system catalogs
Advantages of normalization:A To reduce the redundancy. B To increase the access specification and storage structure.
COCO-COLA COMPANY
Page 65
First Normal Form:A relation or a table is said to be in first normal form if and only if all the underlying domains contain at least atomic values. Second Normal Form:A relation or a table is said to be in second normal form if and only if it is in first normal form and every non-key attribute is fully dependent on the primary key of the relation Third normal Form:A relation or a table is said to be in third Normal form if it is in second normal form and every non key attribute is transitively dependent on the primary key of the relation. Boyce-codd Normal Form:A table is in BCNF if the only determinants are candidate keys. A table is in BCNF if every non trivial left irreducible FD has a candidate key as its determinant.
NOTE:From the above considered definitions, on thorough study of our project we acquired that it has reduced and we eliminated the redundancy up to 2nd normal form.
COCO-COLA COMPANY
Page 66
Table_Login Type ID PASS Name NOT NULL NOT NULL Constraint VARCHAR2(8) VARCHAR2(10)
COCO-COLA COMPANY
Page 67