ajax.expression
Class ProjectionTerm

java.lang.Object
  |
  +--ajax.expression.ProjectionTerm

public class ProjectionTerm
extends java.lang.Object


Constructor Summary
ProjectionTerm(java.util.List list)
           
 
Method Summary
 void add(java.util.List list)
           
 java.lang.String asListToString(boolean toFile)
          Converts the list of As names into a string
 boolean belongs(java.lang.String field, TransfInput in)
           
 As getAs(java.lang.String field, TransfInput in)
           
 As getAsGivenAs(java.lang.String as)
           
 FieldType getAsType(java.lang.String as)
           
 int getIndex(java.lang.String attribute)
          Returns the index of the attribute/column
 java.util.List getList()
           
 java.lang.String toCode()
          writes this ProjectionTerm as it was readen from the cleaning program.
 java.lang.String toJavaToFile(Transformation transf)
          Converts ProjectionTerm into Java code that inserts the result of the transformation into a file
 java.lang.String toJavaToTable(Transformation transf)
          Converts ProjectionTerm into Java code that makes a JDBC call to insert the result of the transformation into a table
 java.lang.String toSQL(Transformation transf)
          Converts ProjectionTerm into SQL
 java.lang.String toString()
          Convert to human read-able object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectionTerm

public ProjectionTerm(java.util.List list)
Method Detail

getAsType

public FieldType getAsType(java.lang.String as)
                    throws AjaxTypeException

add

public void add(java.util.List list)

getList

public java.util.List getList()

getAs

public As getAs(java.lang.String field,
                TransfInput in)
         throws AjaxTypeException

getAsGivenAs

public As getAsGivenAs(java.lang.String as)
                throws AjaxTypeException

asListToString

public java.lang.String asListToString(boolean toFile)
Converts the list of As names into a string

belongs

public boolean belongs(java.lang.String field,
                       TransfInput in)
                throws AjaxTypeException

getIndex

public int getIndex(java.lang.String attribute)
             throws AjaxTypeException
Returns the index of the attribute/column

toSQL

public java.lang.String toSQL(Transformation transf)
Converts ProjectionTerm into SQL

toJavaToTable

public java.lang.String toJavaToTable(Transformation transf)
                               throws CatalogException,
                                      ExpressionException,
                                      AjaxTypeException
Converts ProjectionTerm into Java code that makes a JDBC call to insert the result of the transformation into a table

toJavaToFile

public java.lang.String toJavaToFile(Transformation transf)
                              throws CatalogException,
                                     ExpressionException,
                                     AjaxTypeException
Converts ProjectionTerm into Java code that inserts the result of the transformation into a file

toCode

public final java.lang.String toCode()
writes this ProjectionTerm as it was readen from the cleaning program.

toString

public java.lang.String toString()
Convert to human read-able object.
Overrides:
toString in class java.lang.Object
Returns:
a string representing the ProjectionTerm.