O'Reilly logo

Java™ Oracle® Database Development by David J. Gallardo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Object Types

Object types in Oracle are the equivalent of classes in Java. Like Java classes, they have attributes and methods. An object type can be used as the datatype in a table column; as an attribute in another object; and as an argument, variable, or return value for a method.

In Oracle, attributes correspond to the columns in a table. In the same way that attributes in Java can be of either primitive types, such as int and float, or other classes, such as String and FileWriter, attributes in Oracle can be either standard SQL datatypes, such as NUMBER and VARCHAR2, or other object types, including nested tables and arrays.

In Oracle, methods are functions or procedures written in PL/SQL, Java, or C/C++. We'll take a look at methods later; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required