2.8.1: 2008-09-10

net.sf.basedb.clients.migrate
Class UnmappedPlateTransfer

java.lang.Object
  extended by net.sf.basedb.clients.migrate.Manager
      extended by net.sf.basedb.clients.migrate.Transfer
          extended by net.sf.basedb.clients.migrate.SharedItemTransfer
              extended by net.sf.basedb.clients.migrate.CommonItemTransfer
                  extended by 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) $

Field Summary
private  Map<Integer,Boolean> destroyedPlates
           
private static Logger log
          The logger
(package private)  PlateTypeTransfer plateTypeT
           
(package private)  ReporterTransfer reporterT
           
 
Fields inherited from class net.sf.basedb.clients.migrate.CommonItemTransfer
DESCRIPTION, NAME, REMOVED
 
Fields inherited from class net.sf.basedb.clients.migrate.SharedItemTransfer
GID, GROUP_ACCESS, groupT, ID, OWNER, userT, WORLD_ACCESS
 
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
 
Constructor Summary
UnmappedPlateTransfer(UserTransfer userT, GroupTransfer groupT, PlateTypeTransfer plateTypeT, ReporterTransfer reporterT)
          Constructs a new UnmappedPlateTransfer.
 
Method Summary
private  void connectReportersToWells(DbControl dc, Plate plate, int base1PlateId)
          Connects reporters to wells for a given plate.
protected  void createItem(ResultSet rs)
          Creates a Plate from the current position in ResultSet.
 Map<Integer,Boolean> getDestroyedPlates()
          Returns the destroyed plates index.
 void start()
          Starts the actual transfer.
 
Methods inherited from class net.sf.basedb.clients.migrate.CommonItemTransfer
setCommonItemData
 
Methods inherited from class net.sf.basedb.clients.migrate.SharedItemTransfer
chmod, chown, getOwner, setSharedItemData
 
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 net.sf.basedb.clients.migrate.Manager
getPreparedStatements, prepareStatementFromFile, print, printDate, setPreparedStatements, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plateTypeT

PlateTypeTransfer plateTypeT

reporterT

ReporterTransfer reporterT

destroyedPlates

private Map<Integer,Boolean> destroyedPlates

log

private static final Logger log
The logger

Constructor Detail

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
Method Detail

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 connected
base1PlateId - The corresponding base 1 id for this plate

2.8.1: 2008-09-10