Invoking Java methods in the database  Invoking Java methods as SQLJ stored procedures and functions

Chapter 1: An Introduction to Java in the Database

Invoking Java methods directly in SQL

The methods of an object-oriented language correspond to the functions of a procedural language. You can invoke methods stored in the database by referencing them, with name qualification, on instances for instance methods, and on either instances or classes for static (class) methods. You can invoke the method directly in, for example, Transact-SQL select lists and where clauses.

You can use static methods that return a value to the caller as user-defined functions (UDFs).

Certain restrictions apply when using Java methods in this way:





Copyright © 2005. Sybase Inc. All rights reserved. Invoking Java methods as SQLJ stored procedures and functions

View this book as PDF