ajax.catalog
Class UnionView

java.lang.Object
  |
  +--ajax.catalog.Transformation
        |
        +--ajax.catalog.UnionView
All Implemented Interfaces:
CatalogObject

public class UnionView
extends Transformation


Fields inherited from class ajax.catalog.Transformation
CLUST, DBTransferStr, dirExec, dirFiles, dirFunctions, embeddedOutput, endEvaluateHeader, evaluateHeader, evaluateTail, exceptionOutput, FROM_FILE, FROM_TABLE, generatedCodeType, ifTail, importIOException, importList, importRunnableTransf, importSqlException, importSqlResultSet, importWrapperException, importWrapperManager, inputType, JAVA_CODE, MAPP, MATCH, MERG, newLine, outerOutput, outputType, SQL_CODE, tail, TO_FILE, TO_TABLE, transfType, VIEW, wrapperInitialization
 
Constructor Summary
UnionView(java.lang.String name)
          The constructor of a UnionView Transformation.
 
Method Summary
 void addComponent(View view)
          Initialization methods for setting the components of this transformation
 void init(java.util.List key)
          Set the key fields of this transformation and defines also the the exceptionOutput object associated to this transformation. we are supposing that the key field of each view component is presented in the key of the Unionview transformation.
 boolean isLetToSQL()
          Checks if the LET clause of each view component of this transformation can be converted to a SQL statement.
 void setFromFile()
          Sets the transformation to read the input from a file.
 void setFromTable()
          Sets the transformation to read the input from a file.
 void setToFile()
          Sets the transformation to write the output into a file
 void setToJava()
          Sets the execution mode to Java
 void setToSQL()
          Sets the execution mode to SQL
 void setToTable()
          Sets this transformation (and corresponding views components) to write the output into a file.
 java.lang.String toHtml()
          Converts this transformation into html readable object.
 void toJava()
          Generates a Java class that issues SQL calls, through JDBC, to get the data from the database and store the results back.
 void toSQL()
          Generates a Java class that issues only SQL calls, through JDBC, for implementing the transformation
 java.lang.String toString()
          Converts this transformation into a human readable object.
 void toXML(java.lang.String XMLfileName)
          Converts the transformation into an XML document
 
Methods inherited from class ajax.catalog.Transformation
addAsList, addEmbeddedQuery, closeFile, closeOutputFiles, closeOutputJdbc, createOutputFiles, createOutputTables, declareTransfer, doOuterJoinInSQL, dump, dumpQuery, exceptionsToJava, fromToSQL, getAllOutputNames, getExceptionsLet, getExceptionTable, getFields, getFieldType, getFrom, getIndex, getIndexAttribute, getInputNames, getInputTable, getKey, getKeyAs, getLet, getMatTable, getName, getOutput, getOutput, getOutputException, getOutputNames, getOutputSize, getOutputTable, getTable, getTransfType, getWhere, hasNullConstraint, init, initialize, isClustering, isFromTable, isLetOptimizableDE, isMapping, isMatching, isMerging, isToSQL, isToTable, isTransformation, isView, KeyExceptionToJava, letToJava, load, main, openFile, outerOutputIter, selectToJava, selectToSQL, selectToSQLToTable, setExceptionOutput, setName, setOuterOutput, setWeaveOutputsSchemas, setWeaveRunTimePolicies, toJavaBody, toJavaFromInput, toJavaQuery, toTableQuery, updateAuxiliaryFunctions, whereToJava, whereToSQL, writeCollection, writeHtmlCollection, writeTailClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnionView

public UnionView(java.lang.String name)
The constructor of a UnionView Transformation.
Method Detail

init

public final void init(java.util.List key)
                throws AjaxTypeException
Set the key fields of this transformation and defines also the the exceptionOutput object associated to this transformation. we are supposing that the key field of each view component is presented in the key of the Unionview transformation.

addComponent

public void addComponent(View view)
Initialization methods for setting the components of this transformation

setToSQL

public void setToSQL()
Sets the execution mode to SQL
Overrides:
setToSQL in class Transformation

setToJava

public void setToJava()
Sets the execution mode to Java
Overrides:
setToJava in class Transformation

setToTable

public void setToTable()
Sets this transformation (and corresponding views components) to write the output into a file.
Overrides:
setToTable in class Transformation

setToFile

public void setToFile()
Sets the transformation to write the output into a file
Overrides:
setToFile in class Transformation

setFromFile

public void setFromFile()
Sets the transformation to read the input from a file.
Overrides:
setFromFile in class Transformation

setFromTable

public void setFromTable()
Sets the transformation to read the input from a file.
Overrides:
setFromTable in class Transformation

toSQL

public void toSQL()
           throws CatalogException,
                  java.io.IOException,
                  AjaxTypeException
Generates a Java class that issues only SQL calls, through JDBC, for implementing the transformation
Overrides:
toSQL in class Transformation

isLetToSQL

public boolean isLetToSQL()
Checks if the LET clause of each view component of this transformation can be converted to a SQL statement.
Overrides:
isLetToSQL in class Transformation

toJava

public void toJava()
            throws CatalogException,
                   java.io.IOException,
                   ExpressionException,
                   AjaxTypeException
Generates a Java class that issues SQL calls, through JDBC, to get the data from the database and store the results back. The execution of the transformation is done in Java
Overrides:
toJava in class Transformation

toXML

public void toXML(java.lang.String XMLfileName)
Converts the transformation into an XML document
Overrides:
toXML in class Transformation

toString

public java.lang.String toString()
Converts this transformation into a human readable object.
Overrides:
toString in class Transformation

toHtml

public java.lang.String toHtml()
Converts this transformation into html readable object.
Overrides:
toHtml in class Transformation