5. Create a SQLj project to call function created in chapter 14 lab activity 2.
What will be an ideal response?
```
import sqlj.runtime.ref.*;
import java.io.*;
import java.sql.*;
import javax.swing.*;
public class TestSQLj {
public static void main(String [] args) {
try {
Oracle.connect
("jdbc:Oracle:thin:@localhost:1521:oracle",
"nshah", "india_usa", true);
int did=Integer.parseInt(JOptionPane.showInputDialog
("Enter department Id:"));
boolean found;
#sql found = {VALUES(find_dept(:in did))};
System.out.println(did+" exists - "+found);
}
catch (SQLException e) {
System.out.println(e.getMessage()); }
finally {
try {
Oracle.close();
}
catch(SQLException e) {
e.printStackTrace();
}
}
}
}
```
You might also like to view...
A window may be resized by dragging the ________ or side of it
Fill in the blank(s) with correct word
The company that you work for has implemented the following security controls • End-to.end encryption in the DMZ using SSL • IPsec in transport mode in the internal network with AH enabled and ESP disabled • NIPs in the internal network • HIPs in the DMZ Which of the following would improve the security of the implementation without seriously impacting performance?
A. Enable ESP in the internal network. B. Switch to HIDs in the internal network. C. Switch to NIDS in the DMZ. D. Switch to TLS in the DMZ.