|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.m4.core.M4Object
edu.udo.cs.miningmart.m4.core.M4Data
edu.udo.cs.miningmart.m4.core.Condition
Objects of this class represent M4 conditions.
These conditions are tuples stored in the table OP_COND_T
.
Field Summary | |
static java.lang.String |
ATTRIB_COND_ID
db level: name of the condition's id attribute |
static java.lang.String |
ATTRIB_COND_OBJ1
db level: name of the attribute for first argument |
static java.lang.String |
ATTRIB_COND_OBJ2
db level: name of the attribute for second argument |
static java.lang.String |
ATTRIB_COND_TYPE
db level: name of the attribute specifying the condition type |
static java.lang.String |
ATTRIB_OPERATOR_ID
db level: name of the operator id attribute |
static java.lang.String |
M4_TABLE_NAME
The name of the corresponding M4 table. |
Fields inherited from class edu.udo.cs.miningmart.m4.core.M4Data |
myDocumentation |
Fields inherited from class edu.udo.cs.miningmart.m4.core.M4Object |
myId, myName |
Fields inherited from interface edu.udo.cs.miningmart.m4.utils.XmlInfo |
M4_XML_VERSION, TAG_COLLECTION, TAG_DOUBLE, TAG_INTEGER, TAG_LONG, TAG_M4_ID, TAG_SHORT, TAG_STRING, TAG_XML_ID |
Fields inherited from interface edu.udo.cs.miningmart.m4.utils.M4Table |
NOT_NULL |
Constructor Summary | |
Condition(DB db)
|
Method Summary | |
void |
check(ExecutableOperator op)
Checks the Condition for the specified ExceutableOperator .
|
static java.util.Collection |
getColumnsForBa(BaseAttribute ba)
|
static java.util.Collection |
getColumnsForConcept(Concept con)
|
static java.util.Collection |
getColumnsForFeature(Feature feature)
|
static java.util.Collection |
getColumnsForParameter(ParameterObject[] parArray)
|
java.lang.String |
getIdAttributeName()
|
M4Info |
getM4Info()
|
java.lang.String |
getM4TableName()
|
java.lang.String |
getObj1()
Gets the myObj1. |
java.lang.String |
getObj2()
Gets the myObj2. |
protected java.util.Collection |
getObjectsInNamespace(java.lang.Class typeOfObjects)
This method returns the objects of the specified type that form a namespace in the scope of this M4Data object. |
Operator |
getTheOperator()
Gets the Operator |
java.lang.String |
getType()
Gets the myType. |
M4Info |
getXmlInfo()
|
void |
primitiveSetOperator(Operator operator)
Primitive setter method. |
void |
print()
Method to print data about this M4Object. |
protected void |
removeAllM4References()
This method needs to be implemented by all M4Data
objects. |
void |
setObj1(java.lang.String myObj1)
Sets the myObj1. |
void |
setObj2(java.lang.String myObj2)
Sets the myObj2. |
void |
setTheOperator(Operator operator)
Sets the Operator. |
void |
setType(java.lang.String myType)
Sets the myType. |
Methods inherited from class edu.udo.cs.miningmart.m4.core.M4Data |
deleteLocal, deleteSoon, exportLocal, genericGetter, genericSetter, getDependentObjects, getDocumentation, getObjectsReferencingMe, getObjectsReferencingMe, getObjectTag, getValidName, getXmlIdTag, getXmlVersion, hasDeleteStatus, importLocal, isDirty, isWaitingForDelete, primitiveGetDocObject, primitiveSetDocObject, readFromDb, readFromDbLocal, removeDocObject, removeFromDb, removeSetFromDb, setDirty, setDocumentation, setId, setName, storeLocal, updateObjectsFromTable |
Methods inherited from class edu.udo.cs.miningmart.m4.core.M4Object |
compareTo, doPrint, doPrint, equals, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getCasePrintObject, getId, getM4Db, getM4ObjectFromCache, getName, getNextM4SequenceValue, isNew, load, putM4ObjectToCache, replaceSpacesInName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.udo.cs.miningmart.m4.utils.XmlInfo |
doPrint, doPrint, exportLocal, genericGetter, genericSetter, getDependentObjects, getObjectTag, getXmlIdTag, getXmlVersion, importLocal |
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, putM4ObjectToCache, replaceSpacesInName, setId, setName |
Field Detail |
public static final java.lang.String M4_TABLE_NAME
public static final java.lang.String ATTRIB_COND_ID
public static final java.lang.String ATTRIB_OPERATOR_ID
public static final java.lang.String ATTRIB_COND_TYPE
public static final java.lang.String ATTRIB_COND_OBJ1
public static final java.lang.String ATTRIB_COND_OBJ2
Constructor Detail |
public Condition(DB db)
edu.udo.cs.miningmart.m4.core.M4Data#Constructor
Method Detail |
public java.lang.String getM4TableName()
getM4TableName
in interface M4Table
M4Table.getM4TableName()
public java.lang.String getIdAttributeName()
getIdAttributeName
in interface M4Table
M4Table.getIdAttributeName()
public M4Info getM4Info()
getM4Info
in interface M4Table
M4Table.getM4Info()
public M4Info getXmlInfo()
getXmlInfo
in interface XmlInfo
M4Info
object with the information
of all XML fields of this
object.M4Table.getM4Info()
public void print()
M4Object
print
in interface M4Object
print
in class M4Object
M4Object.print()
protected java.util.Collection getObjectsInNamespace(java.lang.Class typeOfObjects) throws M4Exception
M4Data
null
. If a namespace could
exist but doesn't, an empty Collection is returned.
getObjectsInNamespace
in class M4Data
typeOfObjects
- the type of objects that form the namespace
typeOfObjects
,
or null
.
M4Exception
M4Data.getObjectsInNamespace(Class)
public java.lang.String getObj1()
getObj1
in interface Condition
public java.lang.String getObj2()
getObj2
in interface Condition
public Operator getTheOperator()
getTheOperator
in interface Condition
Operator
public java.lang.String getType()
getType
in interface Condition
public void setObj1(java.lang.String myObj1)
setObj1
in interface Condition
myObj1
- The myObj1 to setpublic void setObj2(java.lang.String myObj2)
setObj2
in interface Condition
myObj2
- The myObj2 to setpublic void setTheOperator(Operator operator) throws M4Exception
setTheOperator
in interface Condition
operator
- The Operator
to set
M4Exception
public void primitiveSetOperator(Operator operator)
public void setType(java.lang.String myType)
setType
in interface Condition
myType
- The myType to setprotected void removeAllM4References() throws M4Exception
M4Data
M4Data
objects. It has to remove all references to other
M4Object
s.
removeAllM4References
in class M4Data
M4Exception
M4Data.removeAllM4References()
public void check(ExecutableOperator op) throws UserError, M4CompilerError
Condition
Condition
for the specified ExceutableOperator
.
Currently this method directly throws a UserError
exception to be propagated
to the GUI if the Condition
is violated.
check
in interface Condition
op
-
UserError
M4CompilerError
public static java.util.Collection getColumnsForParameter(ParameterObject[] parArray) throws M4Exception
M4Exception
public static java.util.Collection getColumnsForConcept(Concept con) throws M4Exception
M4Exception
public static java.util.Collection getColumnsForFeature(Feature feature) throws M4Exception
M4Exception
public static java.util.Collection getColumnsForBa(BaseAttribute ba) throws M4Exception
M4Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |