|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.folder.MigratePersonalCabinetData
This migrator assigns container references to personal data. The steps this migrator takes are:
null
container references
to the container of their corresponding checked out copy. Note that
this has no dependency on folders.
null
container references to the exchange container.
Field Summary | |
private DirectiveServices |
ds
|
private ObjectIdentifier |
exchangeOid
|
private ClassInfo[] |
folderedContainedInfos
|
private ClassInfo[] |
iteratedContainedInfos
|
private static int |
PAGE_SIZE
|
Constructor Summary | |
MigratePersonalCabinetData()
|
Method Summary | |
private void |
initExchangeOid()
Finds the exchange container |
private void |
initInfos()
Initializes the class info arrays |
private void |
migrateFolderedContained()
Assign personal cabinet objects with null container
references to the exchange container. |
private void |
migrateIteratedContained()
Assign all working copies with null container references
to the container of their corresponding checked out copy. |
boolean |
runMigration(DirectiveServices directive_services)
Implemented from JavaMigrator |
private void |
safeClose(ResultSet rs)
If the Statement is not null, try to close it, catching and smothering any SQLException that results. |
private void |
safeClose(Statement stmt)
If the Statement is not null, try to close it, catching and smothering any SQLException that results. |
private void |
updateWorkingCopy(long working_copy_id,
String table_name,
long container_id,
String container_class)
Assigns the working copy with the given oid to the given container |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int PAGE_SIZE
private DirectiveServices ds
private ObjectIdentifier exchangeOid
private ClassInfo[] folderedContainedInfos
private ClassInfo[] iteratedContainedInfos
Constructor Detail |
public MigratePersonalCabinetData()
Method Detail |
public boolean runMigration(DirectiveServices directive_services) throws Exception
runMigration
in interface JavaMigrator
directive_services
- Contains migration resources
true
WTException
- If the system cabinet can't be found
Exception
private void migrateIteratedContained() throws Exception
null
container references
to the container of their corresponding checked out copy.
Exception
private void migrateFolderedContained() throws Exception
null
container
references to the exchange container.
Exception
private void updateWorkingCopy(long working_copy_id, String table_name, long container_id, String container_class) throws Exception
working_copy_id
- The oid of the working copytable_name
- The name of the table the working copy is incontainer_id
- The oid of the containercontainer_class
- The class name of the container
Exception
private void initInfos() throws Exception
Exception
private void initExchangeOid() throws Exception
Exception
private void safeClose(Statement stmt)
stmt
- The Statement
to closeprivate void safeClose(ResultSet rs)
rs
- The ResultSet
to close
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |