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:relation [2013/07/19 16:23] alex [readAttributesNamesInDescription] |
magik-demo:developer:class:core:relation [2017/07/06 15:24] (current) |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| </code> | </code> | ||
| - | ===== Class Constructor ===== | + | ===== Class Constructors ===== |
| ==== Relation ==== | ==== Relation ==== | ||
| <code java> | <code java> | ||
| Line 24: | Line 24: | ||
| java.lang.String description) | java.lang.String description) | ||
| </code> | </code> | ||
| - | Constructor for relation with well known arity. Attributes are load inside the function by calling readAttributesNamesInDescription\\ | + | Constructor for relation with well known arity. Attributes are load inside the function by calling ''[[#readattributesnamesindescription|readAttributesNamesInDescritpion]]''\\ |
| //Called by:// | //Called by:// | ||
| Line 58: | Line 58: | ||
| java.lang.String description) | java.lang.String description) | ||
| </code> | </code> | ||
| - | Constructor for relation without knowning arity. Attributes are load inside the function by calling readAttributesNamesInDescription\\ | + | Constructor for relation without knowning arity. Attributes are load inside the function by calling ''[[#readattributesnamesindescription|readAttributesNamesInDescritpion]]''\\ |
| //Called by:// | //Called by:// | ||
| Line 88: | Line 88: | ||
| </code> | </code> | ||
| Get attribute position in the relation | Get attribute position in the relation | ||
| + | |||
| **Parameters:** | **Parameters:** | ||
| * attributeName - attribute to search | * attributeName - attribute to search | ||
| Line 95: | Line 96: | ||
| ---- | ---- | ||
| + | |||
| + | ==== getters and setters methods ==== | ||
| + | |||
| + | <code java> | ||
| + | public java.util.ArrayList<java.lang.String> getAttributeNames() | ||
| + | public void setAttributeNames(java.util.ArrayList<java.lang.String> attributeNames) | ||
| + | |||
| + | public java.lang.String getName() | ||
| + | public void setName(java.lang.String name) | ||
| + | |||
| + | public int getArity() | ||
| + | public void setArity(int arity) | ||
| + | |||
| + | public int getPrimaryKey() | ||
| + | public void setPrimaryKey(int primaryKey) | ||
| + | |||
| + | public long getId() | ||
| + | public void setId(long id) | ||
| + | |||
| + | </code> | ||
| + | |||
| + | [[magik-demo:developer:class:core:relation|Back to Top]] | [[magik-demo:start|Back to Home Page]] | ||