|
2.14.1: 2009-11-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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.MappedPlateTransfer
public class MappedPlateTransfer
Nested Class Summary | |
---|---|
private class |
MappedPlateTransfer.Parents
|
Field Summary | |
---|---|
private Map<Integer,Boolean> |
destroyedPlates
Indicates which plates should be destroyed. |
private static Logger |
log
Logger for this class |
private Map<Integer,MappedPlateTransfer.Parents> |
plateMappings
|
private PlateTypeTransfer |
plateTypeT
|
private UnmappedPlateTransfer |
unmappedPlateT
|
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 | |
---|---|
MappedPlateTransfer(UserTransfer userT,
GroupTransfer groupT,
PlateTypeTransfer plateTypeT,
ReporterTransfer reporterT,
UnmappedPlateTransfer unmappedPlateT)
Constructs a new MappedPlateTransfer. |
Method Summary | |
---|---|
(package private) void |
createItem(ResultSet rs)
Transfers using Transfer.runUnBatched(PreparedStatement,int,int) must
override this method. |
private void |
createPlateMappings()
This method saves parents for each plate in an array for easy access later in createItem(ResultSet) . |
void |
destroyPlates()
After all plates have been transferred we destroy those that have the destroyed flag set. |
PlateMapping |
findPlateMapping(DbControl dc,
int sourcePlates,
int sourceRows,
int sourceColumns,
int destinationPlates,
int destinationRows,
int destinationColumns)
|
Integer |
getBase2Id(int base1PlateId)
Get the Base 2 ID when you know the Base 1 ID. |
(package private) Plate |
getPlateById(DbControl dc,
int base1PlateId)
Returns a Plate from the given base 1 plate id. |
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, 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 |
---|
private Map<Integer,Boolean> destroyedPlates
private UnmappedPlateTransfer unmappedPlateT
private Map<Integer,MappedPlateTransfer.Parents> plateMappings
private PlateTypeTransfer plateTypeT
private static final Logger log
Constructor Detail |
---|
MappedPlateTransfer(UserTransfer userT, GroupTransfer groupT, PlateTypeTransfer plateTypeT, ReporterTransfer reporterT, UnmappedPlateTransfer unmappedPlateT)
userT
- A finished UserTransfer
groupT
- A finished GroupTransfer
plateTypeT
- A finished PlateTypeTransfer
reporterT
- A finished ReporterTransfer
unmappedPlateT
- A finished UnmappedPlateTransfer
Method Detail |
---|
public void start()
Transfer
start
in class Transfer
private void createPlateMappings()
createItem(ResultSet)
.
void createItem(ResultSet rs) throws BaseException, SQLException
Transfer
Transfer.runUnBatched(PreparedStatement,int,int)
must
override this method. For each item this method is responsible to create
it's own DbControl and save the item to the database.
createItem
in class Transfer
rs
- ResultSet containing data for the new plate
BaseException
SQLException
- If current ResultSet position is invalid or number
of columns in the select statement is to low.public PlateMapping findPlateMapping(DbControl dc, int sourcePlates, int sourceRows, int sourceColumns, int destinationPlates, int destinationRows, int destinationColumns)
public void destroyPlates()
Plate getPlateById(DbControl dc, int base1PlateId) throws BaseException
dc
- DbControl
used to get the plate frombase1PlateId
-
BaseException
- if a plate with id base1PlateId doesn't exist.public Integer getBase2Id(int base1PlateId)
Transfer
getBase2Id
in class Transfer
base1PlateId
- The Base 1 ID
|
2.14.1: 2009-11-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |