JDBC Notes
JDBC Notes
Create a class Main with main method and call the method searchedModels(String
name) using AircraftDAO instance to display the list as shown.
oracle.properties :
db.url = jdbc:oracle:thin:@localhost:1521:xe
db.username = root
db.password = student
Table Properties:
create table aircraft_manufacturer(
aircraft_manufacturer_id number(10) not null,
name VARCHAR2(45) not null,
primary key(aircraft_manufacturer_id)
);
[All Texts in bold corresponds to the input and rest are output]
Sample Input and Output 1:
Enter the Aircraft manufacturer :
Airbus
The models provided by Airbus are :
Toulouse A320
Hamburg A319
Seville A400M
oracle.properties :
db.url = jdbc:oracle:thin:@localhost:1521:xe
db.username = root
db.password = student
Table Properties:
create table travel_class(
id number(10) not null,
name VARCHAR2(45) not null,
description CLOB not null,
primary key(id)
);