2.10.1: 2009-03-24

net.sf.basedb.clients.migrate
Class ArraySlideTransfer

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.ArraySlideTransfer

public class ArraySlideTransfer
extends CommonItemTransfer

Base 1 tables
UserGroup
Unused columns
addedDate, hybridization
Notes

Version:
2.0
Author:
Gregory
Last modified
$Date

Field Summary
private  ArrayBatchTransfer arrayBatchT
           
private static Logger log
          Logger for this class
 
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
ArraySlideTransfer(UserTransfer userT, GroupTransfer groupT, ArrayBatchTransfer arrayBatchT)
           
 
Method Summary
protected  ArraySlide createItem(DbControl dc, ResultSet rs)
          Creates a ArraySlide from the current position in ResultSet.
 ArraySlide getArraySlideById(DbControl dc, int slideId)
          Returns an ArraySlide from the given base 1 slide 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, 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

arrayBatchT

private ArrayBatchTransfer arrayBatchT

log

private static final Logger log
Logger for this class

Constructor Detail

ArraySlideTransfer

ArraySlideTransfer(UserTransfer userT,
                   GroupTransfer groupT,
                   ArrayBatchTransfer arrayBatchT)
Parameters:
userT - A finished UserTransfer
groupT - A finished GroupTransfer
arrayBatchT - A finished ArrayBatchTransfer
Method Detail

start

public void start()
Description copied from class: Transfer
Starts the actual transfer.

Specified by:
start in class Transfer

createItem

protected ArraySlide createItem(DbControl dc,
                                ResultSet rs)
                         throws BaseException,
                                SQLException
Creates a ArraySlide from the current position in ResultSet.

Overrides:
createItem in class Transfer
Parameters:
dc - DbControl used to transfer this item
rs - ResultSet containing the data for this item.
Returns:
ArraySlide
Throws:
BaseException
SQLException - If current ResultSet position is invalid or number of columns in the select statement is to low.

getArraySlideById

public ArraySlide getArraySlideById(DbControl dc,
                                    int slideId)
Returns an ArraySlide from the given base 1 slide id.

Parameters:
dc - DbControl used to transfer this item.
slideId - Base 1 slide id
Returns:
ArraySlide or null if the ArraySlide does not exsist.

2.10.1: 2009-03-24