wt.vc
Class ControlBranchIteratedColumnsMigrator

java.lang.Object
  extended bywt.vc.ControlBranchIteratedColumnsMigrator
All Implemented Interfaces:
Migrator

public class ControlBranchIteratedColumnsMigrator
extends Object
implements Migrator

This migrator sets the versionId, oneOffVersionId, viewId, adHocStringIdentifier, wipState, and sessionOwner on the ControlBranch.


Field Summary
protected static String AD_HOC_STRING_VERSIONED_ID
           
protected static String BRANCH
           
protected static String CB_AD_HOC_STRING_IDENTIFIER
           
protected static String CB_ONE_OFF_VERSION_ID
           
protected static String CB_SESSION_OWNER
           
protected static String CB_VERSION_ID
           
protected static String CB_VIEW_ID
           
protected static String CB_WIP_STATE
           
protected static String CONTROL_BRANCH
           
protected static String IDA2A2
           
protected static String LATEST
           
protected static String NULL
           
protected static String ONE_OFF_VERSIONED_ID
           
protected static String SESSION_EDITED_ITERATION_SESSION_OWNER
           
protected static String VERSIONED_ID
           
protected static String VIEW_MANAGEABLE_ID
           
protected static String WORKABLE_STATE
           
 
Constructor Summary
ControlBranchIteratedColumnsMigrator()
           
 
Method Summary
static void main(String[] args)
           
 boolean runMigration(Connection conn, PersistentObjectManager pom, PrintWriter logWriter)
          Sets the columns needed for ControlBranch uniqueness.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROL_BRANCH

protected static final String CONTROL_BRANCH

BRANCH

protected static final String BRANCH

IDA2A2

protected static final String IDA2A2

LATEST

protected static final String LATEST

CB_AD_HOC_STRING_IDENTIFIER

protected static final String CB_AD_HOC_STRING_IDENTIFIER

CB_ONE_OFF_VERSION_ID

protected static final String CB_ONE_OFF_VERSION_ID

CB_SESSION_OWNER

protected static final String CB_SESSION_OWNER

CB_VERSION_ID

protected static final String CB_VERSION_ID

CB_VIEW_ID

protected static final String CB_VIEW_ID

CB_WIP_STATE

protected static final String CB_WIP_STATE

AD_HOC_STRING_VERSIONED_ID

protected static final String AD_HOC_STRING_VERSIONED_ID

ONE_OFF_VERSIONED_ID

protected static final String ONE_OFF_VERSIONED_ID

SESSION_EDITED_ITERATION_SESSION_OWNER

protected static final String SESSION_EDITED_ITERATION_SESSION_OWNER

VERSIONED_ID

protected static final String VERSIONED_ID

VIEW_MANAGEABLE_ID

protected static final String VIEW_MANAGEABLE_ID

WORKABLE_STATE

protected static final String WORKABLE_STATE

NULL

protected static final String NULL
See Also:
Constant Field Values
Constructor Detail

ControlBranchIteratedColumnsMigrator

public ControlBranchIteratedColumnsMigrator()
Method Detail

runMigration

public boolean runMigration(Connection conn,
                            PersistentObjectManager pom,
                            PrintWriter logWriter)
                     throws Throwable
Sets the columns needed for ControlBranch uniqueness.

Specified by:
runMigration in interface Migrator
Parameters:
conn - an open connection to the Windchill database
pom - a persistent object manager against the Windchill database
logWriter - an autoflush printwriter for logging any and all output
Throws:
Throwable - declared so that migrators can let exceptions contibuting to failure pass out of the method. The migrator runner will handle these by logging them.
See Also:
Migrator.runMigration(java.sql.Connection, wt.pom.PersistentObjectManager, java.io.PrintWriter)

main

public static void main(String[] args)