|
|||||||||
| 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.Coordinates
public class Coordinates
This class corresponds to one row in the table HCI_COORD_T.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIB_CONTEXT_ID
DB level: The attribute storing the coord-entry's context object IDs. |
static java.lang.String |
ATTRIB_CONTEXT_NAME
DB level: The attribute storing the coord-entry's context object names. |
static java.lang.String |
ATTRIB_CONTEXT_TYPE
DB level: The attribute storing the context object types. |
static java.lang.String |
ATTRIB_OBJECT_ID
DB level: The attribute storing the coord-entry's object IDs. |
static java.lang.String |
ATTRIB_OBJECT_NAME
DB level: The attribute storing the coord-entry's object names. |
static java.lang.String |
ATTRIB_OBJECT_TYPE
DB level: The attribute storing the object types. |
static java.lang.String |
ATTRIB_X_COORD
DB level: The attribute storing the coord-entry's X coordinates. |
static java.lang.String |
ATTRIB_Y_COORD
DB level: The attribute storing the coord-entry's Y coordinates. |
static java.lang.String |
M4_TABLE_NAME
The M4 table name storing graphical information. |
static M4Info |
m4Info
Cache for getM4Info() |
static java.lang.String |
TAG_MAIN
|
| 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 | |
|---|---|
Coordinates(DB db)
|
|
| Method Summary | |
|---|---|
void |
delete()
Helper method of delete() and store(). |
void |
doPrint(java.lang.Exception ex)
Method to be used by all subclasses to print exception messages to the screen or log file. |
void |
doPrint(java.util.logging.Level verbosity,
java.lang.String message)
Method to be used by all subclasses to print messages to the screen or log file. |
java.util.Collection |
exportLocal(java.io.Writer out,
java.util.Collection dependent)
This method is called during exporting objects. |
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()
|
java.awt.Point |
getLocation()
Returns the Location. |
M4Info |
getM4Info()
|
java.lang.String |
getM4TableName()
|
GraphicalM4Object |
getMyM4Object()
Returns the Object that this Coordinates belongs to. |
java.lang.String |
getName()
Get the name of this M4 object. |
java.util.Collection |
getObjectsInNamespace(java.lang.Class namespace)
This method returns the objects of the specified type that form a namespace in the scope of this M4Data object. |
java.lang.String |
getObjectTag()
|
java.lang.String |
getType()
|
int |
getX()
Get the X coordinate. |
java.lang.String |
getXmlIdTag()
|
M4Info |
getXmlInfo()
|
java.lang.String |
getXmlVersion()
For compatibility reasons the version of the M4-XML is available here. |
int |
getY()
Get the Y coordinate. |
void |
importLocal(java.lang.String tag,
java.lang.String embedded)
Method for importing local fields (recognized by unknown tags) from XML. |
void |
primitiveSetMyM4Object(GraphicalM4Object m4Object)
Do not use. |
void |
print()
Print this M4 object's parameters. |
void |
readFromDb()
Unfortunately we must overwrite the superclass method because we want to be compatible with old coordinates data! |
protected void |
removeAllM4References()
This method needs to be implemented by all M4Data
objects. |
void |
setLocation(java.awt.Point theLocation)
Sets the Location. |
void |
setMyM4Object(GraphicalM4Object theM4Object)
Set the object that this Coordinates belongs to. |
void |
setName(java.lang.String name)
Overrides the super-method just to set the dirty-flag |
void |
setType(java.lang.String type)
|
void |
setX(int x_coord)
Set the x coordinate. |
void |
setY(int y_coord)
Set the y coordinate. |
void |
store()
This method writes back the information that is present to the database table, regardless of whether the local dirty-Flag is set or not. |
| Methods inherited from class edu.udo.cs.miningmart.m4.core.M4Data |
|---|
deleteLocal, deleteSoon, genericGetter, genericSetter, getDocumentation, getObjectsReferencingMe, getObjectsReferencingMe, getUniqueName, getValidName, getValidName, hasDeleteStatus, isDirty, isWaitingForDelete, primitiveGetDocObject, primitiveSetDocObject, readFromDbLocal, removeDocObject, removeFromDb, removeSetFromDb, setDirty, setDocumentation, setId, storeLocal, updateObjectsFromTable |
| Methods inherited from class edu.udo.cs.miningmart.m4.core.M4Object |
|---|
compareTo, equals, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getCasePrintObject, getId, getM4Db, getM4ObjectFromCache, getNextM4SequenceValue, isNew, load, putM4ObjectToCache, replaceSpacesInName, setNotNew |
| 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 |
|---|
genericGetter, genericSetter |
| Field Detail |
|---|
public static java.lang.String TAG_MAIN
public static final java.lang.String M4_TABLE_NAME
public static final java.lang.String ATTRIB_OBJECT_ID
public static final java.lang.String ATTRIB_OBJECT_NAME
public static final java.lang.String ATTRIB_OBJECT_TYPE
public static final java.lang.String ATTRIB_CONTEXT_ID
public static final java.lang.String ATTRIB_CONTEXT_NAME
public static final java.lang.String ATTRIB_CONTEXT_TYPE
public static final java.lang.String ATTRIB_X_COORD
public static final java.lang.String ATTRIB_Y_COORD
public static M4Info m4Info
| Constructor Detail |
|---|
public Coordinates(DB db)
| Method Detail |
|---|
public java.lang.String getM4TableName()
getM4TableName in interface M4TableM4Table.getM4TableName()public java.util.Collection getDependentObjects()
M4DataM4Data sub-classes that need to be serialized.
getDependentObjects in interface XmlInfogetDependentObjects in class M4DataCollection of all M4Data Java objects
holding a foreign key reference to this object.
This method must never return null.public java.lang.String getXmlVersion()
XmlInfo
getXmlVersion in interface XmlInfogetXmlVersion in class M4DataXmlInfo.getXmlVersion()public java.lang.String getXmlIdTag()
getXmlIdTag in interface XmlInfogetXmlIdTag in class M4Datathis M4 objectXmlInfo.getXmlIdTag()public java.lang.String getObjectTag()
getObjectTag in interface XmlInfogetObjectTag in class M4Datathis M4 objectXmlInfo.getXmlIdTag()public java.lang.String getIdAttributeName()
getIdAttributeName in interface M4TableM4Table.getIdAttributeName()public M4Info getM4Info()
getM4Info in interface M4TableM4Data.getM4Info()public M4Info getXmlInfo()
getXmlInfo in interface XmlInfoM4Info object with the information
of all XML fields of this object.XmlInfo.getXmlInfo()public GraphicalM4Object getMyM4Object()
public java.lang.String getName()
M4Object
getName in interface M4ObjectgetName in class M4Objectpublic void setName(java.lang.String name)
M4Data
setName in interface M4ObjectsetName in class M4Dataname - The new name.M4Object.setName(String)public void setType(java.lang.String type)
public java.lang.String getType()
throws M4Exception
M4Exceptionpublic java.util.Collection getObjectsInNamespace(java.lang.Class namespace)
M4Datanull. If a namespace could
exist but doesn't, an empty Collection is returned.
getObjectsInNamespace in class M4Datanamespace - the type of objects that form the namespace
typeOfObjects,
or null.
public void setMyM4Object(GraphicalM4Object theM4Object)
throws M4Exception
theM4Object - the object
M4Exceptionpublic void primitiveSetMyM4Object(GraphicalM4Object m4Object)
m4Object -
public java.awt.Point getLocation()
throws M4Exception
M4Exceptionpublic void setLocation(java.awt.Point theLocation)
theLocation - The Location to setpublic void setX(int x_coord)
x_coord - the x coordinatepublic void setY(int y_coord)
y_coord - the y coordinatepublic int getX()
public int getY()
public java.util.Collection exportLocal(java.io.Writer out,
java.util.Collection dependent)
M4DataString
in the collection, starting with openning and ending with the closing tag.
If the object to be stored needs to be serialized itself (as a separate object),
then the method export of that method needs to be used, which
needs to have the specified Writer and Collection
as parameters. The parameters should never be used in any other way!
exportLocal in interface XmlInfoexportLocal in class M4Dataout - a Writer to be passed to export
methods of embedded objectsdependent - a Collection to be passed to
export methods of embedded objects
Collection of XML-Strings specifying
the additional attributes of this object
public void importLocal(java.lang.String tag,
java.lang.String embedded)
M4Data
importLocal in interface XmlInfoimportLocal in class M4Datatag - the tag indicating the local field to be importedembedded - the String between the opening and closing tag
public void doPrint(java.util.logging.Level verbosity,
java.lang.String message)
M4Object
doPrint in interface M4ObjectdoPrint in interface XmlInfodoPrint in class M4Objectverbosity - A verbosity level. Use one of the public
static variables of the class Print.message - The string with the message.edu.udo.cs.miningmart.m4.core.utils.Printpublic void doPrint(java.lang.Exception ex)
M4Object
doPrint in interface M4ObjectdoPrint in interface XmlInfodoPrint in class M4Objectex - An exception object. Its message string will be printed.
public void delete()
throws M4Exception
M4Exception
public void store()
throws M4Exception
M4Exception
protected void removeAllM4References()
throws M4Exception
M4DataM4Data
objects. It has to remove all references to other
M4Objects.
removeAllM4References in class M4DataM4Exceptionpublic void print()
M4Object
print in interface M4Objectprint in class M4ObjectM4Object.print()
public void readFromDb()
throws M4Exception
readFromDb in class M4DataM4ExceptionM4Object.readFromDb()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||