|
||||||||||
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.Column
This class represents an M4 column.
Field Summary | |
static java.lang.String |
ATTRIB_COL_BA_BAID
DB level: BaseAttribute ID of the Column to BaseAttribute cross-table |
static java.lang.String |
ATTRIB_COL_BA_COLID
DB level: Column ID attribute of the Column to BaseAttribute cross-table |
static java.lang.String |
ATTRIB_COL_BA_TUPLE_ID
DB level: The primary key attribute of the Column to BaseAttribute cross-table |
static java.lang.String |
ATTRIB_COLUMN_DATATYPE
DB level: name of the column's (relational) datatype ID attribute |
static java.lang.String |
ATTRIB_COLUMN_ID
DB level: name of the column ID attribute |
static java.lang.String |
ATTRIB_COLUMN_NAME
DB level: name of the column name attribute |
static java.lang.String |
ATTRIB_COLUMN_SQL
DB level: name of the column's SQL definition attribute |
static java.lang.String |
ATTRIB_COLUMNSET_ID
DB level: name of the column's columnset id reference attribute |
static java.lang.String |
M4_TABLE_COL_BA
Name of the Column to BaseAttribute cross-table |
static java.lang.String |
M4_TABLE_NAME
Name of the M4 table representing Column s |
static M4Info |
m4Info
Cache for getM4Info() |
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 | |
Column(DB m4Db)
|
Method Summary | |
void |
clearStatistics()
If data changes in the database, e.g. a DB Concept is edited, then this method allows to delete the deprecated statistics objects without running a garbage collection. |
Column |
copyColToCS(Columnset cs)
Makes a copy of this Column that belongs to the given Columnset . |
protected void |
deleteLocal()
This method is called after the generic delete and can be overridden to delete related objects stored in cross-tables etc. |
void |
deleteSoon()
Overwrites the superclass method because the keys referring to this column must be deleted, too. |
java.lang.String |
getAverageValue()
|
java.util.Collection |
getBasicColStats()
Active getter for all basic statistics tuples pointing to this Columm. |
long |
getColumnDataType()
|
java.lang.String |
getColumnDataTypeName()
|
Columnset |
getColumnset()
|
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.util.Collection |
getDistributionStatistics()
Active getter for all distribution statistics tuples pointing to this Columm. |
java.util.Collection |
getForeignKeyMembers()
Active getter for the KeyMember s referencing this object
as their foreign key. |
java.lang.String |
getIdAttributeName()
|
M4Info |
getM4Info()
|
java.lang.String |
getM4TableName()
|
java.lang.String |
getMaxValue()
|
java.lang.String |
getMedianValue()
|
java.lang.String |
getMinValue()
|
java.lang.String |
getModalValue()
|
int |
getNumberOfMissingValues()
|
int |
getNumberOfUniqueValues()
|
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. |
java.util.Collection |
getPrimaryKeyMembers()
Active getter for the KeyMember s referencing this object
as their primary key. |
java.lang.String |
getSQLDefinition()
|
java.lang.String |
getSQLPlusLocation()
|
java.lang.String |
getStandardDeviation()
|
BaseAttribute |
getTheBaseAttribute()
Get this column's BaseAtttribute. |
java.lang.String |
getVariance()
|
M4Info |
getXmlInfo()
|
void |
primitiveSetBaseAttribute(BaseAttribute ba)
Primitive setter, do not use. |
void |
primitiveSetColumnset(Columnset cs)
Primitive setter, do not use. |
void |
print()
Print the information about this column. |
protected void |
readFromDbLocal()
Loads this object's BaseAttribute
from a cross-table at loading time. |
java.lang.String |
readOrComputeAverage()
Reads, or computes the average value of this column and returns it as a string. |
java.lang.String |
readOrComputeMaximum()
Reads, or computes the maximum value of this column and returns it as a string. |
java.lang.String |
readOrComputeMinimum()
Reads, or computes the minimum value of this column and returns it as a string. |
int |
readOrComputeNumMissingValues()
Reads, or computes the number of missing values for this column and returns it as an int. |
java.lang.String |
readOrComputeStdDev()
Reads, or computes the standard deviation of this column and returns the result as a string. |
int |
readOrComputeUniqueValues()
Reads, or computes the number of unique values for this column and returns it as an int. |
protected void |
removeAllM4References()
This method needs to be implemented by all M4Data
objects. |
void |
removeBaseAttribute()
Disassociates the BaseAttrbute from this colum. |
protected void |
setAverageValue(java.lang.String avg)
Sets the average of values of this column. |
void |
setBaseAttribute(BaseAttribute ba)
Set this column's BaseAttribute. |
void |
setColumnDataType(long type)
Set the column data type for this column. |
void |
setColumnDataTypeName(java.lang.String dtname)
Set the name of this column's column data type. |
void |
setColumnset(Columnset cs)
Sets the ColumnSet for this column. |
void |
setDistributionStatistics(java.util.Collection dStats)
Sets the distribution statistics collection at once to the specified collection. |
protected void |
setMaxValue(java.lang.String max)
Sets the maximal value. |
protected void |
setMedianValue(java.lang.String med)
Sets the median value. |
protected void |
setMinValue(java.lang.String min)
Sets the minimal value. |
protected void |
setModalValue(java.lang.String mod)
Sets the modal value. |
void |
setName(java.lang.String name)
Do not use spaces in Column names, because these names are also used at the DB level. |
protected void |
setNumberOfMissingValues(int nmv)
Sets the number of missing values. |
protected void |
setNumberOfUniqueValues(int nuv)
Sets the number of unique values. |
void |
setSQLDefinition(java.lang.String sqlDefinition)
Set the sql definition of this column. |
protected void |
setStandardDeviation(java.lang.String stddev)
Sets the standard deviation of values of this column. |
protected void |
setVariance(java.lang.String var)
Sets the variance of values of this column. |
void |
storeLocal()
This method stores the pseudo foreign key reference to this objects's BaseAttribute , which is still realized by a cross-table
(BA_COLUMN_T). |
void |
updateStatistics()
Calculates statistics for the specified column and stores it in the M4 tables COLSTATIST1/2. |
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.M4Data |
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
Column
s
public static final java.lang.String ATTRIB_COLUMN_ID
public static final java.lang.String ATTRIB_COLUMN_NAME
public static final java.lang.String ATTRIB_COLUMNSET_ID
public static final java.lang.String ATTRIB_COLUMN_DATATYPE
public static final java.lang.String ATTRIB_COLUMN_SQL
public static final java.lang.String M4_TABLE_COL_BA
public static final java.lang.String ATTRIB_COL_BA_TUPLE_ID
public static final java.lang.String ATTRIB_COL_BA_COLID
public static final java.lang.String ATTRIB_COL_BA_BAID
public static M4Info m4Info
Constructor Detail |
public Column(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()
print
in interface M4Object
print
in class M4Object
public void setName(java.lang.String name)
setName
in interface M4Object
setName
in class M4Data
name
- the new name to be setM4Object.setName(String)
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 Column copyColToCS(Columnset cs) throws M4Exception
Column
that belongs to the given Columnset
.
copyColToCS
in interface Column
cs
- A Columnset
M4Exception
public void setBaseAttribute(BaseAttribute ba) throws M4Exception
setBaseAttribute
in interface Column
ba
- The new BaseAttribute.
M4Exception
public BaseAttribute getTheBaseAttribute() throws M4Exception
getTheBaseAttribute
in interface Column
M4Exception
public void setSQLDefinition(java.lang.String sqlDefinition)
setSQLDefinition
in interface Column
sqlDefinition
- the new definitionpublic java.lang.String getSQLDefinition()
getSQLDefinition
in interface Column
public java.lang.String getSQLPlusLocation()
getSQLPlusLocation
in interface Column
schema.table.sql
)public void setColumnDataType(long type)
setColumnDataType
in interface Column
type
- the new column data typepublic long getColumnDataType()
getColumnDataType
in interface Column
public void setColumnDataTypeName(java.lang.String dtname) throws M4Exception
setColumnDataTypeName
in interface Column
dtname
- the new name
M4Exception
public java.lang.String getColumnDataTypeName() throws DbConnectionClosed, M4Exception
getColumnDataTypeName
in interface Column
DbConnectionClosed
M4Exception
public java.util.Collection getPrimaryKeyMembers() throws M4Exception
KeyMember
s referencing this object
as their primary key.
getPrimaryKeyMembers
in interface Column
Collection
of KeyMember
objects
M4Exception
public java.util.Collection getForeignKeyMembers() throws M4Exception
KeyMember
s referencing this object
as their foreign key.
getForeignKeyMembers
in interface Column
Collection
of KeyMember
objects
M4Exception
public java.util.Collection getBasicColStats() throws M4Exception
getBasicColStats
in interface Column
Collection
of ColumnStatistics1
objects
M4Exception
public java.util.Collection getDistributionStatistics() throws M4Exception
getDistributionStatistics
in interface Column
Collection
of ColumnStatistics2
objects
M4Exception
public void setDistributionStatistics(java.util.Collection dStats) throws M4Exception
setDistributionStatistics
in interface Column
dStats
- a Collection
of ColumnStatistics2
objects.
M4Exception
public int getNumberOfUniqueValues() throws M4Exception
getNumberOfUniqueValues
in interface Column
M4Exception
public int getNumberOfMissingValues() throws M4Exception
getNumberOfMissingValues
in interface Column
M4Exception
public java.lang.String getMinValue() throws M4Exception
getMinValue
in interface Column
M4Exception
public java.lang.String getMaxValue() throws M4Exception
getMaxValue
in interface Column
M4Exception
public java.lang.String getMedianValue() throws M4Exception
getMedianValue
in interface Column
M4Exception
public java.lang.String getModalValue() throws M4Exception
getModalValue
in interface Column
M4Exception
public java.lang.String getAverageValue() throws M4Exception
getAverageValue
in interface Column
M4Exception
public java.lang.String getStandardDeviation() throws M4Exception
getStandardDeviation
in interface Column
M4Exception
public java.lang.String getVariance() throws M4Exception
getVariance
in interface Column
M4Exception
protected void setNumberOfUniqueValues(int nuv) throws M4Exception
nuv
- the new number
M4Exception
protected void setNumberOfMissingValues(int nmv) throws M4Exception
nmv
- the new number
M4Exception
protected void setMinValue(java.lang.String min) throws M4Exception
min
- the new minimum
M4Exception
protected void setMaxValue(java.lang.String max) throws M4Exception
max
- the new maximum
M4Exception
protected void setMedianValue(java.lang.String med) throws M4Exception
med
- the new median
M4Exception
protected void setModalValue(java.lang.String mod) throws M4Exception
mod
- the new modal
M4Exception
protected void setAverageValue(java.lang.String avg) throws M4Exception
avg
- the new average
M4Exception
protected void setStandardDeviation(java.lang.String stddev) throws M4Exception
stddev
- the new standard deviation
M4Exception
protected void setVariance(java.lang.String var) throws M4Exception
var
- the new variance
M4Exception
public Columnset getColumnset()
getColumnset
in interface Column
public void setColumnset(Columnset cs) throws M4Exception
setColumnset
in interface Column
cs
- The new ColumnSet
M4Exception
public java.lang.String readOrComputeMinimum() throws M4Exception
readOrComputeMinimum
in interface Column
M4Exception
public java.lang.String readOrComputeAverage() throws M4Exception
readOrComputeAverage
in interface Column
M4Exception
public java.lang.String readOrComputeStdDev() throws M4Exception
readOrComputeStdDev
in interface Column
M4Exception
public java.lang.String readOrComputeMaximum() throws M4Exception
readOrComputeMaximum
in interface Column
M4Exception
public int readOrComputeNumMissingValues() throws M4Exception
readOrComputeNumMissingValues
in interface Column
M4Exception
public int readOrComputeUniqueValues() throws M4Exception
readOrComputeUniqueValues
in interface Column
M4Exception
public void clearStatistics() throws M4Exception
clearStatistics
in interface Column
M4Exception
public void updateStatistics() throws M4Exception
updateStatistics
in interface Column
M4Exception
public void primitiveSetBaseAttribute(BaseAttribute ba)
ba
- the BaseAttribute
to be setpublic void primitiveSetColumnset(Columnset cs)
cs
- the Columnset
to be setprotected void readFromDbLocal() throws M4Exception
this
object's BaseAttribute
from a cross-table at loading time.
readFromDbLocal
in class M4Data
M4Exception
public void storeLocal() throws M4Exception
BaseAttribute
, which is still realized by a cross-table
(BA_COLUMN_T).
storeLocal
in interface Column
storeLocal
in class M4Data
M4Exception
protected void deleteLocal() throws M4Exception
M4Data
deleteLocal
in class M4Data
M4Exception
public void deleteSoon() throws M4Exception
deleteSoon
in interface M4Data
deleteSoon
in class M4Data
M4Exception
protected 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 java.util.Collection getDependentObjects() throws M4Exception
M4Data
M4Data
sub-classes that need to be serialized.
getDependentObjects
in interface XmlInfo
getDependentObjects
in class M4Data
Collection
of all M4Data
Java objects
holding a foreign key reference to this
object.
This method must never return null
.
M4Exception
M4Data.getDependentObjects()
public void removeBaseAttribute() throws M4Exception
Column
removeBaseAttribute
in interface Column
M4Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |