|
[Exercise | API Docs | Short Course| Exercises] Help is available for each task.
Task 1in doConnect(), after connecting and obtaining a Statement, add code to get DatabaseMetaData into dbmd.
dbmd = con.getMetaData();
Task 2In doInvokeFn(), inside a try block, add code to execute a query that returns a scalar value from the function name contained in sTemp2. Use the following query to serve as a vehicle for the scalar function:
SELECT <scalar function expression> Get the value returned in sTemp3, then close the ResultSet rs.
Task 3In LoadFunctions(), given the following code set,
retrieve the appropriate group of scalar function names into sFunctions. For jrbNumeric get the Numeric Functions, for jrbString get the String Functions, for jrbTD get the Time and Date Functions, and for jrbSystem get the System Functions.
Task 4In LoadFunctions(), add code to get each function name from the sFunctions with a StringTokenizer st, then load the names into the data model dcbm using dcbm.addElement(). For portability, put the Strings to upper case.
Copyright 1996-2000 jGuru.com. All Rights Reserved. | ||||||||||||
|
| ||||||||||||