org.objectweb.speedo.generation.mivisitor
Class ORMappingGenerator.VisitRemember

java.lang.Object
  extended by org.objectweb.speedo.generation.mivisitor.ORMappingGenerator.VisitRemember
Enclosing class:
ORMappingGenerator

public static class ORMappingGenerator.VisitRemember
extends java.lang.Object

This class represents the status of visited/treated elements of a persistent class.

Author:
S.Chassande-Barrioz

Field Summary
 java.util.List primitiveFields
          the list primitive fields of the persistent class The content of the list is SpeedoField instances.
 java.util.List references
          the list reference fields of the persistent class (class reference and generic class reference) The content of the list is SpeedoField instances.
 
Constructor Summary
ORMappingGenerator.VisitRemember(SpeedoClass c)
          Builds a new instance for a persistent class.
 
Method Summary
 void baseVisited()
          Callback method to indicate that the base elements have been visited.
 boolean hasUnvisitedPart(ORMappingGenerator.VisitRequired req)
          Indicates if some elements specified by the VisitRequired parameter have not been already visited.
 void inheritedFieldsVisited()
          Callback method to indicate that inherited fields have been visited.
 void referenceFieldVisisted(SpeedoField sf)
          Callback method to indicate that a reference field has been visited.
 java.lang.String toString()
          Print the status of the class visit
 boolean visitBase(ORMappingGenerator.VisitRequired vr)
          Indicates if the base must be visited according to the parameter and the current status.
 boolean visitInheritedFields(ORMappingGenerator.VisitRequired vr)
          Indicates if inherited fields must be visited according to the parameter and the current status.
 boolean visitReferenceField(SpeedoField sf, ORMappingGenerator.VisitRequired vr)
          Callback method to indicate that a reference field has been visited.
 boolean visitReferences(ORMappingGenerator.VisitRequired vr)
          Indicates if one or several reference fields must be visited according to the parameter and the current status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

primitiveFields

public java.util.List primitiveFields
the list primitive fields of the persistent class The content of the list is SpeedoField instances.


references

public java.util.List references
the list reference fields of the persistent class (class reference and generic class reference) The content of the list is SpeedoField instances.

Constructor Detail

ORMappingGenerator.VisitRemember

public ORMappingGenerator.VisitRemember(SpeedoClass c)
Builds a new instance for a persistent class. This constructor fills the list of persistent fields.

Method Detail

toString

public java.lang.String toString()
Print the status of the class visit

Overrides:
toString in class java.lang.Object

hasUnvisitedPart

public boolean hasUnvisitedPart(ORMappingGenerator.VisitRequired req)
Indicates if some elements specified by the VisitRequired parameter have not been already visited.


visitBase

public boolean visitBase(ORMappingGenerator.VisitRequired vr)
Indicates if the base must be visited according to the parameter and the current status.


baseVisited

public void baseVisited()
Callback method to indicate that the base elements have been visited.


visitReferences

public boolean visitReferences(ORMappingGenerator.VisitRequired vr)
Indicates if one or several reference fields must be visited according to the parameter and the current status.


visitReferenceField

public boolean visitReferenceField(SpeedoField sf,
                                   ORMappingGenerator.VisitRequired vr)
Callback method to indicate that a reference field has been visited.


referenceFieldVisisted

public void referenceFieldVisisted(SpeedoField sf)
Callback method to indicate that a reference field has been visited.


visitInheritedFields

public boolean visitInheritedFields(ORMappingGenerator.VisitRequired vr)
Indicates if inherited fields must be visited according to the parameter and the current status.


inheritedFieldsVisited

public void inheritedFieldsVisited()
Callback method to indicate that inherited fields have been visited.