Sie sind auf Seite 1von 3

OBSS Java Development issues list

Information : The following questions should be implemented using Eclipse development platform
and any database server of your choice when necessary. Postgresql is only suggested.

1) Initial Desktop Application


a) Write a swing based desktop application form, when save is pressed you will insert those data
to database.
Forms shall have the following fields
name = text field
surname = text field
gender ( male/female ) checkbox.
Save button.

The application shall save the above information to database server when save is pressed.

b) Write another form with a table, and show button. when show button is pressed it will list the
previously inserted records to the database with columns of 2 text fields and one checkbox.

c) When there is a double click (!) on the Table search row , it will open a popup page which lists
the details of that row. It will have two buttons. Update and Delete.
* Update , will update the database row.
* Delete will delete that database row.

After successfully completing the database operation, the program will display a messagebox
saying "Successfully completed" . When "ok" is pressed it will close the popup and will return to
search screen.

2) Sample Exception handling

You will have 3 classes, where the first one will have a method which generates an exception.
The second class will call this method and throw the exception. Finally the last one will call the
method of second class and will print error trace to screen.

3) Numeric text box Inheritance

Please make a new text box class which only accepts integers.

4) Reflection

Write a small program to demonstrate the use of reflection.


There will be ten different classes with the Writeout method, class0, class1, class2, class9 etc.
printing out their own name. Another class will read the name of the class as String from console
. Upon reading the name of the class, it will automatically and dynamically (!) generate that class
and call its writeout method. If that class is not read from input, it will not be initialized.

5) Extend hasMap to add putChildren method


The task is extending the HashMap to include HashMaps as an object. so, this inner hashMap can
also have key value pairs. It will be like tree with depth 2 . When you finish the method data
Key1 = "HUSEYIN" value=HashMap which has -> "key2" = 5248 && "VALUE" = Turkish
Key1 = "OGUZ" value=HashMap which has -> "key2" = 1234 && -> "VALUE" = Turkish

you will implement a putChildrenValue method with 3 parameters, String key, String key, Object
Value. It will store the system as described above accordingly.

Main class is below

public static void main(String [] args)


{
ExtendedHashMap extendedMap = new ExtendedHashMap();
extendedMap.put (“Row1”, “Column1”, “Turkish”);
extendedMap.put (“Row1”, “Column2”, “English”);
extendedMap.put (“Row1”, “Column3”, “Spanish”);
extendedMap.put (“Row2”, “Column1”, “Huseyin”);
extendedMap.put (“Row2”, “Column2”, “Oguz”);
extendedMap.put (“Row3”, “Column3”, “Keskin”);
}

6) Relational Hibernate Sample Application

You will implement an application with the following fields ... You are required to use Hibernate
during database operations.

Table 1 . Business_Card
id, int4 , primary key
name, varchar 50
description, varchar 250

Table 2 . Corresponding Business Phone 1xN


id , int4, primary key
business_id , int4, foreign key -> business_card table
phone_area_code, varchar 5
phone number, varchar 15

Table 3 . Contact Groups


id, int4, primary key
group name, varchar 25
group description, varchar 250

Table 4 . Business X Contact NxN


id , int4, primary key
business_id , int4, foreign key -> business_card table
group_id , int4, foreign key -> contact_groups table

** business_id, group_id pair will be unique

What about the user interface?


1 - Business Card insertion screen , search screen
In the gui form, you will use fields in the business_card table
2 - Business Group insertion screen , search screen
In the gui form, You will use fields in the business group table
3 - Business Phone insertion screen, search screen
In the gui form, you will use fields in the business phone table

** PLUS, there will be a combo box, to select the Business Card

4 - Business Group selection screen


In the gui form, there will be two combo boxes
One is for business card selection, and other one is for group selection.
You will insert data with these pairs, to the contact_group table.

7) RMI Homework

The issue is making the following homework in the below link. This is one of
the homeworks in distributed system class at sabanci university,
http://people.sabanciuniv.edu/erkays/cs403/class_project.pdf

8) Test a Web Service

You will now run the following web service.

http://api.search.live.net/search.wsdl

you will generate a client program using this service, making a key search of “obss”, listing the return
values.

9) Using Ireport

You will generate a report for the name/surname/gender application on #1 . You will use Ireport and
Jasper reports which can be downloaded from http://www.jaspersoft.com/

A software will ask 3 parameters, name – textbox, surname – textbox and gender combo box.
When show button is pressed it will display a report underneath panel (!), showing the search results
on a report, filtering the data with above boxes. If nothing selected it will display all. If “a” is inserted
on name. It will display the records starting with a. etc. They will all display on a report as rows.

Das könnte Ihnen auch gefallen