|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.WTContainedMigrator
Assigns WTContained
objects with null
container references to either the exchange or classic container.
The following object types are assigned to the exchange container:
Field Summary | |
private Map |
blockObjectsClassicMap
|
private Map |
childrenObjectsClassicMap
|
private Map |
childrenObjectsExchangeMap
|
private List |
classicInfos
|
private ObjectIdentifier |
classicOid
|
private DirectiveServices |
ds
|
private static Class[] |
EXCHANGE_TYPES
|
private List |
exchangeInfos
|
private ObjectIdentifier |
exchangeOid
|
private Map |
mixedContainerMap
|
private static Object[][] |
OBJECT_NAMES
This array is used to build sql statements for classes where a subset of the object instances need to be migrated to a different container than the default. |
Constructor Summary | |
WTContainedMigrator()
|
Method Summary | |
private void |
initBlockMaps()
|
private void |
initChildrenMaps()
|
private void |
initInfos()
Initializes the list of classinfos for objects that need to be migrated to the exchange container and to the classic container. |
private void |
initMixedContainerMap()
|
private void |
initOids()
Get the oids of the exchange and classic container |
private void |
migrate(List infos,
ObjectIdentifier oid,
String container_name)
Assign objects with null container refs in the given tables to the given container. |
private void |
migrate(Map map,
String container_name)
|
boolean |
runMigration(DirectiveServices directive_services)
Implemented from JavaMigrator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Class[] EXCHANGE_TYPES
private static final Object[][] OBJECT_NAMES
private DirectiveServices ds
private ObjectIdentifier exchangeOid
private ObjectIdentifier classicOid
private List exchangeInfos
private List classicInfos
private Map mixedContainerMap
private Map blockObjectsClassicMap
private Map childrenObjectsClassicMap
private Map childrenObjectsExchangeMap
Constructor Detail |
public WTContainedMigrator()
Method Detail |
public boolean runMigration(DirectiveServices directive_services) throws Exception
JavaMigrator
runMigration
in interface JavaMigrator
directive_services
- Contains migration resources
true
Exception
private void migrate(List infos, ObjectIdentifier oid, String container_name) throws Exception
infos
- The tables to look inoid
- The oid of the container to assigncontainer_name
- The display name of the container
Exception
private void migrate(Map map, String container_name) throws Exception
Exception
private void initOids() throws Exception
WTException
- If the exchange container can't be found, if there is more
than one row in the exchange container, or if the exchange
container doesn't have a classic reference set
Exception
private void initInfos() throws Exception
Exception
private void initMixedContainerMap() throws Exception
Exception
private void initBlockMaps() throws Exception
Exception
private void initChildrenMaps() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |