x
Deploying InterClient Programs as Applets 4-23
Required Software for Applets . . . . . 4-24
Pros and Cons of Applet Deployment. . 4-24
Deploying InterClient Programs as Applications
4-24
Required Software for Applications . . . 4-25
InterClient/JDBC Compliance Specifications . 4-25
InterClient Extensions to the JDBC API . . 4-26
JDBC Features Not Implemented in InterClient
4-26
InterClient Implementation of JDBC Features .
4-28
InterBase Features Not Available through
InterClient or JDBC. . . . . . . . . . . . 4-28
Java SQL Datatype Support . . . . . . . . 4-29
SQL-to-Java Type Conversions . . . . . . 4-30
Java-to-SQL Type Conversion . . . . . . . 4-31
InterClient Class References. . . . . . . . 4-31
InterClient Data Source Properties for InterBase .
4-32Standard properties . . . . . . . . . . . 4-32
Extended Properties . . . . . . . . . . 4-33
InterClient Connection Pooling. . . . . . . 4-35
InterClient Scrollability. . . . . . . . . . . . . 4-36
The Connection Class . . . . . . . . . . . 4-36
The ResultSet Class . . . . . . . . . . . . 4-37
Additional Functions . . . . . . . . . . . . 4-37
Batch Updates. . . . . . . . . . . . . . . . . 4-38
Methods for the Statement and
PreparedStatement Classes . . . . . . . 4-38
The BatchUpdateException Class . . . . . 4-39
The DatabaseMetaData.supportsBatchUpdates
Function . . . . . . . . . . . . . . . . . 4-40
Code Examples . . . . . . . . . . . . . . 4-40
Implementation of Blob, Clob, and Other Related
API’s . . . . . . . . . . . . . . . . . . . . . 4-41
Chapter 5
Programming Applications
with ODBC
Overview of ODBC . . . . . . . . . . . . . . .5-1
Configuring an ODBC Driver. . . . . . . . .5-2
Configuring and Using ODBC Data Sources . .5-2
Configuring Data Sources . . . . . . . . . .5-2
Connecting from Delphi Using the ODBC Data
Source . . . . . . . . . . . . . . . . . . .5-3
Chapter 6
Working with UDFs and Blob
Filters
UDF Overview . . . . . . . . . . . . . . . . . 6-2
Writing a Function Module . . . . . . . . . . . 6-2
Writing a UDF . . . . . . . . . . . . . . . . 6-2
Specifying Parameters . . . . . . . . . . 6-3
Specifying a Return Value . . . . . . . . 6-3
Character Datatypes . . . . . . . . . . . 6-3
Calling Conventions . . . . . . . . . . . 6-4
Thread-safe UDFs . . . . . . . . . . . . . . 6-4
Compiling and Linking a Function Module . . . 6-6
Creating a UDF Library . . . . . . . . . . . 6-7
Modifying a UDF Library. . . . . . . . . . . 6-7
Declaring a UDF to a Database. . . . . . . . . 6-7
Defining a Sample UDF with a Descriptor
Parameter . . . . . . . . . . . . . . . . . 6-9
Declaring UDFs with FREE_IT . . . . . . 6-12
UDF Library Placement . . . . . . . . . . 6-13
Calling a UDF. . . . . . . . . . . . . . . . . 6-14
Calling a UDF with SELECT. . . . . . . . 6-14
Calling a UDF with INSERT . . . . . . . . 6-15
Calling a UDF with UPDATE. . . . . . . . 6-15
Calling a UDF with DELETE. . . . . . . . 6-15
Writing a Blob UDF . . . . . . . . . . . . . . 6-15
Creating a Blob Control Structure . . . . . 6-15
Declaring a Blob UDF . . . . . . . . . . . 6-16
A Blob UDF Example . . . . . . . . . . . 6-17
The InterBase UDF Library . . . . . . . . . . 6-18
abs. . . . . . . . . . . . . . . . . . . . . 6-20
acos . . . . . . . . . . . . . . . . . . . . 6-20
ascii_char . . . . . . . . . . . . . . . . . 6-20
ascii_val . . . . . . . . . . . . . . . . . . 6-20
asin . . . . . . . . . . . . . . . . . . . . 6-21
atan . . . . . . . . . . . . . . . . . . . . 6-21
atan2. . . . . . . . . . . . . . . . . . . . 6-21
bin_and . . . . . . . . . . . . . . . . . . 6-21
bin_or . . . . . . . . . . . . . . . . . . . 6-21
bin_xor. . . . . . . . . . . . . . . . . . . 6-21
ceiling . . . . . . . . . . . . . . . . . . . 6-22
cos. . . . . . . . . . . . . . . . . . . . . 6-22
cosh . . . . . . . . . . . . . . . . . . . . 6-22
cot . . . . . . . . . . . . . . . . . . . . . 6-22
div . . . . . . . . . . . . . . . . . . . . . 6-22
floor . . . . . . . . . . . . . . . . . . . . 6-23
ln. . . . . . . . . . . . . . . . . . . . . . 6-23
log . . . . . . . . . . . . . . . . . . . . . 6-23
log10. . . . . . . . . . . . . . . . . . . . 6-23
lower. . . . . . . . . . . . . . . . . . . . 6-23