net.sf.basedb.clients.migrate
Class SoftwareTransfer
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.SoftwareTransfer
public class SoftwareTransfer
- extends CommonItemTransfer
This class provides methods to transfer Software data from base 1 to BASE 2.
- Version:
- 2.0
- Author:
- Gregory
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
Field Summary |
private static Logger |
log
|
private int |
softwareTypeId
All software from BASE 1 are of type FEATURE_EXTRACTION |
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 |
softwareTypeId
private int softwareTypeId
- All software from BASE 1 are of type FEATURE_EXTRACTION
log
private static final Logger log
SoftwareTransfer
SoftwareTransfer(UserTransfer userT,
GroupTransfer groupT)
- Parameters:
userT
- UserTransfer
groupT
- GroupTransfer
start
public void start()
- Description copied from class:
Transfer
- Starts the actual transfer.
- Specified by:
start
in class Transfer
createItem
Software createItem(DbControl b2c,
ResultSet rs)
throws BaseException,
SQLException
- Returns a Software from the current row in a given ResultSet.
- Overrides:
createItem
in class Transfer
- Parameters:
b2c
- DbControl
rs
- ResultSet
- Returns:
- Software
- Throws:
BaseException
SQLException
getSoftwareById
public Software getSoftwareById(DbControl dbc,
int base1SoftwareId)
- Returns a Software by the given base 1 software id.
- Parameters:
dbc
- DbControl
used to get the Software.base1SoftwareId
-
- Returns:
Software
or null if the given software id does not exist.