Class TypeDefinition

java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.TypeDefinition
All Implemented Interfaces:
Serializable, Cloneable

public class TypeDefinition extends DatabaseObjectDefinition

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

See Also:
  • Field Details

    • fields

      protected Vector fields
  • Constructor Details

    • TypeDefinition

      public TypeDefinition()
  • Method Details

    • addField

      public void addField(String fieldName, 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(String fieldName, 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(String fieldName, 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(String fieldName, 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 Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException
      INTERNAL: Return the create type statement.
      Specified by:
      buildCreationWriter in class DatabaseObjectDefinition
      Throws:
      ValidationException
    • buildDeletionWriter

      public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException
      INTERNAL: Return the drop type statement.
      Specified by:
      buildDeletionWriter in class DatabaseObjectDefinition
      Throws:
      ValidationException
    • getFields

      public Vector getFields()
    • setFields

      public void setFields(Vector fields)