wt.epm.build
Class EPMBuildDelegate

java.lang.Object
  extended bywt.epm.build.EPMBuildDelegate
All Implemented Interfaces:
BuildDelegate, Externalizable, Serializable

public class EPMBuildDelegate
extends Object
implements BuildDelegate, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private)  class EPMBuildDelegate.LinkInfo
           
 
Field Summary
private static String CLASSNAME
           
(package private)  HashMap epmOccurrences
           
private static String EPMRESOURCE
           
static long EXTERNALIZATION_VERSION_UID
           
static String ID_SEPARATOR
           
static String KEY_ID_SEPARATOR
           
private static String NEW_LINKS
           
private static String NULL_LINK_ID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static String SUBSUMED_LINKS
           
private static String UPDATED_LINKS
           
 
Constructor Summary
EPMBuildDelegate()
           
 
Method Summary
 BuildTarget[] build(WTCollection rules)
          Deprecated.  
 BuildTarget[] build(WTCollection rules, ConfigSpec configSpec)
          

Supported API: false
protected  void buildAttributes(EPMDocument source, WTPart target)
           
protected  void buildBuildableLinks(Hashtable tableChildren)
           
 QueryResult buildTargetMaster(BuildRule[] buildRules)
          publishes attributes on source masters to target masters and return updated target masters.
protected  void createOccurrencesForNewLink(WTPartUsageLink link, EPMBuildDelegate.LinkInfo linkInfo)
           
protected  void createOccurrencesForsubsumedNonBuiltLink(WTPartUsageLink link, EPMBuildDelegate.LinkInfo linkInfo)
           
protected  void createOccurrencesForUpdatedBuiltLink(WTPartUsageLink link, EPMBuildDelegate.LinkInfo linkInfo)
           
protected  void debugPrint(String s)
           
protected  void deleteOldValues(IBAHolder target, QueryResult valuesToPublish)
          Deprecated.  
 void deleteUnwantedOccurrences(WTCollection parts)
           
 String getApplicationTag(BuildRule rule)
          

Supported API: false
protected  Hashtable getChildren(WTCollection rules, ConfigSpec configSpec)
          Get all the children used by familyInstance in doc.
private  String getKey(QueryKey targetKey, BuildReference br)
           
protected  long getMasterID(EPMDocument document)
           
protected  void publishNewValues(IBAHolder target, QueryResult valuesToPublish)
          Deprecated.  
 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(EPMBuildDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
protected  void updateTarget(IBAHolder target, QueryResult valuesToPublish)
           
 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

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

epmOccurrences

HashMap epmOccurrences

NULL_LINK_ID

private static final String NULL_LINK_ID
See Also:
Constant Field Values

EPMRESOURCE

private static final String EPMRESOURCE
See Also:
Constant Field Values

ID_SEPARATOR

public static final String ID_SEPARATOR
See Also:
Constant Field Values

KEY_ID_SEPARATOR

public static final String KEY_ID_SEPARATOR
See Also:
Constant Field Values

UPDATED_LINKS

private static final String UPDATED_LINKS
See Also:
Constant Field Values

NEW_LINKS

private static final String NEW_LINKS
See Also:
Constant Field Values

SUBSUMED_LINKS

private static final String SUBSUMED_LINKS
See Also:
Constant Field Values
Constructor Detail

EPMBuildDelegate

public EPMBuildDelegate()
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(EPMBuildDelegate 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

getApplicationTag

public String getApplicationTag(BuildRule rule)


Supported API: false

Specified by:
getApplicationTag in interface BuildDelegate
Parameters:
rule -
Returns:
String

buildTargetMaster

public QueryResult buildTargetMaster(BuildRule[] buildRules)
                              throws WTException
publishes attributes on source masters to target masters and return updated target masters.

Supported API: false

Specified by:
buildTargetMaster in interface BuildDelegate
Parameters:
buildRules -
Returns:
QueryResult
Throws:
WTException

build

public BuildTarget[] build(WTCollection rules)
                    throws WTException
Deprecated.  



Supported API: false

Specified by:
build in interface BuildDelegate
Parameters:
rules - collection of BuildRule.
Returns:
BuildTarget[]
Throws:
WTException

build

public BuildTarget[] build(WTCollection rules,
                           ConfigSpec configSpec)
                    throws WTException


Supported API: false

Specified by:
build in interface BuildDelegate
Parameters:
rules - collection of BuildRule.
configSpec -
Returns:
BuildTarget[]
Throws:
WTException

getChildren

protected Hashtable getChildren(WTCollection rules,
                                ConfigSpec configSpec)
                         throws EPMException,
                                WTException
Get all the children used by familyInstance in doc. The key used in the returned hashtable buildReference

Returns:
Hashtable - a list of children used by familyInstance in doc.
Throws:
wt.util.EPMException
WTException
EPMException

buildBuildableLinks

protected void buildBuildableLinks(Hashtable tableChildren)
                            throws EPMException,
                                   WTException
Throws:
wt.util.EPMException
WTException
EPMException

getMasterID

protected long getMasterID(EPMDocument document)

debugPrint

protected void debugPrint(String s)

buildAttributes

protected void buildAttributes(EPMDocument source,
                               WTPart target)
                        throws WTException
Throws:
WTException

updateTarget

protected void updateTarget(IBAHolder target,
                            QueryResult valuesToPublish)
                     throws WTException
Throws:
WTException

deleteOldValues

protected void deleteOldValues(IBAHolder target,
                               QueryResult valuesToPublish)
                        throws WTException
Deprecated.  

Throws:
WTException

publishNewValues

protected void publishNewValues(IBAHolder target,
                                QueryResult valuesToPublish)
                         throws WTException
Deprecated.  

Throws:
WTException

createOccurrencesForUpdatedBuiltLink

protected void createOccurrencesForUpdatedBuiltLink(WTPartUsageLink link,
                                                    EPMBuildDelegate.LinkInfo linkInfo)
                                             throws WTException
Throws:
WTException

createOccurrencesForNewLink

protected void createOccurrencesForNewLink(WTPartUsageLink link,
                                           EPMBuildDelegate.LinkInfo linkInfo)
                                    throws WTException
Throws:
WTException

createOccurrencesForsubsumedNonBuiltLink

protected void createOccurrencesForsubsumedNonBuiltLink(WTPartUsageLink link,
                                                        EPMBuildDelegate.LinkInfo linkInfo)
                                                 throws WTException
Throws:
WTException

getKey

private String getKey(QueryKey targetKey,
                      BuildReference br)

deleteUnwantedOccurrences

public void deleteUnwantedOccurrences(WTCollection parts)
                               throws WTException
Throws:
WTException