|
||||||||||
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.Constraint
Objects of this class represent M4 constraints.
These constraints are tuples stored in the table OP_CONSTR_T
.
Field Summary | |
static java.lang.String |
ATTRIB_CONSTR_ID
db level: name of the constraint's id attribute |
static java.lang.String |
ATTRIB_CONSTR_OBJ1
db level: name of the attribute for first argument |
static java.lang.String |
ATTRIB_CONSTR_OBJ2
db level: name of the attribute for second argument |
static java.lang.String |
ATTRIB_CONSTR_TYPE
db level: name of the attribute specifying the constraint 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.Constraint |
TYPE_COMPATIBLE, TYPE_CONTAINED_IN, TYPE_COORDINATED_ARRAYS, TYPE_DATATYPE, TYPE_GREATER_OR_EQUAL, TYPE_GREATER_THAN, TYPE_IS_LOOPED, TYPE_LESSER_OR_EQUAL, TYPE_LESSER_THAN, TYPE_ONE_OF, TYPE_SAME_DATATYPE, TYPE_SAME_FEATURES, TYPE_SUM_MUST_BE_ONE |
Fields inherited from interface edu.udo.cs.miningmart.m4.utils.M4Table |
NOT_NULL |
Constructor Summary | |
Constraint(DB db)
|
Method Summary | |
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_CONSTR_ID
public static final java.lang.String ATTRIB_OPERATOR_ID
public static final java.lang.String ATTRIB_CONSTR_TYPE
public static final java.lang.String ATTRIB_CONSTR_OBJ1
public static final java.lang.String ATTRIB_CONSTR_OBJ2
Constructor Detail |
public Constraint(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 Constraint
public java.lang.String getObj2()
getObj2
in interface Constraint
public Operator getTheOperator()
getTheOperator
in interface Constraint
Operator
public java.lang.String getType()
getType
in interface Constraint
public void setObj1(java.lang.String myObj1)
setObj1
in interface Constraint
myObj1
- The myObj1 to setpublic void setObj2(java.lang.String myObj2)
setObj2
in interface Constraint
myObj2
- The myObj2 to setpublic void setTheOperator(Operator operator) throws M4Exception
setTheOperator
in interface Constraint
operator
- The Operator
to set
M4Exception
public void primitiveSetOperator(Operator operator)
public void setType(java.lang.String myType)
setType
in interface Constraint
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |