Exam 27: Java Persistence Api Jpa

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

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:
Verified

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:
Verified

A

Which of the following statements about JPA database transaction processing is false?

(Multiple Choice)
4.8/5
(30)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(31)

Which of the following JPA-related statements in false?

(Multiple Choice)
4.9/5
(32)

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)

Which of the following JPA-related statements is false?

(Multiple Choice)
4.9/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)

Which of the following statements related to JPA is false?

(Multiple Choice)
4.7/5
(36)

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)

Which f the following JPA-related statements is false?

(Multiple Choice)
5.0/5
(34)

An object that implements the EntityManager ________ manages the interactions between a program and the database.

(Multiple Choice)
4.9/5
(38)
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)