|
||||||||||
| 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.ExportSumConstraint
public class ExportSumConstraint
A class to create a sum 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.util.HashMap<java.lang.String,java.lang.String> |
_varTable
A hashmap of the target tables of the first edge in the paths leading from the pullback domain, indexed by the name of the domain of the path. |
private static java.lang.String |
DEL_PROC_NAME
The delete procedure name |
private static java.lang.String |
INS_PROC_NAME
The insert procedure name |
| 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 | |
|---|---|
ExportSumConstraint(int id)
Constructor. |
|
| Method Summary | |
|---|---|
private java.lang.String |
getInsertString(ExportPath path)
Formats the INSERT string contained inside the sum procedure |
java.lang.String |
getVarTable(java.lang.String inTable)
Gets the target table of the first edge in the path that has as its domain, the table |
void |
setBaseTable()
Sets the base table in the superclass based on requirements for a sum constraint. |
void |
setConstraintStrings()
Sets all constraint strings for this constraint. |
private void |
setDeleteProcs()
Sets the delete procedure strings for this constraint, and returns it. |
private void |
setInsertProcs()
Sets the insert procedure strings for this constraint, and returns it. |
| 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 static final java.lang.String DEL_PROC_NAME
private static final java.lang.String INS_PROC_NAME
private java.util.HashMap<java.lang.String,java.lang.String> _varTable
| Constructor Detail |
|---|
public ExportSumConstraint(int id)
id - A unique identifier for this constraint.| Method Detail |
|---|
public void setBaseTable()
setBaseTable in class ExportConstraintpublic void setConstraintStrings()
setConstraintStrings in class ExportConstraintprivate void setDeleteProcs()
private void setInsertProcs()
private java.lang.String getInsertString(ExportPath path)
path - The path for which this procedure is being called
public java.lang.String getVarTable(java.lang.String inTable)
inTable - The table which is the domain of the path for which the trigger is being called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||