|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.miningmart.m4.core.ConceptualDatatypes
public class ConceptualDatatypes
This class represents the conceptual datatypes stored in the M4 model
and takes care of mapping between the ID and name representations.
One instance of this class (e.g. static in class
BaseAttribute is sufficient, adding/changing the predefined
set of conceptual datatypes at runtime is not supported.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIB_DATATYPE_ID
Database attribute name storing the datatype IDs |
static java.lang.String |
ATTRIB_DATATYPE_NAME
Database attribute name storing the datatype names |
static java.lang.String |
M4_TABLE_NAME
Name of the M4 table mapping IDs to conceptual datatype names |
| Fields inherited from interface edu.udo.cs.miningmart.m4.ConceptualDatatypes |
|---|
CDT_BINARY, CDT_CATEGORIAL, CDT_CONSTANT, CDT_KEYATTRIB, CDT_NOMINAL, CDT_NUMERIC, CDT_ORDINAL, CDT_SCALAR, CDT_SPATIAL, CDT_TIME, CDT_TIMEGROUP, CDTYPES, datatypeCompatibilities |
| Constructor Summary | |
|---|---|
ConceptualDatatypes(DB db)
|
|
| Method Summary | |
|---|---|
static boolean |
checkDatatypeCompatibility(java.lang.String datatype1,
java.lang.String datatype2)
For two given conceptual datatypes, it is checked whether the first is more general than the second. |
long |
getIdForName(java.lang.String name)
|
java.lang.String |
getNameForId(long id)
|
static java.lang.String |
guessConceptualTypeGivenRelationalType(java.lang.String relationalTypeName)
Static method to guess the conceptual datatype given a relational datatype. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String M4_TABLE_NAME
public static final java.lang.String ATTRIB_DATATYPE_ID
public static final java.lang.String ATTRIB_DATATYPE_NAME
| Constructor Detail |
|---|
public ConceptualDatatypes(DB db)
throws M4Exception,
DbConnectionClosed
M4Exception
DbConnectionClosed| Method Detail |
|---|
public static boolean checkDatatypeCompatibility(java.lang.String datatype1,
java.lang.String datatype2)
datatype1 - the first given datatypedatatype2 - the second given datatype
public static java.lang.String guessConceptualTypeGivenRelationalType(java.lang.String relationalTypeName)
throws M4Exception
relationalTypeName - the M4 relational data type name
M4Exceptionpublic long getIdForName(java.lang.String name)
getIdForName in interface ConceptualDatatypesname - the name of a conceptual datatype (case senitive)
0 if not foundpublic java.lang.String getNameForId(long id)
getNameForId in interface ConceptualDatatypesid - the ID of a conceptual datatype
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||