Flashcards
Quiz 4 Solutions: Lancaster
Cards in this deck (17)
- 1Define POJOPlain Old Java Object
- 2Define Impedance mismatchthe mismatch between an object oriented system and a relational system
such as a relational database - 3Define FXMLan xml file that allows you to configure the view (components, layout,
etc.) in a JavaFx application - 4Define JavaFX controller (in MVC pattern)the class that connects the model and the view
- 5Define “Getter”a method in a Java class that returns the value of a instance variable
(field) - 6Define Java Beansame as POJO - a simple class that holds fields and little if any business
logic - 7Define POM.XMLthe configuration file for Maven
- 8Define PreparedStatementa Statement object that has parameters that can be filled - may be
faster than a regular statement - 9Define Protocola description of the communication methods used (JDBC, HTTP, etc.
are protocols) - 10Define Enhanced for loopa for loop that iterates over an entire set
- 11The Flyway library provides a Java database application with support for migrations. What are migrations?migrations are files that change the database schema in some way -
adding or altering columns or tables - 12What is a singleton object?an object that can only be instantiated once for an application
- 13What changes are required to turn a regular Java class into a singleton?make the constructor private
create a field that holds an instance of the object
provide a method that returns an the instance - 14What is the purpose of the DbHelper class in the starter project?provides a central place to manage database connections
- 15How are tables mapped to Java classes when using the ActiveRecord pattern discussed in class?each Java class is mapped to a single table, and each row in the table
corresponds to once instance of the class - 16What was the name of the song at the end of the video on H2?Fun by Con Funk Shun
- 17—
Information
- Description
- Exam CIS 2348 Flashcards on Quiz 4 Solutions: Lancaster, created by . . on 26/04/2016.
- Created by
- . .
- Views
- 7
- Rating