org.objectweb.speedo.metadata
Class SpeedoField

java.lang.Object
  extended byorg.objectweb.speedo.metadata.SpeedoElement
      extended byorg.objectweb.speedo.metadata.SpeedoField

public class SpeedoField
extends SpeedoElement

This class corresponds to the description of persistent capable fields.

Author:
Y. Devaux

Field Summary
 int access
           
 boolean defaultFetchGroup
          This boolean indicates if the field is in the default fetch group.
 java.lang.String desc
           
 boolean embedded
          Attribute embedded of the XML file.
 SpeedoClass jdoClass
          Description of the class containing the field.
 SpeedoTuple jdoTuple
          Type of the tuple represented by this SpeedoField if it is a tuple
static byte MANY_MANY_RELATION
           
static byte MANY_ONE_RELATION
           
 java.lang.String name
          SpeedoAccessor name.
static byte NO_RELATION
           
 byte nullValue
          Attribute null-value in the XML file.
 int number
           
static byte ONE_MANY_RELATION
           
static byte ONE_ONE_RELATION
           
 byte persistenceModifier
          Attribute persistence-modifier in the XML file.
 boolean primaryKey
          Boolean indicating if the field is a primary key.
 byte relationType
           
 
Fields inherited from class org.objectweb.speedo.metadata.SpeedoElement
jdoExtension
 
Constructor Summary
SpeedoField()
           
 
Method Summary
 java.lang.String modifier()
          Returns the field's modifier
 java.lang.String privateSignature()
          Returns the field's signature with a private modifier.
 java.lang.String publicSignature()
          Returns the field's signature with a public modifier.
 java.lang.String toString()
          Transforms a SpeedoField into a String.
 java.lang.String type()
          Returns the type of the field.
 
Methods inherited from class org.objectweb.speedo.metadata.SpeedoElement
addExtension, getExtension, getExtensionByKey, getExtensionValueByKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_RELATION

public static final byte NO_RELATION
See Also:
Constant Field Values

ONE_ONE_RELATION

public static final byte ONE_ONE_RELATION
See Also:
Constant Field Values

ONE_MANY_RELATION

public static final byte ONE_MANY_RELATION
See Also:
Constant Field Values

MANY_ONE_RELATION

public static final byte MANY_ONE_RELATION
See Also:
Constant Field Values

MANY_MANY_RELATION

public static final byte MANY_MANY_RELATION
See Also:
Constant Field Values

name

public java.lang.String name
SpeedoAccessor name.


access

public int access

desc

public java.lang.String desc

number

public int number

persistenceModifier

public byte persistenceModifier
Attribute persistence-modifier in the XML file.


primaryKey

public boolean primaryKey
Boolean indicating if the field is a primary key.


nullValue

public byte nullValue
Attribute null-value in the XML file.


defaultFetchGroup

public boolean defaultFetchGroup
This boolean indicates if the field is in the default fetch group.


embedded

public boolean embedded
Attribute embedded of the XML file.


relationType

public byte relationType

jdoTuple

public SpeedoTuple jdoTuple
Type of the tuple represented by this SpeedoField if it is a tuple


jdoClass

public SpeedoClass jdoClass
Description of the class containing the field.

Constructor Detail

SpeedoField

public SpeedoField()
Method Detail

toString

public java.lang.String toString()
Transforms a SpeedoField into a String.

Returns:
the String corresponding to the SpeedoField.

publicSignature

public java.lang.String publicSignature()
Returns the field's signature with a public modifier.

Returns:
the String containing the field' signature with a public modifier.

privateSignature

public java.lang.String privateSignature()
Returns the field's signature with a private modifier.

Returns:
the String containing the field' signature with a private modifier.

modifier

public java.lang.String modifier()
Returns the field's modifier

Returns:
the String representing the modifier (public, private, protected)

type

public java.lang.String type()
Returns the type of the field.

Returns:
type of the field.