de.lmu.ifi.dbs.elki.data
Class AbstractDatabaseObject
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.data.AbstractDatabaseObject
- All Implemented Interfaces:
- DatabaseObject, Loggable
- Direct Known Subclasses:
- ExternalObject, MultiInstanceObject, MultiRepresentedObject, NumberVector
public abstract class AbstractDatabaseObject
- extends AbstractLoggable
- implements DatabaseObject
Abstract super class for all database objects. Provides the required access
methods for the unique object id.
- Author:
- Elke Achtert
Field Summary |
private Integer |
id
The unique id of this object. |
Constructor Summary |
protected |
AbstractDatabaseObject()
Initializes the logger and sets the debug status to false. |
Method Summary |
Integer |
getID()
Returns the unique id of this database object. |
void |
setID(Integer id)
Sets the id of this database object. |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
private Integer id
- The unique id of this object.
AbstractDatabaseObject
protected AbstractDatabaseObject()
- Initializes the logger and sets the debug status to false.
getID
public final Integer getID()
- Description copied from interface:
DatabaseObject
- Returns the unique id of this database object.
- Specified by:
getID
in interface DatabaseObject
- Returns:
- the unique id of this database object
- See Also:
DatabaseObject.getID()
setID
public void setID(Integer id)
- Description copied from interface:
DatabaseObject
- Sets the id of this database object. The id must be unique within one
database.
- Specified by:
setID
in interface DatabaseObject
- Parameters:
id
- the id to be set- See Also:
DatabaseObject.setID(Integer)