2.9.0: 2008-11-26

net.sf.basedb.clients.migrate
Class ReporterProxy

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.ReporterData
          extended by net.sf.basedb.clients.migrate.ReporterProxy
All Implemented Interfaces:
BatchableData, ExtendableData, IdentifiableData, NameableData

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
           
 
Fields inherited from class net.sf.basedb.core.data.ReporterData
MAX_EXTERNAL_ID_LENGTH, MAX_LAST_SOURCE_LENGTH, MAX_SYMBOL_LENGTH
 
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
ReporterProxy(int id)
           
ReporterProxy(ReporterData reporter)
           
 
Method Summary
 int getId()
          Get the id of the item.
 
Methods inherited from class net.sf.basedb.core.data.ReporterData
getDescription, getExtended, getExternalId, getLastSource, getLastUpdate, getName, getSymbol, setDescription, setExtended, setExternalId, setName, setSymbol
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getVersion
 

Field Detail

id

private final int id
Constructor Detail

ReporterProxy

ReporterProxy(int id)

ReporterProxy

ReporterProxy(ReporterData reporter)
Method Detail

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

2.9.0: 2008-11-26