2.14.1: 2009-11-05

net.sf.basedb.clients.migrate
Class AnnotationTypeTransfer

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

public class AnnotationTypeTransfer
extends CommonItemTransfer

Base 1 tables
SampleAnnotationType
Unused columns
addedDate
Notes
Enumerated annotations are all of Type.STRING.

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
          Logger for this class
 
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
AnnotationTypeTransfer(UserTransfer userT, GroupTransfer groupT)
           
 
Method Summary
(package private)  AnnotationType createItem(DbControl b2c, ResultSet rs)
          Creates an AnnotationType from the current position in ResultSet.
 AnnotationType getAnnotationTypeById(DbControl dbc, int base1AnnotationTypeId)
          Returns a AnnotationType from a base1 annotationtype 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

Constructor Detail

AnnotationTypeTransfer

AnnotationTypeTransfer(UserTransfer userT,
                       GroupTransfer groupT)
Parameters:
userT - A finished UserTransfer
groupT - A finished GroupTransfer
Method Detail

start

public void start()
Description copied from class: Transfer
Starts the actual transfer.

Specified by:
start in class Transfer

createItem

AnnotationType createItem(DbControl b2c,
                          ResultSet rs)
                    throws BaseException,
                           SQLException
Creates an AnnotationType from the current position in ResultSet.

Overrides:
createItem in class Transfer
Parameters:
b2c - DbControl used to transfer this item
rs - ResultSet containing the data for this item.
Returns:
AnnotationType
Throws:
BaseException
SQLException - If current ResultSet position is invalid or number of columns in the select statement is to low.

getAnnotationTypeById

public AnnotationType getAnnotationTypeById(DbControl dbc,
                                            int base1AnnotationTypeId)
                                     throws BaseException
Returns a AnnotationType from a base1 annotationtype id.

Parameters:
dbc - DbControl used to get the annotationType
base1AnnotationTypeId - Base1 annotationtype id
Throws:
BaseException - If accessing the data fails.

2.14.1: 2009-11-05