net.sf.basedb.clients.migrate
Class ReporterProxy
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ReporterData
net.sf.basedb.clients.migrate.ReporterProxy
- All Implemented Interfaces:
- BatchableData, ExtendableData, IdentifiableData, NameableData, RegisteredData
public class ReporterProxy
- extends ReporterData
This is a proxys for the ReporterData class, which only contains the
ID. This class is needed to minimize the memory usage of the migration,
since we really don't need to keep all extended properties of the reporter
once the reporters has been migrated.
- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $
Field Summary |
private int |
id
|
Method Summary |
int |
getId()
Get the id of the item. |
Methods inherited from class net.sf.basedb.core.data.ReporterData |
getDescription, getEntryDate, getExtended, getExternalId, getLastSource, getLastUpdate, getName, getSymbol, setDescription, setExtended, setExternalId, setName, setSymbol |
id
private final int id
ReporterProxy
ReporterProxy(int id)
ReporterProxy
ReporterProxy(ReporterData reporter)
getId
public int getId()
- Description copied from class:
BasicData
- Get the id of the item. The id is automatically generated by the database
the first time the item is saved to the database. A new item has the value 0.
- Specified by:
getId
in interface IdentifiableData
- Overrides:
getId
in class BasicData
- Returns:
- The id of the item or 0