|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object easik.sketch.util.Export.Constraints.ExportConstraint easik.sketch.util.Export.Constraints.ExportProductConstraint
public class ExportProductConstraint
A class to create a product constraint 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 java.lang.String |
DEL_PROC_NAME
The name of the product delete constraint |
private java.lang.String |
INS_PROC_NAME
The name of the product insert constraint |
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 | |
---|---|
ExportProductConstraint(int id)
Constructor calling the constructor of the ExportConstraint superclass. |
Method Summary | |
---|---|
private java.lang.String |
getFirstIfStatement(ExportPath p)
Gets the first IF statement. |
private java.lang.String |
getInsertCall(ExportPath p)
Gets the actual INSERT SELECT string for the constraint. |
private java.lang.String |
getPathInsertStrings(ExportPath p)
Gets the strings inserting an element for every table along the path up until the base table. |
private java.lang.String |
getSecondIfStatement(ExportPath p)
Gets the second IF statement. |
void |
setBaseTable()
Sets the base table of this product constraint. |
void |
setConstraintStrings()
Sets the constraint strings for this constraint |
private void |
setDeleteProc()
Sets the delete constraint string for this constraint. |
private void |
setInsertProcs()
Sets the insert constraint strings for this constraint. |
Methods inherited from class easik.sketch.util.Export.Constraints.ExportConstraint |
---|
addPath, getBaseTable, getConstraintStrings, getPaths, getTimeNames, set_db_name, setTargetTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String DEL_PROC_NAME
private final java.lang.String INS_PROC_NAME
Constructor Detail |
---|
public ExportProductConstraint(int id)
id
- The unique identifier for this constraintMethod Detail |
---|
public void setBaseTable()
setBaseTable
in class ExportConstraint
public void setConstraintStrings()
setConstraintStrings
in class ExportConstraint
private void setDeleteProc()
private void setInsertProcs()
private java.lang.String getFirstIfStatement(ExportPath p)
p
-
private java.lang.String getPathInsertStrings(ExportPath p)
p
- The path upon which we need to insert
private java.lang.String getSecondIfStatement(ExportPath p)
p
-
private java.lang.String getInsertCall(ExportPath p)
p
- The path for which this constraint applies
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |