|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.sketch.util.Export.Constraints.ExportConstraint
easik.sketch.util.Export.Constraints.ExportCommutativeDiagram
public class ExportCommutativeDiagram
A class to create a commutative diagram object, including all necessary information gleaned from the XML file. Should not be used for any other purpose than database exportation, as it contains no graphical information.
| Field Summary | |
|---|---|
private static java.lang.String |
COMM_PROC_NAME
The name of all procedures created because of a commutative diagram |
private java.lang.String |
targetTable
The codomain of the commutative diagram |
| Fields inherited from class easik.sketch.util.Export.Constraints.ExportConstraint |
|---|
_a_i_tables, _b_d_tables, _b_i_tables, _baseTable, _db_name, _id, _paths, _procedureStrings |
| Constructor Summary | |
|---|---|
ExportCommutativeDiagram(int id)
Constructor which calls the superclass constructor. |
|
| Method Summary | |
|---|---|
private java.lang.String |
getAllConditionsString(ExportPath p)
Determines all conditions needing to hold along the commutative diagram path. |
private java.lang.String |
getAllTablesString(ExportPath p)
Determines all tables involved in the path that must be referenced by conditions in the WHERE clause. |
private java.lang.String |
getSelection(ExportPath p)
Determines the last entity before the codomain of the path and sets the SELECT statement to select the reference to the codomain of the path from this entity. |
java.lang.String |
getTargetTable()
Get the target table of the commutative diagram |
void |
setBaseTable()
Sets the base table (that is, the domain) of the commutative diagram. |
void |
setConstraintStrings()
Sets the constraint string for this constraint |
void |
setTargetTable()
Sets the target table (that is, the codomain) of the commutative diagram. |
| Methods inherited from class easik.sketch.util.Export.Constraints.ExportConstraint |
|---|
addPath, getBaseTable, getConstraintStrings, getPaths, getTimeNames, set_db_name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String COMM_PROC_NAME
private java.lang.String targetTable
| Constructor Detail |
|---|
public ExportCommutativeDiagram(int id)
id - An id number to uniquely identify this constraint from all others.| Method Detail |
|---|
public void setBaseTable()
setBaseTable in class ExportConstraintpublic void setTargetTable()
setTargetTable in class ExportConstraintpublic java.lang.String getTargetTable()
public void setConstraintStrings()
setConstraintStrings in class ExportConstraintprivate java.lang.String getSelection(ExportPath p)
p - The path for which the selection is being made
private java.lang.String getAllTablesString(ExportPath p)
p - The path for which entities lie
private java.lang.String getAllConditionsString(ExportPath p)
p - The path for which conditions must hold
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||