Java Book Management system (implemented with Java Common collection)

Source: Internet
Author: User

Library Management System

First, Requirements Description

1, function: Login, register, forget password, Administrator management, book management.

2, Administrator Management: Administrator's additions and deletions to check.

3, Book Management: Book additions and deletions to check.

4, the administrator attributes include: ID, name , gender, age , home address, mobile phone number, login name, login password, status .

5, Book properties include: ID, book name, author, unit price, publishing house, publication date, category .

6, technology: by using the set to simulate the database implementation of the system , the proposed use of the List Set Implementation, collection simulation database is just a temporary preservation of data.

Second, Function Description

1. Registration Function

Description: Registration requires the user to enter all necessary user information.

Id: User input, but cannot have the same, and can only be a number

Name: cannot be empty

Gender: Required, can only be male or female

Age: required, only numbers and limited to 1-100

Mobile number: Required , must be a number and one -digit

Login Name: required, there are letters, numbers, special characters, can not start with a number, length in the 3-8 bit, and can not have duplicate login name.

Login Password: cannot be the same as the login name, and must be 6-12 bit

Status: The user has only three states,1 means normal 2 means that 3 is disabled , and by default the user status is 1.

2. Login Function

Log in must enter the login name and password, verification code, when the user name and password, the verification code is correct and the user status is 1 login success, otherwise the relevant information prompts.

3. Forgot Password

according to the ID to find the password, and prompt the user to change the password, if the user chooses to modify the password to modify or quit the feature.

Password change required: cannot be the same as the old password, and must be compliant with the login name, and the 6-12 bit .

4. Administrator Management

Prerequisite: The operation of the administrator can be performed only if the login is successful.

Functions are divided into: Add, delete, modify, query administrator.

Add: Refer to Administrator's registration function.

Delete: According to the administrator's ID to delete, the deletion needs to determine whether the ID number exists, the presence of delete and prompt the user to delete the results, otherwise prompt the user ID The number does not exist and is re-entered.

Modification: First, according to the user ID number to query the user information, and then modify, modify the same need to judge the input information, the success of the modification overwrites the original user data. Otherwise, the relevant information is prompted.

Query: divided into ID query and login name query

5. Book Management

Prerequisites: The operation of the book is only possible if the login is successful.

Book Management: Add, delete, modify, query.

Add Book: requires user input ID, book name, author, unit price, publisher, publication date, category ,andneed to be verified .

Verification Requirements:

ID Unique

If the input is in Chinese then at least two kanji, if the input is in English at least five characters.

The unit price can only be a number.

Publishers only need to verify non-empty can.

The publication date is the current system date by default, and the date format is (YYYY-MM-DD).

categories for user selection 1:java 2:.net 3:android 4:ios

when all the information is verified, you need to give this information to the book The JavaBean object .

Delete a book: delete It according to the book ID.

Java Book Management system (implemented with Java Common collection)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.