2.12.0: 2009-05-27

net.sf.basedb.clients.migrate
Class AnnotationTransfer

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

public class AnnotationTransfer
extends Transfer

Base 1 tables
SampleAnnotation

Version:
2.0
Author:
Gregory, Martin
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Field Summary
private  AnnotationTypeTransfer annotationTypeT
           
private static Logger log
          Logger for this class
private  SampleTransfer sampleT
           
 
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
AnnotationTransfer(SampleTransfer sampleT, AnnotationTypeTransfer annotationTypeT)
          Constructs a new AnnotationTransfer.
 
Method Summary
protected  void createItem(ResultSet rs)
          Creates an Annotation from the current position in the ResultSet.
 void start()
          Starts the actual transfer.
 
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


sampleT

private SampleTransfer sampleT

annotationTypeT

private AnnotationTypeTransfer annotationTypeT
Constructor Detail

AnnotationTransfer

AnnotationTransfer(SampleTransfer sampleT,
                   AnnotationTypeTransfer annotationTypeT)
Constructs a new AnnotationTransfer.

Parameters:
sampleT - A finished SampleTransfer
annotationTypeT - A finished AnnotationTypeTransfer
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 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.

2.12.0: 2009-05-27