EasyManua.ls Logo

Sybase Adaptive Server Anywhere - Page 308

Sybase Adaptive Server Anywhere
1182 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Java class data types
290
Partially supported packages and classes
The following classes are partially supported. They have some unsupported
native methods:
java.lang.ClassLoader
java.lang.Compiler
java.lang.Runtime (exec/load/loadlibrary)
java.lang.SecurityManager
java.io.File
java.io.FileDescriptor
java.io.FileInputStream
java.io.FileOutputStream
java.io.RandomAccessFile
java.util.zip.Deflater
java.util.zip.Inflater
User-defined Java classes
Users with DBA permissions can install Java classes into a database. Any
public class installed into the database becomes available as a data type.
The Java Development Kit (JDK) provides the tools necessary for preparing
classes for installation into a database.
v To prepare a class for installation, using the JDK:
1 Using a text editor, write a Java class, outside the database, and store it
as a Java source code file (typically with an extension of
.java
).
For example, you may create a file named
MyFirstClass.java
.
2Using the
javac
compiler, compile the Java class to produce a Java class
file (with
.class
extension).
For example, to compile the file
MyFirstClass.java
, type the following at
a command prompt:
javac MyFirstClass.java
Once you have a compiled Java class file, you can install it into the database.
You can do this conveniently using either Sybase Central or Interactive SQL.
Preparing classes
using the JDK
Installing a class

Table of Contents

Related product manuals