Download View this document as PDF
Transcript
CHAPTER 9 • Additional Topics If the class CS does not exist in the current database or if CS is not the name of a class in the database associated with the serialization, then an exception is raised. Note The database associated with the serialization is normally the database that contains the column. Serializations contained in work tables and in temporary tables created with “insert into #tempdb” are, however, associated with the database in which the serialization was stored originally. • The value of the column reference is: CSC.readObject(S) where CSC is the column reference. If the expression raises an uncaught Java exception, then an exception is raised. The expression yields a reference to an object in the Java VM, which is associated with the database associated with the serialization. Java-SQL member references Description References a field or method of a class or class instance. Syntax member_reference ::= class_member_reference | instance_member_reference class_member_reference ::= java_sql_class_name.method_name instance_member_reference ::= instance_expression>>member_name instance_expression ::= column_reference | variable_name | parameter_name | method_call | member_reference member_name ::= field_name | method_name Parameters member_reference An expression that describes a field or method of a class or object. class_member_reference An expression that describes a static method of a Java-SQL class. instance_member_reference An expression that describes a static or dynamic method or field of a JavaSQL class instance. Java in Adaptive Server Enterprise 163