net.sf.basedb.clients.migrate
Class PluginTransfer
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.PluginTransfer
public class PluginTransfer
- extends CommonItemTransfer
Transfers BASE 1 plugins. The plugins are added as configurations
for the Base1PluginExecuter
.
- Base 1 tables
- Program, ProgramParameter
- Version:
- 2.0.2
- Author:
- Nicklas, Martin
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
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 |
directoryId
private int directoryId
pluginDir
private String pluginDir
log
private static final Logger log
- Logger for this class
PluginTransfer
PluginTransfer(UserTransfer userT,
GroupTransfer groupT)
- Parameters:
userT
- A finished UserTransfer
groupT
- A finished GroupTransfer
start
public void start()
- Description copied from class:
Transfer
- Starts the actual transfer.
- Specified by:
start
in class Transfer
createItem
public void createItem(ResultSet rs)
- Description copied from class:
Transfer
- Transfers using
Transfer.runUnBatched(PreparedStatement,int,int)
must
override this method. For each item this method is responsible to create
it's own DbControl and save the item to the database.
- Overrides:
createItem
in class Transfer
- Parameters:
rs
- ResultSet from which we create an item.
createFile
private void createFile(File f,
ResultSet rs,
ResultSet parameters)
throws SQLException
- Throws:
SQLException
getPluginDefinition
private PluginDefinition getPluginDefinition(DbControl dc)
throws BaseException
- Throws:
BaseException
fixUniqueName
private String fixUniqueName(String base1UniqueName)
encode
private String encode(String in)
- Replace tabs and newlines with \n, \r and \t