Download O2 Java Binding Guide
Transcript
5
Advanced Programming
The following is generated in the output file schema1.classes:
package schema1;
public class Person
{
private int age;
private String name;
private Person spouse;
private Person Children[];
}
public class Student extends Person {
private Person professor;
}
Using the command with Sybase:
o2jb_dump_classes -url sybase:java_store -base base1
-user john -passwd john_passwd
The following is generated in the ouput file base1.classes:
class Person {
int age;
String name;
Person spouse;
Person children[];
}
class Student extends Person {
Person professor;
}
For complete details of the o2jb_dump_classes tool see Chapter 6,
Section o2jb_dump_classes.
Inspecting database structures
The structures in the database, i.e. O2 classes or tables generated for
storing instances of imported classes can be inspected using the
o2jb_dump_schema tool.
94
Java Binding User Manual