net.sf.basedb.clients.migrate
Class PlateTypeTransfer
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.PlateTypeTransfer
public class PlateTypeTransfer
- extends CommonItemTransfer
This class provides methods to transfer PlateType data from base 1 to BASE 2.
- Version:
- 2.0
- Author:
- Gregory, Martin
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
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 |
geometry
private HashMap<Integer,PlateGeometry> geometry
- Number of wells to BASE 2 id map.
log
private static final Logger log
- Logger for this class
PlateTypeTransfer
PlateTypeTransfer(UserTransfer userT,
GroupTransfer groupT)
- Constructs an PlateTypeTransfer
- Parameters:
userT
- A finished UserTransfer
groupT
- A finished GroupTransfer
start
public void start()
- Description copied from class:
Transfer
- Starts the actual transfer.
- Specified by:
start
in class Transfer
createItem
PlateType createItem(DbControl b2c,
ResultSet rs)
throws BaseException,
SQLException
- Creates an
PlateType
from the current position in
ResultSet
.
- Overrides:
createItem
in class Transfer
- Parameters:
b2c
- DbControl
used to transfer this itemrs
- ResultSet
containing the data for this item.
- Returns:
PlateType
- Throws:
BaseException
- If geometry doesn't exsist or something goes wrong
when getting a new PlateType.
SQLException
- If current ResultSet position is invalid or number
of columns in the select statement is to low.
getPlateTypeById
public PlateType getPlateTypeById(DbControl dbc,
int base1PlateTypeId)
- Returns a PlateType by the given base1PlateTypeId.
- Parameters:
dbc
- DbControl
used to get the PlateTypebase1PlateTypeId
-
- Returns:
- PlateType or null if PlateType doesn't exist.