|
||||||||||
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
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 |
Constructor Summary | |
ConceptualDatatypes(DB db)
|
Method Summary | |
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
Method Detail |
public static java.lang.String guessConceptualTypeGivenRelationalType(java.lang.String relationalTypeName) throws M4Exception
relationalTypeName
- the M4 relational data type name
M4Exception
public long getIdForName(java.lang.String name)
name
- the name of a conceptual datatype (case senitive)
0
if not foundpublic java.lang.String getNameForId(long id)
id
- the ID of a conceptual datatype
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |