wt.export
Class WTPartExport

java.lang.Object
  extended bywt.export.WTPartExport
All Implemented Interfaces:
Exportable, Externalizable, Serializable

public class WTPartExport
extends Object
implements Exportable, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
protected static String REMOVE_CSM_CONSTRAINT
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static ExportUtility util
           
private static boolean VERBOSE
           
private static String versionID
           
 
Constructor Summary
WTPartExport()
          

Supported API: false
 
Method Summary
 Vector getExportVector(Object object)
          This method is used to get the export csv strings for a WTPart and its IBA values.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(WTPartExport thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE

util

private static ExportUtility util

REMOVE_CSM_CONSTRAINT

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

WTPartExport

public WTPartExport()


Supported API: false

Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(WTPartExport thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getExportVector

public Vector getExportVector(Object object)
                       throws ExporterException
This method is used to get the export csv strings for a WTPart and its IBA values. In order to use the Export functionality, you need a file typically called export.csv which starts with "BeginExport,xxx,xxx,xxx...." In that file you need a line to tell the Export class how to export WTPart. "Export,BeginWTPart|IBAValue|EndWTPart,wt.export.WTPartExport,WTPart,latestIterationOnly,,#comments here" Token 1 - Export This is not to be changed Token 2 - beginKey|IBAKey|endKey beginKey - either "BeginWTPart" or "BeginCreateOrUpdateWTPart", This affects how the exported data is loaded back into a Windchill system Refer to $(WINDCHILL_HOME)/LoadFiles/csvmapfile.txt to see which method each corresponds to. IBAKey - either "IBAValue" or "CreateOrUpdateIBAValue". This affects how IBA values are loaded back into a Windchill system. Refer to $(WINDCHILL_HOME)/LoadFiles/csvmapfile.txt to see which method each corresponds to. endKey - either "EndWTPart" or "EndCreateOrUpdateWTPart". This has to correspond to the beginKey. Refer to $(WINDCHILL_HOME)/LoadFiles/csvmapfile.txt to see which method each corresponds to. Token 3 - wt.export.WTPartExport This should not be changed. This token corresponds to this class. This token essentially tells the system which class/method to invoke. Token 4 - WTPart This should not be changed. This token is used to invoke the right ObjectLocator service. see $(WINDCHILL_HOME)/codebase/service.properties Token 5 - null or "latestIterationOnly" if this token is null, all iterations of WTParts would be exported. Expect to see multiple blocks exported for each WTPart(Master) if this token is "latestIterationOnly", only one block would be exported for each WTPart(Master) Token 6 - null

Supported API: false

Specified by:
getExportVector in interface Exportable
Parameters:
object -
Returns:
Vector
Throws:
export.ExporterException
ExporterException