net.sf.basedb.clients.migrate
Class SampleTissueTransfer
java.lang.Object
net.sf.basedb.clients.migrate.Manager
net.sf.basedb.clients.migrate.Transfer
net.sf.basedb.clients.migrate.SampleTissueTransfer
public class SampleTissueTransfer
- extends Transfer
This class provides methods for transferring SampleTissue data from base 1 to
BASE 2. SampleTissue's are not available in BASE 2 as objects. The
information is stored as part of the description for MeasuredBioMaterials.
- Version:
- 2.0
- Author:
- Gregory Vincic, Martin Svensson
- Last modified
- $Date: 2008-09-05 17:15:54 +0200 (Fri, 05 Sep 2008) $
Fields inherited from class net.sf.basedb.clients.migrate.Transfer |
BASE2, FROM, itemList, LIMIT, LOCAL_MYSQL_TRANSFER, mapIds, progress, properties, QUICK_TRANSFER, selectOffset, sessionControl, TO |
Methods inherited from class net.sf.basedb.clients.migrate.Transfer |
cleanUpMemory, commit, createItem, dependencyFailure, done, getBase2Id, getBatchSize, getCount, getDependencyStatus, getIdMap, getInt, getProperty, initIdMap, isDone, mapId, newDbControl, readRestorePointData, run, runUnBatched, saveItem, setup, startProgress, writeRestorePointData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final Logger log
- Logger for this class
tissue
private HashMap<Integer,String> tissue
SampleTissueTransfer
SampleTissueTransfer()
start
public void start()
- Description copied from class:
Transfer
- Starts the actual transfer.
- Specified by:
start
in class Transfer
run
protected void run(PreparedStatement ps,
int from,
int size)
- Recursive run over a SQL query defined by a prepared statement and LIMIT
values from and size. If this method is called directly from a child
transfer, remember to call
Transfer.startProgress(int, String)
before you call
this method
- Overrides:
run
in class Transfer
- Parameters:
ps
- PreparedStatement
which includes a "LIMIT ?,?"
at the end.from
- int
indicating start position of the
ResultSet.size
- int
indicating number of rows to include.- See Also:
Manager.prepareStatementFromFile(String)
createItem
BasicItem createItem(DbControl b2c,
ResultSet rs)
throws BaseException,
SQLException
- Description copied from class:
Transfer
- Transfers using
Transfer.run(PreparedStatement)
or
Transfer.run(PreparedStatement, int, int)
should override this method.
- Overrides:
createItem
in class Transfer
- Parameters:
b2c
- DbControl used to during creation.rs
- ResultSet from which we create an item.
- Throws:
BaseException
SQLException
getTissue
protected String getTissue(int tissueId)