![]() |
SQL-J Language Reference
|
Reference Manual |
CREATE CLASS ALIAS statementA CREATE CLASS ALIAS statement allows you to create an alias for a Java class for use within SQL-J statements. Once you create an alias for a class, you no longer have to use the full package name to refer to the class. In addition, when calling static methods, referencing static fields, and casting Java data types, you do not have to use the CLASS keyword when the classes have aliases. Class aliases are not defined within a particular schema. SyntaxCREATE CLASS ALIAS [ ClassAlias] FOR JavaClassName Like all SQL92Identifiers, class aliases are case-insensitive unless delimited. If you do not specify the alias for the class, Cloudscape uses the class name (minus any package names) as the alias. Specifying an alias for the class that is not the actual class name is useful in situations in which two different packages have a class of the same name. The Java class must be public and available on the current system or database class path. CREATE CLASS ALIAS Examples
-- by default, the alias is the class name
CREATE CLASS ALIAS tZone FOR
CREATE CLASS ALIAS "timeZone" FOR
-- Once you create an alias, use it where Cloudscape-Supplied Class Aliases for Proprietary ClassesCloudscape provides class aliases for Cloudscape classes that may be referenced within SQL-J statements. Table 1-1 shows the built-in class aliases. Class Aliases and Cloudscape synchronizationExcept for built-in class aliases, you must explicitly add class aliases to a publication. |
|
![]() Cloudscape Version 3.6 For information about Cloudscape technical support, go to: www.cloudscape.com/support/.Copyright © 1998, 1999, 2000 Informix Software, Inc. All rights reserved. |