org.objectweb.speedo.metadata
Class SpeedoField

java.lang.Object
  |
  +--org.objectweb.speedo.metadata.SpeedoElement
        |
        +--org.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.
 boolean hasGetter
          True if an getter was put in the code of the SpeedoClass
 boolean hasSetter
          True if an setter was put in the code of the SpeedoClass
 SpeedoClass jdoClass
          Description of the class containing the field.
 SpeedoTuple jdoTuple
          Type of the tuple represented by this SpeedoField if it is a tuple
 java.lang.String name
          SpeedoAccessor name.
 byte nullValue
          Attribute null-value in the XML file.
 int number
           
 byte persistenceModifier
          Attribute persistence-modifier in the XML file.
 boolean primaryKey
          Boolean indicating if the field is a primary key.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

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.

hasGetter

public boolean hasGetter
True if an getter was put in the code of the SpeedoClass

hasSetter

public boolean hasSetter
True if an setter was put in the code of the SpeedoClass
Constructor Detail

SpeedoField

public SpeedoField()
Method Detail

toString

public java.lang.String toString()
Transforms a SpeedoField into a String.
Overrides:
toString in class java.lang.Object
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.