|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.TypeDefinition
public class TypeDefinition
Purpose: Allow for Oracle 8 object-relational user defined type to be created.
| Field Summary | |
|---|---|
protected java.util.Vector |
fields
|
| Fields inherited from class org.eclipse.persistence.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(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the create type statement. |
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the drop type statement. |
java.util.Vector |
getFields()
|
void |
setFields(java.util.Vector fields)
|
| Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
|---|
clone, createObject, createOnDatabase, dropFromDatabase, dropObject, getFullName, getName, getQualifier, setName, setQualifier, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector fields
| Constructor Detail |
|---|
public TypeDefinition()
| Method Detail |
|---|
public void addField(java.lang.String fieldName,
java.lang.Class type)
type - is the Java class type coresponding to the database type.
public void addField(java.lang.String fieldName,
java.lang.Class type,
int fieldSize)
type - is the Java class type coresponding to the database type.
public void addField(java.lang.String fieldName,
java.lang.Class type,
int fieldSize,
int fieldSubSize)
type - is the Java class type coresponding to the database type.
public void addField(java.lang.String fieldName,
java.lang.String typeName)
typeName - is the name of the nested type.public void addField(FieldDefinition field)
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
throws ValidationException
buildCreationWriter in class DatabaseObjectDefinitionValidationException
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
throws ValidationException
buildDeletionWriter in class DatabaseObjectDefinitionValidationExceptionpublic java.util.Vector getFields()
public void setFields(java.util.Vector fields)
|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||