net.sf.basedb.clients.migrate
Class ArrayBlockTransfer
java.lang.Object
net.sf.basedb.clients.migrate.Manager
net.sf.basedb.clients.migrate.Transfer
net.sf.basedb.clients.migrate.ArrayBlockTransfer
public class ArrayBlockTransfer
- extends Transfer
- Base 1 tables
- ArrayBlock
- Unused columns
- featureDiameter
- Notes
-
- ArrayType is named ArrayDesign in 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 |
Method Summary |
private void |
addArrayDesignBlock(DbControl dc,
ArrayDesign arrayDesign,
int base1ArrayDesignId,
PreparedStatement ps,
int from,
int size,
FeatureBatcher featureBatcher)
Adds an ArrayDesignBlock to a given ArrayDesign |
private void |
addFeatures(DbControl dbc,
ArrayDesignBlock arrayDesignBlock,
PreparedStatement ps,
int from,
int size,
FeatureBatcher featureBatcher)
This recursive method adds features to an ArrayDesignBlock. |
void |
start()
Starts the actual transfer. |
Methods inherited from class net.sf.basedb.clients.migrate.Transfer |
cleanUpMemory, commit, createItem, 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 |
log
private static final Logger log
- Logger for this class
arrayTypeT
private ArrayTypeTransfer arrayTypeT
mappedPlateT
private MappedPlateTransfer mappedPlateT
reporterT
private ReporterTransfer reporterT
ArrayBlockTransfer
ArrayBlockTransfer(ArrayTypeTransfer arrayTypeT,
MappedPlateTransfer mappedPlateT,
ReporterTransfer reporterT)
- Parameters:
arrayTypeT
- A finished ArrayTypeTransfer
start
public void start()
- Description copied from class:
Transfer
- Starts the actual transfer.
- Specified by:
start
in class Transfer
addArrayDesignBlock
private void addArrayDesignBlock(DbControl dc,
ArrayDesign arrayDesign,
int base1ArrayDesignId,
PreparedStatement ps,
int from,
int size,
FeatureBatcher featureBatcher)
- Adds an ArrayDesignBlock to a given ArrayDesign
- Parameters:
dc
- DbControl
used to create a new ArrayDesignBlockarrayDesign
- ArrayDesign
base1ArrayDesignId
- Base 1 ArrayDesign Id
addFeatures
private void addFeatures(DbControl dbc,
ArrayDesignBlock arrayDesignBlock,
PreparedStatement ps,
int from,
int size,
FeatureBatcher featureBatcher)
- This recursive method adds features to an ArrayDesignBlock.
- Parameters:
dbc
- DbControl
used to transfer this itemarrayDesignBlock
- ArrayDesignBlock
from which to
create FeatureDataps
- PreparedStatement used to fetch features from Base 1from
- Position in the result set to start reading from. Normally
this is 0 when you call it.size
- Number of rows to read from specified positionfeatureBatcher
- FeatureBatcher used for saving this set of
FeatureData