net.sf.basedb.clients.migrate
Class UnmappedPlateTransfer
java.lang.Object
net.sf.basedb.clients.migrate.Manager
net.sf.basedb.clients.migrate.Transfer
net.sf.basedb.clients.migrate.SharedItemTransfer
net.sf.basedb.clients.migrate.CommonItemTransfer
net.sf.basedb.clients.migrate.UnmappedPlateTransfer
public class UnmappedPlateTransfer
- extends CommonItemTransfer
This class provides methods for transferring Unmapped plate data from base 1
to BASE 2.
- Version:
- 2.0
- Author:
- Gregory, Martin
- 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, run, runUnBatched, saveItem, setup, startProgress, writeRestorePointData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
plateTypeT
PlateTypeTransfer plateTypeT
reporterT
ReporterTransfer reporterT
destroyedPlates
private Map<Integer,Boolean> destroyedPlates
log
private static final Logger log
- The logger
UnmappedPlateTransfer
UnmappedPlateTransfer(UserTransfer userT,
GroupTransfer groupT,
PlateTypeTransfer plateTypeT,
ReporterTransfer reporterT)
- Constructs a new UnmappedPlateTransfer.
- Parameters:
userT
- A finished UserTransfer
groupT
- A finished GroupTransfer
plateTypeT
- A finished PlateTypeTransfer
reporterT
- A finished ReporterTransfer
start
public void start()
- Description copied from class:
Transfer
- Starts the actual transfer.
- Specified by:
start
in class Transfer
createItem
protected void createItem(ResultSet rs)
throws BaseException,
SQLException
- Creates a
Plate
from the current position in
ResultSet
.
- Overrides:
createItem
in class Transfer
- Parameters:
rs
- ResultSet
containing the data for this item.
- Throws:
BaseException
SQLException
- If current ResultSet position is invalid or number
of columns in the select statement is to low.
getDestroyedPlates
public Map<Integer,Boolean> getDestroyedPlates()
- Returns the destroyed plates index.
- Returns:
boolean[]
each index corresponds to the base 2 id.
connectReportersToWells
private void connectReportersToWells(DbControl dc,
Plate plate,
int base1PlateId)
- Connects reporters to wells for a given plate.
- Parameters:
dc
- DbControl
plate
- Wells from this plate will be connectedbase1PlateId
- The corresponding base 1 id for this plate