Oracle Application Server TopLink API Reference
10g (9.0.4.3)

B10491-02

oracle.toplink.tools.schemaframework
Class TypeDefinition

java.lang.Object
  extended byoracle.toplink.tools.schemaframework.DatabaseObjectDefinition
      extended byoracle.toplink.tools.schemaframework.TypeDefinition

All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class TypeDefinition
extends DatabaseObjectDefinition

Purpose: Allow for Oracle 8 object-relational user defined type to be created.

See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.toplink.tools.schemaframework.DatabaseObjectDefinition
name, qualifier

 

Constructor Summary
TypeDefinition()
           

 

Method Summary
 void addField(FieldDefinition field)
          PUBLIC: Add the field to the type.
 void addField(java.lang.String fieldName, java.lang.Class type)
          PUBLIC: Add the field to the type, default sizes are used.
 void addField(java.lang.String fieldName, java.lang.Class type, int fieldSize)
          PUBLIC: Add the field to the type.
 void addField(java.lang.String fieldName, java.lang.Class type, int fieldSize, int fieldSubSize)
          PUBLIC: Add the field to the type.
 void addField(java.lang.String fieldName, java.lang.String typeName)
          PUBLIC: Add the field to the type to a nested type.
 java.io.Writer buildCreationWriter(oracle.toplink.publicinterface.Session session, java.io.Writer writer)
          INTERNAL: Return the create type statement.
 java.io.Writer buildDeletionWriter(oracle.toplink.publicinterface.Session session, java.io.Writer writer)
          INTERNAL: Return the drop type statement.
 java.util.Vector getFields()
           
 void setFields(java.util.Vector field)
           

 

Methods inherited from class oracle.toplink.tools.schemaframework.DatabaseObjectDefinition
createObject, createOnDatabase, dropFromDatabase, dropObject, getFullName, getName, getQualifier, setName, setQualifier, toString

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

TypeDefinition

public TypeDefinition()
Method Detail

addField

public void addField(java.lang.String fieldName,
                     java.lang.Class type)
PUBLIC: Add the field to the type, default sizes are used.
Parameters:
type - is the Java class type coresponding to the database type.

addField

public void addField(java.lang.String fieldName,
                     java.lang.Class type,
                     int fieldSize)
PUBLIC: Add the field to the type.
Parameters:
type - is the Java class type coresponding to the database type.

addField

public void addField(java.lang.String fieldName,
                     java.lang.Class type,
                     int fieldSize,
                     int fieldSubSize)
PUBLIC: Add the field to the type.
Parameters:
type - is the Java class type coresponding to the database type.

addField

public void addField(java.lang.String fieldName,
                     java.lang.String typeName)
PUBLIC: Add the field to the type to a nested type.
Parameters:
typeName - is the name of the nested type.

addField

public void addField(FieldDefinition field)
PUBLIC: Add the field to the type.

buildCreationWriter

public java.io.Writer buildCreationWriter(oracle.toplink.publicinterface.Session session,
                                          java.io.Writer writer)
                                   throws ValidationException
INTERNAL: Return the create type statement.
Specified by:
buildCreationWriter in class DatabaseObjectDefinition
Throws:
ValidationException

buildDeletionWriter

public java.io.Writer buildDeletionWriter(oracle.toplink.publicinterface.Session session,
                                          java.io.Writer writer)
                                   throws ValidationException
INTERNAL: Return the drop type statement.
Specified by:
buildDeletionWriter in class DatabaseObjectDefinition
Throws:
ValidationException

getFields

public java.util.Vector getFields()

setFields

public void setFields(java.util.Vector field)

Copyright © 1998, 2004 Oracle Corporation. All Rights Reserved.