|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addSubRelationship(Relation relationship)
|
Relation |
copy(Concept fromConcept,
Concept toConcept)
|
Columnset |
createCrossLinkColumnset(java.lang.String name,
java.lang.String schema,
java.lang.String type)
Creates a ColumnSet that will be connected to this Relation. |
java.util.Collection |
getAllSubRelationships()
|
Columnset |
getCrossLinkColumnSet()
|
ForeignKey |
getFromKey()
Getter method. |
Columnset |
getResultOfJoin()
This method creates a Columnset that represents the inner join resulting from joining the FromConcept and the ToConcept. |
java.util.Collection |
getStepsWhereThisIsInputRelation()
Returns all Steps in the Case that use this Relation as an input. |
Relation |
getSubRelation(java.lang.String name)
|
java.util.Collection |
getSubRelations()
|
Relation |
getSuperRelation()
|
Concept |
getTheFromConcept()
Getter method. |
Concept |
getTheToConcept()
Getter method. |
ForeignKey |
getToKey()
Getter method. |
boolean |
isManyToManyRelation()
Returns true iff this Relation models an n:m relationship. |
boolean |
isOneToManyRelation()
Returns true iff this Relation models a 1:n relationship. |
boolean |
isRelationallyValid()
This method returns information about the relational validity of the object. |
void |
removeAllSubRelationships()
|
void |
removeCrossLinkColumnset()
Removes the ColumnSet for this Relation. |
void |
removeFromKey()
|
void |
removeSubRelationship(java.lang.String name)
|
void |
removeSuperRelation()
Remove the link to the superRelationship. |
void |
removeToKey()
|
void |
setCrossLinkColumnSet(Columnset cs)
Setter method. |
void |
setFromKey(ForeignKey newFromKey)
Setter method. |
void |
setM2mKeys(ForeignKey fromFK,
ForeignKey toFK)
Sets the key fields that define a many-to-many relationship on the relational level for this Relationship. |
void |
setSuperRelation(Relation superRelationship)
|
void |
setTheFromConcept(Concept c)
Setter method. |
void |
setTheToConcept(Concept c)
Setter method. |
void |
setToKey(ForeignKey newToKey)
Setter method. |
Methods inherited from interface edu.udo.cs.miningmart.m4.ParameterObject |
addParameterReference, getParameterReferences, removeParameterReference |
Methods inherited from interface edu.udo.cs.miningmart.m4.GraphicalM4Object |
getPoint, setPoint |
Methods inherited from interface edu.udo.cs.miningmart.m4.M4Data |
deleteSoon, getDocumentation, getValidName, isDirty, isWaitingForDelete, setDocumentation |
Methods inherited from interface edu.udo.cs.miningmart.m4.M4Object |
doPrint, doPrint, equals, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getCasePrintObject, getId, getM4Db, getM4ObjectFromCache, getName, getNextM4SequenceValue, isNew, load, print, putM4ObjectToCache, replaceSpacesInName, setId, setName |
Method Detail |
public void setTheToConcept(Concept c) throws M4Exception
c
- the new value
M4Exception
public Concept getTheToConcept() throws M4Exception
M4Exception
public void setTheFromConcept(Concept c) throws M4Exception
c
- the new value
M4Exception
public Concept getTheFromConcept() throws M4Exception
M4Exception
public Columnset getResultOfJoin() throws M4Exception
M4Exception
public java.util.Collection getStepsWhereThisIsInputRelation() throws M4Exception
M4Exception
public void setToKey(ForeignKey newToKey) throws M4Exception
newToKey
- the new toKey
M4Exception
public ForeignKey getToKey() throws M4Exception
M4Exception
public void removeToKey() throws M4Exception
M4Exception
public void setFromKey(ForeignKey newFromKey) throws M4Exception
newFromKey
- the new FromKey
M4Exception
public ForeignKey getFromKey() throws M4Exception
M4Exception
public void removeFromKey() throws M4Exception
M4Exception
public Columnset getCrossLinkColumnSet() throws M4Exception
M4Exception
public void setCrossLinkColumnSet(Columnset cs) throws M4Exception
cs
- The new cross columnset for the n:m relation.
M4Exception
public boolean isOneToManyRelation()
public boolean isManyToManyRelation()
public boolean isRelationallyValid()
public java.util.Collection getSubRelations()
public Relation getSuperRelation()
public void setSuperRelation(Relation superRelationship) throws M4Exception
M4Exception
public void removeSuperRelation() throws M4Exception
M4Exception
public void addSubRelationship(Relation relationship) throws M4Exception
M4Exception
public Relation getSubRelation(java.lang.String name)
public java.util.Collection getAllSubRelationships()
public void removeSubRelationship(java.lang.String name) throws M4Exception
M4Exception
public void removeAllSubRelationships() throws M4Exception
M4Exception
public Columnset createCrossLinkColumnset(java.lang.String name, java.lang.String schema, java.lang.String type) throws M4Exception
name
- The name for the new ColumnSet.
M4Exception
- when an error occurs during creation of the object.public void removeCrossLinkColumnset() throws M4Exception
M4Exception
public void setM2mKeys(ForeignKey fromFK, ForeignKey toFK) throws M4Exception
The foreignKey of the ColumnSet of the fromConcept is set as the fromKey. The foreignKey of the ColumnSet of the toConcept is set as the toKey.
fromFK
- The foreignKey corresponding to the FromConcept.toFK
- The foreignKey corresponding to the ToConcept.
StorageException
- If key doesn't exist yet, this exception may be
propagated from ForeignKey.store().
M4Exception
public Relation copy(Concept fromConcept, Concept toConcept) throws M4Exception
M4Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |