|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Relation
| Method Summary | |
|---|---|
void |
addSubRelationship(Relation relationship)
|
void |
changeAllKeys(java.util.Collection fromConceptAttribs,
java.util.Collection toConceptAttribs,
java.util.Collection crossToFromKeyNames,
java.util.Collection crossToToKeyNames)
Adapt the keys of this relation. |
void |
changeCrossTable(java.lang.String newCrossTableName)
Change the cross table of this relation. |
void |
changeFromAndToKeys(java.util.Collection fromConceptAttribs,
java.util.Collection toConceptAttribs)
Adapt the keys of this relation. |
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, setNotNew |
| Method Detail |
|---|
void setTheToConcept(Concept c)
throws M4Exception
c - the new value
M4Exception
Concept getTheToConcept()
throws M4Exception
M4Exception
void setTheFromConcept(Concept c)
throws M4Exception
c - the new value
M4Exception
Concept getTheFromConcept()
throws M4Exception
M4Exception
Columnset getResultOfJoin()
throws M4Exception
M4Exception
java.util.Collection getStepsWhereThisIsInputRelation()
throws M4Exception
M4Exception
void setToKey(ForeignKey newToKey)
throws M4Exception
newToKey - the new toKey
M4Exception
ForeignKey getToKey()
throws M4Exception
M4Exception
void removeToKey()
throws M4Exception
M4Exception
void setFromKey(ForeignKey newFromKey)
throws M4Exception
newFromKey - the new FromKey
M4Exception
ForeignKey getFromKey()
throws M4Exception
M4Exception
void removeFromKey()
throws M4Exception
M4Exception
Columnset getCrossLinkColumnSet()
throws M4Exception
M4Exception
void setCrossLinkColumnSet(Columnset cs)
throws M4Exception
cs - The new cross columnset for the n:m relation.
M4Exception
void changeCrossTable(java.lang.String newCrossTableName)
throws M4Exception
newCrossTableName -
M4Exception
void changeAllKeys(java.util.Collection fromConceptAttribs,
java.util.Collection toConceptAttribs,
java.util.Collection crossToFromKeyNames,
java.util.Collection crossToToKeyNames)
throws M4Exception
fromConceptAttribs - toConceptAttribs - crossToFromKeyNames - crossToToKeyNames -
M4Exception
void changeFromAndToKeys(java.util.Collection fromConceptAttribs,
java.util.Collection toConceptAttribs)
throws M4Exception
fromConceptAttribs - toConceptAttribs -
M4Exceptionboolean isOneToManyRelation()
boolean isManyToManyRelation()
boolean isRelationallyValid()
java.util.Collection getSubRelations()
Relation getSuperRelation()
void setSuperRelation(Relation superRelationship)
throws M4Exception
M4Exception
void removeSuperRelation()
throws M4Exception
M4Exception
void addSubRelationship(Relation relationship)
throws M4Exception
M4ExceptionRelation getSubRelation(java.lang.String name)
java.util.Collection getAllSubRelationships()
void removeSubRelationship(java.lang.String name)
throws M4Exception
M4Exception
void removeAllSubRelationships()
throws M4Exception
M4Exception
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.
void removeCrossLinkColumnset()
throws M4Exception
M4Exception
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
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 | ||||||||