Exam 27: Java Persistence Api Jpa
Exam 1: Introduction to Computers, the Internet and Java40 Questions
Exam 2: Introduction to Java Applications; Inputoutput and Operators33 Questions
Exam 3: Introduction to Classes, Objects, Methods and Strings32 Questions
Exam 4: Control Statements: Assignment, and Operators39 Questions
Exam 5: Control Statements: Logical Operators26 Questions
Exam 6: Methods: a Deeper Look38 Questions
Exam 7: Arrays and Arraylists46 Questions
Exam 8: Classes and Objects: a Deeper Look28 Questions
Exam 9: Object-Oriented Programming: Inheritance20 Questions
Exam 10: Object-Oriented Programming: Polymorphism and Interfaces34 Questions
Exam 11: Exception Handling: a Deeper Look27 Questions
Exam 12: Javafx Graphical User Interfaces22 Questions
Exam 13: Javafx Gui20 Questions
Exam 14: Strings, Characters and Regular Expressions26 Questions
Exam 15: Files, Inputoutput Streams, Nio and Xml Serialization30 Questions
Exam 16: Generic Collections36 Questions
Exam 17: Lambdas and Streams67 Questions
Exam 18: Recursion15 Questions
Exam 19: Searching, Sorting and Big O22 Questions
Exam 20: Generic Classes and Methods: a Deeper Look13 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 22: Concurrency54 Questions
Exam 23: Accessing Databases With Jdbc34 Questions
Exam 24: Swing Gui Components78 Questions
Exam 25: Graphics and Java 2d19 Questions
Exam 26: Networking13 Questions
Exam 27: Java Persistence Api Jpa16 Questions
Exam 28: Javaserver Faces Web Apps15 Questions
Exam 29: Javaserver Faces Web Apps7 Questions
Exam 30: Swing Gui Components26 Questions
Select questions type
An object of type ________ is used to manage the data flow between the program and the database.
Free
(Multiple Choice)
4.9/5
(25)
Correct Answer:
A
For entity classes in JPA, an @NamedQueries annotation specifies a collection of ________ annotations that declare various named queries.
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
C
When you define a query in your own code, it's known as a(n) ________ query.
Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
A
Which of the following statements about JPA database transaction processing is false?
(Multiple Choice)
4.8/5
(30)
When you used JPA in this chapter, you interacted with an existing database via classes that the NetBeans IDE generated from the XE "database schema" database's schema. You used the NetBeans Entity Classes from Database… option to add to your project classes that represented the database tables. Together, these classes and the corresponding settings are known as a ________ unit.
(Multiple Choice)
4.8/5
(35)
The first argument to EntityManager's XE "EntityManager interface:createQuery method" XE "createQuery method of interface EntityManager" createQuery method is a String written in ________.
(Multiple Choice)
4.9/5
(33)
In JPA transaction processing, if the operations execute successfully, you call EntityTransaction method _______ to commit the changes to the database. If any operation fails, you call EntityTransaction method ________ to return the database to its state prior to the transaction.
(Multiple Choice)
5.0/5
(33)
In JPA, when you compile the entity classes, the compiler looks at the annotations and adds JPA capabilities that help manage the interactions with the database-this is known as ________ capabilites.
(Multiple Choice)
4.8/5
(25)
With JPA, as part of a persistence unit, the IDE also creates a ________ package in the Source Packages folder.
(Multiple Choice)
4.9/5
(40)
The JPA annotation @Basic specifies whether the column is optional and whether the corresponding data should loaded ________ (i.e., only when the data is accessed through the entity object) or ________ (i.e., loaded immediately when the entity object is created).
(Multiple Choice)
4.8/5
(41)
An object that implements the EntityManager ________ manages the interactions between a program and the database.
(Multiple Choice)
4.9/5
(38)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)