net.sf.basedb.clients.migrate
Class AnnotationTransfer
java.lang.Object
net.sf.basedb.clients.migrate.Manager
net.sf.basedb.clients.migrate.Transfer
net.sf.basedb.clients.migrate.AnnotationTransfer
public class AnnotationTransfer
- extends Transfer
- Base 1 tables
- SampleAnnotation
- 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 |
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 |
log
private static final Logger log
- Logger for this class
sampleT
private SampleTransfer sampleT
annotationTypeT
private AnnotationTypeTransfer annotationTypeT
AnnotationTransfer
AnnotationTransfer(SampleTransfer sampleT,
AnnotationTypeTransfer annotationTypeT)
- Constructs a new AnnotationTransfer.
- Parameters:
sampleT
- A finished SampleTransferannotationTypeT
- A finished AnnotationTypeTransfer
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
Annotation
from the current position in the
ResultSet
. If the AnnotationType is of an unknown type
the application will stop.
- Overrides:
createItem
in class Transfer
- Parameters:
rs
- ResultSet
containing the data for this item.
- Throws:
BaseException
- If AnnotationType or Sample is missing.
SQLException
- If current ResultSet position is invalid or number
of columns in the select statement is to low.