SMACS

smacs.find.imports
Class CrossRefSelins

java.lang.Object
  extended bysmacs.find.imports.CrossRefSelins

public class CrossRefSelins
extends Object

bind seletected items of a Selins to its DDL declarations.

An important step into the internal format is the detection of the attributes of the selected items in select-insert statement. This includes not only its type but also the crossreferences to other columsn and tables - while this is of minor importance on the QUERY side of the transfer it turns out to be paramount on the UPDATE side of the transfer where possibly SERIAL UNIQUE identifiers are used or PRIMARY KEY conditions must be met.

The actual implementation annotates again in xml style with assigning reference ids and attributes between the matching parts of a tree. That allows us later to assign global identifiers for each item while generation a java script, and each of the references gets updated automatically when catching the name by dereferencing the crossref attribute.

The actual parsing of an import module is done with the prior work of a ModuleImport that sits on top of the DDL table import and the SelIns import.

Author:
Copyright (C) 2004, Guido Draheim. All rights reserved. Part of SMACS project.

Field Summary
protected static Logger log
           
 
Constructor Summary
CrossRefSelins()
           
 
Method Summary
 void addCrossRefsTo(ModuleImport imported)
           
static void main(String[] argv)
          test program. do addCrossRefsTo(smacs.find.imports.ModuleImport)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

CrossRefSelins

public CrossRefSelins()
Method Detail

addCrossRefsTo

public void addCrossRefsTo(ModuleImport imported)

main

public static void main(String[] argv)
test program. do addCrossRefsTo(smacs.find.imports.ModuleImport)


SMACS