net.sf.basedb.clients.migrate
Class HardwareTransfer
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.HardwareTransfer
public class HardwareTransfer
- extends CommonItemTransfer
- Base 1 tables
- Hardware
- Unused columns
- addedDate
- Notes
-
- Version:
- 2.0
- Author:
- Gregory
- Last modified
- $Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $
Field Summary |
private static Logger |
log
Logger for this class |
private int |
scannerId
Id for the HardwareType.SCANNER |
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 |
scannerId
private int scannerId
- Id for the HardwareType.SCANNER
log
private static final Logger log
- Logger for this class
HardwareTransfer
HardwareTransfer(UserTransfer userT,
GroupTransfer groupT)
- Creates a new HardwareTransfer.
- 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
protected Hardware createItem(DbControl b2c,
ResultSet rs)
throws BaseException,
SQLException
- Returns a Hardware from the current row in a given ResultSet.
- Overrides:
createItem
in class Transfer
- Parameters:
b2c
- DbControl
rs
- ResultSet
- Returns:
- Hardware
- Throws:
BaseException
SQLException
getHardwareById
public Hardware getHardwareById(DbControl dbc,
int base1HardwareId)
- Returns a Hardware by the given base 1 hardware id.
- Parameters:
dbc
- DbControl
used to get the hardware.base1HardwareId
-
- Returns:
Hardware
or null if the hardware doesn't exist;