org.objectweb.medor.query.lib
Class BasicPropagatedField

java.lang.Object
  extended byBasicCloneable
      extended byorg.objectweb.medor.lib.BasicField
          extended byorg.objectweb.medor.query.lib.BasicQueryTreeField
              extended byorg.objectweb.medor.query.lib.BasicPropagatedField
All Implemented Interfaces:
java.lang.Cloneable, Cloneable, java.lang.Comparable, Field, NullStatus, PropagatedField, QueryTreeField
Direct Known Subclasses:
BasicPropagFromNestedField

public class BasicPropagatedField
extends BasicQueryTreeField
implements PropagatedField

Author:
Sebastien Chassande-Barrioz
See Also:
Serialized Form

Field Summary
protected  java.util.HashMap ancestors
           
protected  int index
           
 
Fields inherited from class org.objectweb.medor.query.lib.BasicQueryTreeField
qt
 
Fields inherited from class org.objectweb.medor.lib.BasicField
logger, name, type, valueState
 
Fields inherited from interface org.objectweb.medor.api.Field
PNAMENAME
 
Fields inherited from interface org.objectweb.medor.api.NullStatus
NONULLS, NULLABLE, NULLABLEUNKNOWN
 
Constructor Summary
BasicPropagatedField()
           
BasicPropagatedField(java.lang.String name, PType type, QueryTree qt, Field[] _ancestors)
           
 
Method Summary
 java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone)
           
 int getIndex()
          The index of this Field in the array made of the concatenation of the tuples from the children QueryTrees.
 short getNullStatus()
          What is the status of the Field regarding null values (NullStatus).
 Field[] getOriginFields()
           
protected  java.util.ArrayList getOriginFields(java.util.ArrayList src, java.util.ArrayList dst)
           
protected  java.util.ArrayList getPrevious()
           
 Field[] getPreviousFields()
           
 Field[] getPreviousFields(java.lang.String oldFieldName)
           
 void replacePreviousField(Field[] _ancestors)
           
 void setIndex(int idx)
           
 
Methods inherited from class org.objectweb.medor.query.lib.BasicQueryTreeField
getQueryTree
 
Methods inherited from class org.objectweb.medor.lib.BasicField
compareTo, getName, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.query.api.QueryTreeField
getQueryTree
 
Methods inherited from interface org.objectweb.medor.api.Field
getName, getType
 
Methods inherited from interface org.objectweb.medor.api.Cloneable
clone
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

ancestors

protected java.util.HashMap ancestors

index

protected int index
Constructor Detail

BasicPropagatedField

public BasicPropagatedField()

BasicPropagatedField

public BasicPropagatedField(java.lang.String name,
                            PType type,
                            QueryTree qt,
                            Field[] _ancestors)
                     throws MedorException
Method Detail

clone

public java.lang.Object clone(java.lang.Object clone,
                              java.util.Map obj2clone)
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class BasicQueryTreeField
Throws:
java.lang.CloneNotSupportedException

getIndex

public int getIndex()
Description copied from interface: PropagatedField
The index of this Field in the array made of the concatenation of the tuples from the children QueryTrees. This information is used to pick the right value at evaluation time from this concatenated tuple to put it in the result Tuple.

Specified by:
getIndex in interface PropagatedField

setIndex

public void setIndex(int idx)
Specified by:
setIndex in interface PropagatedField

getPreviousFields

public Field[] getPreviousFields()
Specified by:
getPreviousFields in interface PropagatedField

getPreviousFields

public Field[] getPreviousFields(java.lang.String oldFieldName)
Specified by:
getPreviousFields in interface PropagatedField

getOriginFields

public Field[] getOriginFields()
Specified by:
getOriginFields in interface PropagatedField

getOriginFields

protected java.util.ArrayList getOriginFields(java.util.ArrayList src,
                                              java.util.ArrayList dst)

getPrevious

protected java.util.ArrayList getPrevious()

getNullStatus

public short getNullStatus()
Description copied from interface: Field
What is the status of the Field regarding null values (NullStatus).

Specified by:
getNullStatus in interface Field
Overrides:
getNullStatus in class BasicField

replacePreviousField

public void replacePreviousField(Field[] _ancestors)
Specified by:
replacePreviousField in interface PropagatedField