This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
magik-demo:developer:class:core:foreignkey [2013/07/22 10:30] alex [printHTML] |
magik-demo:developer:class:core:foreignkey [2017/07/06 15:24] (current) |
||
---|---|---|---|
Line 18: | Line 18: | ||
</code> | </code> | ||
- | ===== Class Constructor ===== | + | ===== Class Constructors ===== |
==== ForeignKey ==== | ==== ForeignKey ==== | ||
Line 50: | Line 50: | ||
* it.unibz.inf.magik.test.TCQCReasonerTCSuggestions | * it.unibz.inf.magik.test.TCQCReasonerTCSuggestions | ||
* it.unibz.inf.magik.test.TestQueryClass | * it.unibz.inf.magik.test.TestQueryClass | ||
+ | |||
+ | **Parameters:** | ||
+ | * sourceRelation - source relation | ||
+ | * targetRelation - target relation | ||
+ | * sourceAttributes - source attributes (position) | ||
===== Class Methods ===== | ===== Class Methods ===== | ||
Line 58: | Line 63: | ||
</code> | </code> | ||
- | This method is used for create a compact view of a foreign key | + | This method is used for create a compact view of a foreign key (''table[field] -> table2[field]'') |
- | *Returns:* | + | **Returns:** |
* foreign key adapted to the compact view | * foreign key adapted to the compact view | ||
+ | |||
+ | |||
---- | ---- | ||
==== getters and setters methods ==== | ==== getters and setters methods ==== | ||
+ | <code java> | ||
+ | public Relation getSourceRelation() | ||
+ | public void setSourceRelation(Relation sourceRelation) | ||
+ | public Relation getTargetRelation() | ||
+ | public void setTargetRelation(Relation targetRelation) | ||
+ | |||
+ | public java.util.ArrayList<Integer> getSourceAttributes() | ||
+ | public void setSourceAttributes(java.util.ArrayList<Integer> sourceAttributes) | ||
+ | public long getId() | ||
+ | public void setId(long id) | ||
+ | |||
+ | public boolean isVirtual() | ||
+ | public void setVirtual(boolean virtual) | ||
+ | |||
+ | public boolean isEnforced() | ||
+ | public void setEnforced(boolean enforced) | ||
+ | |||
+ | public Integer getTargetKey() | ||
+ | </code> | ||
+ | [[magik-demo:developer:class:core:foreignkey|Back to Top]] | [[magik-demo:start|Back to Home Page]] |