wt.inf.container
Class LoadWindchillPDMContainer

java.lang.Object
  extended bywt.inf.container.LoadWindchillPDMContainer
All Implemented Interfaces:
JavaMigrator

public class LoadWindchillPDMContainer
extends Object
implements JavaMigrator

Creates the classic container, and updates the exchange container's classic reference.


Field Summary
private static String CREATOR_RESOURCE
           
private  ObjectIdentifier defaultCabinetOid
           
private  ObjectIdentifier defaultDomainOid
           
private  ObjectIdentifier defaultOrgOid
           
private  DirectiveServices ds
           
private  ObjectIdentifier exchangeOid
           
private static String RESOURCE
           
private  ObjectIdentifier systemCabinetOid
           
private  ObjectIdentifier systemDomainOid
           
 
Constructor Summary
LoadWindchillPDMContainer()
           
 
Method Summary
private  void initOids()
          Finds the exchange container, the default org container, and the exchange domains and cabinets
private  void migrateWindchillPDMContainer()
          Creates the classic container
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE

CREATOR_RESOURCE

private static final String CREATOR_RESOURCE

ds

private DirectiveServices ds

exchangeOid

private ObjectIdentifier exchangeOid

defaultOrgOid

private ObjectIdentifier defaultOrgOid

systemCabinetOid

private ObjectIdentifier systemCabinetOid

defaultCabinetOid

private ObjectIdentifier defaultCabinetOid

systemDomainOid

private ObjectIdentifier systemDomainOid

defaultDomainOid

private ObjectIdentifier defaultDomainOid
Constructor Detail

LoadWindchillPDMContainer

public LoadWindchillPDMContainer()
Method Detail

runMigration

public boolean runMigration(DirectiveServices directive_services)
                     throws Exception
Implemented from JavaMigrator

Specified by:
runMigration in interface JavaMigrator
Parameters:
directive_services - Contains migration resources
Returns:
true
Throws:
Exception

migrateWindchillPDMContainer

private void migrateWindchillPDMContainer()
                                   throws Exception
Creates the classic container

Throws:
Exception

initOids

private void initOids()
               throws Exception
Finds the exchange container, the default org container, and the exchange domains and cabinets

Throws:
WTException - If the exchange or default org container can't be found, if there is more than one matching exchange or default org container, or if one of the exchange domains or cabinets is not set.
Exception

safeClose

private void safeClose(Statement stmt)
If the Statement is not null, try to close it, catching and smothering any SQLException that results.

Parameters:
stmt - The Statement to close

safeClose

private void safeClose(ResultSet rs)
If the Statement is not null, try to close it, catching and smothering any SQLException that results.

Parameters:
rs - The ResultSet to close