After the Java code is compiled into a class file it can be installed in the database. The class name can then be used as a column datatype in a CREATE TABLE command.