Spec-Zone .ru
спецификации, руководства, описания, API
|
Contents | Prev | Next | JDBCTM Guide: Getting Started |
An alternative design, which we considered, was instead to extend the existing java.sql
types with new subtypes that contained any new methods. This approach was judged to
be too unwieldy. For example, since we needed to add methods to the java.sql.Statement
interface, such as Statement.setFetchSize()
, it would have
been necessary to create three new statement interfaces related to the old interfaces in
a fairly complex inheritance hierarchy (see below). This approach seemed to add too
much complexity to the JDBC API.