|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.util.Export.Constraints.ExportConstraint
public class ExportConstraint
General class to hold a constraint generated directly from the XML file. Constraints are never formed directly from this class, thus the type of constraint is determined by the creating subclass. Should not be used for any other purpose than database exportation, as it contains no graphical information.
Field Summary | |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
_a_i_tables
HashMap of all procedures that are called AFTER INSERT, indexed by the table that it applies to |
protected java.util.HashMap<java.lang.String,java.lang.String> |
_b_d_tables
HashMap of all procedures that are calledBEFORE DELETE, indexed by the table that it applies to |
protected java.util.HashMap<java.lang.String,java.lang.String> |
_b_i_tables
HashMap of all procedures that are called BEFORE INSERT, indexed by the table that it applies to |
protected java.lang.String |
_baseTable
The base table of the constraint |
protected java.lang.String |
_db_name
The database name |
protected int |
_id
A unique identifier of the constraint |
protected java.util.ArrayList<ExportPath> |
_paths
The paths involved in this constraint |
protected java.util.ArrayList<java.lang.String> |
_procedureStrings
The procedures created by the constraint |
Constructor Summary | |
---|---|
ExportConstraint()
Constructs a new contraint for exportation. |
Method Summary | |
---|---|
void |
addPath(ExportPath p)
Add a path to this constraint. |
java.lang.String |
getBaseTable()
The table that serves as a base for the constraint. |
java.util.ArrayList<java.lang.String> |
getConstraintStrings()
Gets the constraint string for this constraint. |
java.util.ArrayList<ExportPath> |
getPaths()
Get all paths participating in this constraint |
java.util.HashMap<java.lang.String,java.lang.String> |
getTimeNames(java.lang.String time)
Gets the hash map containing all procedures to be called at |
void |
set_db_name(java.lang.String db_name)
Sets the database name |
void |
setBaseTable()
Sets the base table for the constraint. |
void |
setConstraintStrings()
Sets the constraint string for this constraint. |
void |
setTargetTable()
Sets the target table(s) for the constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<ExportPath> _paths
protected java.util.ArrayList<java.lang.String> _procedureStrings
protected java.lang.String _baseTable
protected int _id
protected java.util.HashMap<java.lang.String,java.lang.String> _b_i_tables
protected java.util.HashMap<java.lang.String,java.lang.String> _a_i_tables
protected java.util.HashMap<java.lang.String,java.lang.String> _b_d_tables
protected java.lang.String _db_name
Constructor Detail |
---|
public ExportConstraint()
Method Detail |
---|
public void addPath(ExportPath p)
p
- The path that participates in the constraintpublic java.util.ArrayList<ExportPath> getPaths()
public void setBaseTable()
public void setTargetTable()
public java.lang.String getBaseTable()
public void setConstraintStrings()
public java.util.ArrayList<java.lang.String> getConstraintStrings()
public java.util.HashMap<java.lang.String,java.lang.String> getTimeNames(java.lang.String time)
time
- The time for which the constraints should be called.
public void set_db_name(java.lang.String db_name)
db_name
- The database name to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |