2.10.0: 2009-02-24

net.sf.basedb.clients.migrate
Class ArrayTypeTransfer

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

public class ArrayTypeTransfer
extends CommonItemTransfer

Base 1 tables
ArrayType
Unused columns
addedDate, platform, protocol, printed, printMapName, featureLock, featureCount, blankFeatures
Notes

Version:
2.0
Author:
Gregory
Last modified
$Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  Platform generic
           
private static Logger log
          Logger for this class
private  UploadFileTransfer uploadFT
           
 
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
ArrayTypeTransfer(UserTransfer userT, GroupTransfer groupT, ProtocolTransfer protocolT, UploadFileTransfer uploadFT)
          Constructs a new ArrayDesignTransfer
 
Method Summary
protected  void createItem(ResultSet rs)
          Creates an ArrayDesign from the current position in ResultSet.
 ArrayDesign getArrayDesignById(DbControl dbc, int base1ArrayDesignId)
          Returns a ArrayDesign by the given base 1 array design(type) 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

log

private static final Logger log
Logger for this class


generic

private Platform generic

uploadFT

private UploadFileTransfer uploadFT
Constructor Detail

ArrayTypeTransfer

ArrayTypeTransfer(UserTransfer userT,
                  GroupTransfer groupT,
                  ProtocolTransfer protocolT,
                  UploadFileTransfer uploadFT)
Constructs a new ArrayDesignTransfer

Parameters:
userT - A finished UserTransfer
groupT - A finished GroupTransfer
protocolT - A finished ProtocolTransfer
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 an ArrayDesign 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.

getArrayDesignById

public ArrayDesign getArrayDesignById(DbControl dbc,
                                      int base1ArrayDesignId)
Returns a ArrayDesign by the given base 1 array design(type) id.

Parameters:
dbc - DbControl used to get the ArrayDesign.
base1ArrayDesignId -
Returns:
ArrayDesign or null if the given scan id does not exsist.

2.10.0: 2009-02-24