Database Reference
In-Depth Information
Figure 15-1. Sqoop's import process
The
Widget
class from earlier, for example, contains the following methods that retrieve
each column from an extracted record:
public
Integer
get_id
();
public
String
get_widget_name
();
public
java
.
math
.
BigDecimal
get_price
();
public
java
.
sql
.
Date
get_design_date
();
public
Integer
get_version
();
public
String
get_design_comment
();
More critical to the import system's operation, though, are the serialization methods that
form the
DBWritable
interface, which allow the
Widget
class to interact with JDBC: