|
||||||||||
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.GraphicalM4Object
edu.udo.cs.miningmart.m4.core.ParameterObject
edu.udo.cs.miningmart.m4.core.Feature
edu.udo.cs.miningmart.m4.core.BaseAttribute
This class represents a BaseAttribute. It is a subclass of
Feature
.
Feature
,
M4Data
,
Serialized FormField Summary | |
static java.lang.String |
ATTRIB_BA_CON_BAID
The BaseAttribute ID of the BaseAttribute to Concept cross-table |
static java.lang.String |
ATTRIB_BA_CON_CONID
The Concept ID attribute of the BaseAttribute to Concept cross-table |
static java.lang.String |
ATTRIB_BA_CON_TUPLE_ID
The primary key attribute of the BaseAttribute to Concept cross-table |
static java.lang.String |
ATTRIB_BASEATTRIBUTE_CONCEPTUAL_DT
db level: the attribute for the base attribute's conceptual datatype number |
static java.lang.String |
ATTRIB_BASEATTRIBUTE_ID
db level: the attribute for the base attribute's IDs |
static java.lang.String |
ATTRIB_BASEATTRIBUTE_MCF_ID
db level: the attribute specifying the ID of the embedding MultiColumnFeature or NULL |
static java.lang.String |
ATTRIB_BASEATTRIBUTE_NAME
db level: the attribute for the base attribute's names |
static java.lang.String |
ATTRIB_BASEATTRIBUTE_RELEVANCE
db level: the attribute for the base attribute's relevance (unused) |
static java.lang.String |
ATTRIB_BASEATTRIBUTE_TYPE
db level: the attribute for the base attribute's type (db or mining) |
static java.lang.String |
M4_TABLE_BA_CON
The name of the BaseAttribute to Concept cross-table |
static java.lang.String |
M4_TABLE_NAME
The name of the M4 table representing base attributes |
static M4Info |
m4Info
Cache for getM4Info() |
Fields inherited from class edu.udo.cs.miningmart.m4.core.GraphicalM4Object |
graph2coord |
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.BaseAttribute |
TYPE_BASE, TYPE_DB, TYPE_MINING |
Fields inherited from interface edu.udo.cs.miningmart.m4.utils.M4Table |
NOT_NULL |
Constructor Summary | |
BaseAttribute(DB m4Db)
|
Method Summary | |
void |
addColumn(Column column)
Add a column to this BaseAttribute's columns. |
BaseAttribute |
copy()
Makes a copy of this BaseAttribute. |
Feature |
copy(Concept newConcept)
Create a copy of this BaseAttribute and connect it to the given Concept. |
Column |
createColumn(java.lang.String name)
Create a Column with the given name and add it to this BaseAttribute's columns. |
protected void |
deleteLocal()
Overwrites the superclass method to ensure that the cross table entries are deleted first |
Column |
getColumn(int index)
Get a specific column that belongs to this BaseAttribute. |
java.util.Collection |
getColumns()
|
long |
getConceptualDataType()
|
java.lang.String |
getConceptualDataTypeName()
|
Column |
getCurrentColumn()
This method replaces "getColumnForColumnSet". |
java.lang.String |
getDBAttribS()
Getter for the DB Attribute property |
java.util.Collection |
getDependentObjects()
This method is part of the XML-serialization and needs to be implemented by all M4Data sub-classes that need to be serialized. |
java.lang.String |
getIdAttributeName()
|
M4Info |
getM4Info()
|
java.lang.String |
getM4TableName()
|
MultiColumnFeature |
getMCFeature()
If this BaseAttribute belongs to a MultiColumnFeature, get it here. |
java.lang.String |
getRelevantS()
|
java.lang.String |
getType()
|
M4Info |
getXmlInfo()
|
boolean |
hasColumn(Column col)
|
boolean |
hasColumns()
|
boolean |
isDBAttrib()
|
boolean |
isDeselected()
|
boolean |
isRelationallyValid()
This method returns information about the relational validity of the object. |
boolean |
isRelevant()
|
void |
primitiveSetMCFeature(MultiColumnFeature mcf)
Primitive setter, do not use. |
void |
print()
Method to print data about this M4Object. |
protected void |
readFromDbLocal()
Reads this object's Concept from a cross-table
at loading time. |
protected void |
removeAllM4References()
This method needs to be implemented by all M4Data
objects. |
boolean |
removeColumn(Column column)
Remove a column from this BaseAttribute's columns. |
void |
removeLinkToColumns()
Removes the link between this feature and all of its columns. |
void |
setColumns(java.util.Collection theColumns)
Set all columns of this BaseAttribute. |
void |
setConceptualDataType(long type)
Set the conceptual data type. |
void |
setConceptualDataTypeName(java.lang.String dtname)
Set the name of the conceptual data type. |
void |
setDBAttrib(boolean a)
Setter for DBAttrib. |
void |
setDBAttribS(java.lang.String attrib)
Setter for DBAttrib. |
void |
setMCFeature(MultiColumnFeature mcf)
If this BaseAttribute belongs to a MultiColumnFeature, set it here. |
void |
setName(java.lang.String name)
Do not use spaces in BaseAttribute names, because these names are also used at the DB level for Column names. |
void |
setRelevant(boolean r)
Set the relevance of this BaseAttribute. |
void |
setRelevantS(java.lang.String r)
Set the relevance of this BaseAttribute. |
void |
setType(java.lang.String type)
The type of the BaseAttribute |
protected void |
storeLocal()
This method stores the pseudo foreign key reference to this objects's Concept , which is still realized by a cross-table
(BA_CONCEPT_T). |
Methods inherited from class edu.udo.cs.miningmart.m4.core.Feature |
correspondsTo, getConcept, getObjectsInNamespace, getParameterWhereThisIsOutputFeature, hasCoordinates, primitiveSetConcept, setConcept |
Methods inherited from class edu.udo.cs.miningmart.m4.core.ParameterObject |
addParameterReference, getParameterReferences, removeParameterReference |
Methods inherited from class edu.udo.cs.miningmart.m4.core.GraphicalM4Object |
deleteSoon, getCoordinates, getPoint, primitiveSetCoordinates, setCoordinatesDirty, setPoint |
Methods inherited from class edu.udo.cs.miningmart.m4.core.M4Data |
exportLocal, genericGetter, genericSetter, getDocumentation, getObjectsReferencingMe, getObjectsReferencingMe, getObjectTag, getValidName, getXmlIdTag, getXmlVersion, hasDeleteStatus, importLocal, isDirty, isWaitingForDelete, primitiveGetDocObject, primitiveSetDocObject, readFromDb, removeDocObject, removeFromDb, removeSetFromDb, setDirty, setDocumentation, setId, 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, getObjectTag, getXmlIdTag, getXmlVersion, importLocal |
Methods inherited from interface edu.udo.cs.miningmart.m4.Feature |
correspondsTo, getConcept, getParameterWhereThisIsOutputFeature, setConcept |
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, putM4ObjectToCache, replaceSpacesInName, setId |
Field Detail |
public static final java.lang.String M4_TABLE_NAME
public static final java.lang.String ATTRIB_BASEATTRIBUTE_ID
public static final java.lang.String ATTRIB_BASEATTRIBUTE_NAME
public static final java.lang.String ATTRIB_BASEATTRIBUTE_CONCEPTUAL_DT
public static final java.lang.String ATTRIB_BASEATTRIBUTE_RELEVANCE
public static final java.lang.String ATTRIB_BASEATTRIBUTE_TYPE
public static final java.lang.String ATTRIB_BASEATTRIBUTE_MCF_ID
public static final java.lang.String M4_TABLE_BA_CON
public static final java.lang.String ATTRIB_BA_CON_TUPLE_ID
public static final java.lang.String ATTRIB_BA_CON_CONID
public static final java.lang.String ATTRIB_BA_CON_BAID
public static M4Info m4Info
Constructor Detail |
public BaseAttribute(DB m4Db)
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.XmlInfo.getXmlInfo()
public void print()
M4Object
print
in interface M4Object
print
in class GraphicalM4Object
Parameter.print()
public void setName(java.lang.String name)
setName
in interface M4Object
setName
in class GraphicalM4Object
name
- the new name to be setM4Object.setName(String)
public BaseAttribute copy() throws M4Exception
copy
in interface BaseAttribute
M4Exception
public Feature copy(Concept newConcept) throws M4Exception
copy
in interface Feature
newConcept
- the concept to add the copy of this BaseAttribute to
M4Exception
public void addColumn(Column column) throws M4Exception
addColumn
in interface BaseAttribute
M4Exception
public Column createColumn(java.lang.String name) throws M4Exception
createColumn
in interface BaseAttribute
name
- name for the Column
M4Exception
public boolean hasColumn(Column col) throws M4Exception
hasColumn
in interface BaseAttribute
col
- a Column
true
if a column with the same ID is already linked to this
BaseAttribute
M4Exception
public boolean hasColumns() throws M4Exception
hasColumns
in interface BaseAttribute
true
if at least one column is linked to this
BaseAttribute
M4Exception
public boolean removeColumn(Column column) throws M4Exception
removeColumn
in interface BaseAttribute
true
if removing succeeded
M4Exception
public void removeLinkToColumns() throws M4Exception
Feature
removeLinkToColumns
in interface Feature
M4Exception
public void setConceptualDataType(long type)
setConceptualDataType
in interface BaseAttribute
type
- The new type.public long getConceptualDataType()
getConceptualDataType
in interface BaseAttribute
public void setConceptualDataTypeName(java.lang.String dtname) throws M4Exception
setConceptualDataTypeName
in interface BaseAttribute
dtname
- The new name of the conceptual data type.
M4Exception
public java.lang.String getConceptualDataTypeName() throws M4Exception
getConceptualDataTypeName
in interface BaseAttribute
M4Exception
public void setColumns(java.util.Collection theColumns) throws M4Exception
setColumns
in interface BaseAttribute
theColumns
- A Collection
of Column
objects
M4Exception
public java.util.Collection getColumns() throws M4Exception
getColumns
in interface BaseAttribute
M4Exception
public Column getColumn(int index) throws M4Exception
getColumn
in interface BaseAttribute
M4Exception
public Column getCurrentColumn() throws M4Exception
getCurrentColumn
in interface BaseAttribute
M4Exception
Concept
public void setMCFeature(MultiColumnFeature mcf) throws M4Exception
setMCFeature
in interface BaseAttribute
mcf
- The MultiColumnFeature this BaseAttribute belongs to.
M4Exception
MultiColumnFeature
public MultiColumnFeature getMCFeature()
getMCFeature
in interface BaseAttribute
null
otherwise.MultiColumnFeature
public boolean isRelevant()
isRelevant
in interface BaseAttribute
public java.lang.String getRelevantS()
getRelevantS
in interface BaseAttribute
String
representationpublic void setRelevant(boolean r)
setRelevant
in interface BaseAttribute
r
- The new boolean value of the relevance.public void setRelevantS(java.lang.String r)
setRelevantS
in interface BaseAttribute
r
- The value of the relevance in thedatabase String
representationpublic boolean isDBAttrib()
isDBAttrib
in interface BaseAttribute
public java.lang.String getDBAttribS()
getDBAttribS
in interface BaseAttribute
String
representationpublic java.lang.String getType()
getType
in interface BaseAttribute
public void setDBAttrib(boolean a)
setDBAttrib
in interface BaseAttribute
a
- The new boolean value.public void setDBAttribS(java.lang.String attrib)
setDBAttribS
in interface BaseAttribute
attrib
- The boolean value in its database String
representation.public void setType(java.lang.String type) throws M4Exception
BaseAttribute
setType
in interface BaseAttribute
M4Exception
TYPE_BASE
,
TYPE_DB
,
TYPE_MINING
public boolean isDeselected() throws M4CompilerError
isDeselected
in interface BaseAttribute
isDeselected
in class Feature
true
iff this BaseAttribute
has
been "deselected" by a FeatureSelection
operator
or has not been connected by the user.
M4CompilerError
public void primitiveSetMCFeature(MultiColumnFeature mcf)
mcf
- the MultiColumnFeature
to be setpublic boolean isRelationallyValid() throws M4Exception
isRelationallyValid
in interface Feature
M4Exception
protected void readFromDbLocal() throws M4Exception
Concept
from a cross-table
at loading time.
readFromDbLocal
in class M4Data
M4Exception
protected void storeLocal() throws M4Exception
Concept
, which is still realized by a cross-table
(BA_CONCEPT_T).
storeLocal
in class GraphicalM4Object
M4Exception
protected void deleteLocal() throws M4Exception
deleteLocal
in class GraphicalM4Object
M4Exception
protected void removeAllM4References() throws M4Exception
M4Data
M4Data
objects. It has to remove all references to other
M4Object
s.
removeAllM4References
in class ParameterObject
M4Exception
M4Data.removeAllM4References()
public java.util.Collection getDependentObjects() throws M4Exception
M4Data
M4Data
sub-classes that need to be serialized.
getDependentObjects
in interface XmlInfo
getDependentObjects
in class ParameterObject
M4Exception
M4Data.getDependentObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |