Explain the idea behind locators as an approach to external access to structured types.
How can locators be used in external routines?
Specify parameter or return types (which are UDT/collection) AS LOCATOR
Give an overview over Transforms
How can transforms be created and how do thez work together with methods?
CREATE TRANSFORM FOR group1 (FROM SQL WITH FUNCTION F(), TO SQL WITH FUNCTION G(); ------------------------ IMPLICIT TRANSFORMS FOR DISTINCT TyPES: CAST FUNCTIONS
Give an overview of how transforms are used in SQL
Give an overview of complex value transfers.
How can transforms work together with methods?
FROM/TO SQL WITH METHOD m() FOR
** m( ) can be overriden.
Give an overview of JDBC and its support for Complex Value Transfers.
JDBC: getConnection, createStatement, executeQuery, rs.next()+rs.getString() (useful for generic apps/tools)
How does JDBC support mapping of UDTs to Java?
Works transparently (get/set object on ResultSet or prepared statement)
- > mapping UDT instance to Java instances (mapping table records correspondence) - > Java class implements SQLData (read/write SQL methods) - > SQL Input/Output stream interfaces
Give an overview of OLB (SQLJ Part 0) and compare it to JDBC.
-> static embedded SQL in Java (More concise, easier than JDBC) -> Static type checking
Compare the advantages and disadvantages of each approach.