Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


jerung
java database
0 Answer(s)      2 years and 11 months ago
Posted in : Java Beginners


help me with this...i never learn build java database...can you all show me how to build it in simple way on blue j?

You are required to design and implement objects needed for a program that maintains a database of students and teachers, and allows you to read in large files of student/teacher information, search it, alter it, etc. The database is maintained as a list of records, each record containing the data for either a student or a teacher.

The information kept for a student is his/her college id number; name, date of birth, birth place, cumulative average of grades (CGPA) in courses, status (full time or part time), study programme (Ceritifcate(1), Diploma(2), Degree(3), Master(4) or PhD(5)) and a note (to keep comments on student's personality).

The information kept for a teacher is his/her faculty id number, name, date of birth, birth place, salary in ringgit, rank (Tutor(1), Lecturer(2), Associate Professor(3) or Professor(4)) .

After completing your design, you will implement it. The number of classes you decide to use is up to you. However, you must follow the set of restrictions specified below:

a. Name length must not: i. be more than 30 characters, ii. start with a blank space, iii. contain more than one consecutive blank space, or iv. contain any digit or number. b. Date of birth must contain valid numbers (1-31 for days, 1-12 for months) and they cannot contain negative values. c. Birth place is the state (if born in Malaysia), else birth country. d. CGPA is must be a positive value. The default value is 0.00. e. Valid study programme for students is any number between 1 and 5. f. Valid rank for teachers is any number between 1 and 4. g. Teachers' salary must be a positive value.

Both of these are people, of course, so the classes Student and Teacher are derived from the superclass Person, which holds information common to both students and teachers: id, name, date of birth, and birth place. All specifications for the both classes must be completed in the Student and Teacher interfaces.

You are expected to design your own classes for representing the basic entities that the program manipulates.

As you design your classes make them as general as possible so that they can be used by a campus management system.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Database programming - Java Beginners
Database programming  How to do a Database programing with Balanced Multiway Tree(B+ Tree,not Binary Tree) in java
java and database - Java Beginners
java and database  code to read a csv file  Hi Friend, We have used POI Library to read the csv file in java: import java.io.*; import org.apache.poi.hpsf.*; import org.apache.poi.hssf.usermodel.*; import
Advertisements
java database error - JDBC
java database error  hi all i am writing one swing application where i want to insert data into database(MS-Access) but dont know how to do... the following code to insert the data into MS-Access database: import java.sql.
Database - Java Beginners
Database  How to do database connection when using weblogic server? Any specific condition or difference
Connection to database - Java Beginners
on a Project on Jsp We hve some JSP Pages & trying to connect to our Database . We are using SQL server 2000 ? We are not able to connect our database Tables.../connect_jsp_with_mysql.shtml Because, we didn't use sql server 2000 database
database connectivity in java - JDBC
database connectivity in java  import java.io.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.sql.*; class Project implements ActionListener { JFrame f; JPanel p1,p2,p3; JTabbedPane
java database pblm - Java Beginners
java database pblm  Hi, I have 5 records in database with the same ID. I want to delete third record. what should i do.plzz help me. thank u... record from the database. the following code may be useful for u. ResultSet rs
Map Java Objects with Database tables
Map Java Objects with Database tables  How to map Java Objects with Database tables?   First write Java domain objects ie. beans with setter and getter methods. Then map java class to table and database columns to Java
ajax database in opentaps - Java Beginners
ajax database in opentaps  Hi, Here I am facing problem in implementing ajax in opentaps.I want to create a drop down menu using ajax in opentaps.And I want to access the values from database using ajax in java(opentaps).So
java plus database - Java Beginners
java plus database  kathmandu Sports Club In order to have more.... Module diagram 4. Java-program   Hi friend, Code to solve the problem : database table "city" CREATE TABLE `city
Problems connecting to a database. Java/SQLite
Problems connecting to a database. Java/SQLite  `print("try { con = DriverManager.getConnection("jdbc:sqlite:db/Freepark.sqlite"); } catch... on an SQL database but i am having problems connecting to it, I think the problem
java gui database - Java Beginners
java gui database  I have eight files. Each file has exactly same number(say 100) of entries. Each corresponding entry of all files correspond to one... the data on command line but I do not know how to display the same using java
about value taken in java database - JDBC
about value taken in java database  how to take value from Serial port communication Hyperterminal to the java database
matching database again - Java Beginners
matching database again  Dear experts, So happy I get through this ask a question page again. Thank God. I want to say "A BIG THANK YOU" for helping me about the matching codes. It is working now after fine tuning
Shifting txt file to database - Java Beginners
and put into database using Java/JSP. Database table is as below ID numeric... data from txt file to Database. The data is written in the following text format... Friend, Please visit the following link: http://www.roseindia.net/tutorial/java
adding data to the database with the use of jtable - Java Beginners
adding data to the database with the use of jtable  how can i add data to the database with the use of jtable. and also can able to view the records in the database in the table.. tnx :G
adding data to the database with the use of jtable - Java Beginners
adding data to the database with the use of jtable  how can i add data to the database with the use of jtable. and also can able to view the records in the database in the table.. tnx :G
JDBC, Java Database Connectivity
tutorials. Java Database Connectivity or JDBC for short is Java bases API... driver as per your application needs. About JDBC Java Database Connectivity... with the Database from Java program. The JDBC is a set a API which works
Help me on database connectivity in J2ME - Java Beginners
Help me on database connectivity in J2ME  i want help in J2ME. i want code for database connection with MySQL. spcl to fecth and insert data from databse. please help me
Connecting to the Database Using JDBC and Pure Java driver
Connecting to the Database JDBC Driver In our search engine we are using MySQL database server and MM.MySQL Driver for connecting our application to the database. MM.MySQL Driver
Save JRadioButton Text in to database - Java Beginners
Save JRadioButton Text in to database   Hello Sir I have Two... SwingFrame(); } public SwingFrame(){ JFrame f = new JFrame("Frame in Java Swing...(); JOptionPane.showMessageDialog(null,"Data is successfully inserted into database."); } catch
comparision between database's datetime field and systemdate of java application - Java Beginners
comparision between database's datetime field and systemdate of java application  Hi All, I have a database table which contains datetime... finding the date difference between database's datetime field and systemdate
Using database - Java Server Faces Questions
Using database  Sorry,Actually I ant the project to register the personl details using mysql database and access by loging the user name and password in jsf,can you send me please?  My dear, You go the following url
Search data from database - Java Beginners
to user name. (means search all field from database and display using
Problem with JRadioButton and Access Database - Java Beginners
in Access Databse, I want to store course type in to database and also other fields...(); JOptionPane.showMessageDialog(p1,"Data is successfully inserted into database."); con.close
How to Create and display Reports in Java with Database connectivity - Java Beginners
How to Create and display Reports in Java with Database connectivity  Hello Sir , I have Created Student Admission Form with Swing and MS Access 2007 Database Connection,when i will click on Print button it shows the report
Database driven login form - Java Server Faces Questions
Database driven login form  Dear sir,madam, Greetings!! well, am a new user of java and i am programming using the netbeans IDE, what i need is code that; will create a database driven login form where users are authenticated
Create a counter in mySQL 5 database through Java - SQL
Create a counter in mySQL 5 database through Java  Dear Editor, Thanks for your valuable Java code example for JFileChooser. I had another question regarding Java & mySQL 5 database
Balance multi-way tree implimentation reating database - Java Beginners
a project in which I have to create a database product in java where user can... database like Access,MySQL.As we know database is based on Balance multi-way tree... of program in java???Thanx
Load Coursenames from MS Acess Database to JComboBox - Java Beginners
Load Coursenames from MS Acess Database to JComboBox  Hello sir, I want to Load/add Course names which stored in Ms Acess 2007 Database, plz help... in Java Swing"); f.getContentPane().setLayout(null); JLabel lbl1 = new JLabel
How to store JComboBox selected Item into Ms Access Database - Java Beginners
How to store JComboBox selected Item into Ms Access Database  How to store JComboBox selected Item into Ms Access Database.  Hi Friend...(); } public SwingFrame(){ JFrame f = new JFrame("Frame in Java Swing
Update to database in jsf framework - Java Server Faces Questions
Update to database in jsf framework  Hello, i have a page with lot of fields and 10 radio buttons. Now user should fill that form. when user clicks "CREATE" button, data filled should get updated to database and should
To retrieve image from SQL Server Database - Java Server Faces Questions
To retrieve image from SQL Server Database  Sir/Madam, I am trying to retrieve image from SQL Server 2000 database in Visual Web JSF Page using... 2000 database in Visual Web JSF Page in image component or in Data Table
How to Store Float Value into Access Database - Java Beginners
to Store Student Marks Percentage into Access Database in Float Value how i can Store.... To store the double value in Access database, you need to set the datatype...,"Data is successfully inserted into database."); con1.close(); } catch
Check Whether Record is already Exists or Not with Database Connectivity - Java Beginners
Check Whether Record is already Exists or Not with Database Connectivity ... in the database with Swing Application ,if It is Already Exists then I want To Show MsgBox else that will Store in Database. plz Help Me Sir  Hi Friend, Try
jsp database
jsp database   I want to retrive value in my jsp page but i dont want show my database query in my jsp page. is there any other method to show value in my jsp page using java class
Problem with Double type Value in Access Database - Java Beginners
Mobile Number with MS access Database,plz Help Me Sir.   Hi Friend...+")"); JOptionPane.showMessageDialog(null,"Data is successfully inserted into database."); ResultSet rs
How to read excel data and store it in database - Java Beginners
How to read excel data and store it in database  Hi, I want a java code to read data from excel and store it in Ms Access database.I tried the code but but its printing the output in console.I dont know how to store the excel
how to store image file and videofile in ms access database using java? - JDBC
how to store image file and videofile in ms access database using java?  how to store image file and video file in ms access database using java
How to save JCombobox Selected Item in to Access Database - Java Beginners
SwingFrame(){ JFrame f = new JFrame("Frame in Java Swing"); f.getContentPane
Insert excel file data into database Using Java Programming
Insert excel file data into database in Java Program In this PHP tutorial section, you will learn how to insert excel file data into the database. We have... excel file data into Database Using java programming: import java.io.
how to insert list box in java script dynamically and elements retrieving from database like oracle
how to insert list box in java script dynamically and elements retrieving from database like oracle  hi all, how can i insert elements into java script list box retrieving from Database. whenever I insert any element in the Db
how to insert list box in java script dynamically and elements retrieving from database like oracle
how to insert list box in java script dynamically and elements retrieving from database like oracle  Hi, how to dynamically increase size of list box in javascript when elements retrieving from database.. That is whenever I
Database - WebSevices
Database   Hello, Any one know the detail Database Structure for creating new job site with features.   Hi friend, Plz give full details and requirement to solve the problem and visit to : http
How to export data from database to excel sheet by using java swing in standalone project - Java Beginners
How to export data from database to excel sheet by using java swing... database to excel sheet by using java swing in standalone project.I get solution from... solution by using java swing programming. please send me reply to me
database - SQL
database  For ex: Suppose there is 1000 questions (records) in my database. In my home page i want to display everyday 1 question as day of the question.It should not get change until date change...   Hi friend
J2ME with Database Connection - MobileApplications
J2ME with Database Connection  I'm using SonyEricssion Java ME SDk for CLDC with WTK2. Can u give me a sample program for Database Connection using MS-Access with MIDlet code
how to get the data from database&how to display the database data in jsf - Java Server Faces Questions
how to get the data from database&how to display the database data in jsf  Hi, 1.how to get the data from database. 2.how to display the database...; Hi friend, To Solve the Problem get the data from database
database retrieving - JDBC
database retrieving  how to retrieve resultset from table which we have created in 'SQL SERVER MANAGEMENT STUDIO' using java program
Advertisements
 

 

 

DMCA.com