wt.ixb.publicforhandlers
Class ReferenceHndHelper

java.lang.Object
  extended bywt.ixb.publicforhandlers.ReferenceHndHelper

public class ReferenceHndHelper
extends Object


Field Summary
private static String CLASSNAME
           
private static String CONFLICT_RESOURCE
           
static String DELIMITER
           
static int IMPORT_PRIORITY_AXL
           
static int IMPORT_PRIORITY_AXL_ITEMS
           
static int IMPORT_PRIORITY_CHANGE_ACTIVITY2
           
static int IMPORT_PRIORITY_CHANGE_ISSUE
           
static int IMPORT_PRIORITY_CHANGE_ORDER2
           
static int IMPORT_PRIORITY_CHANGE_PROPOSAL
           
static int IMPORT_PRIORITY_CHANGE_REQUEST2
           
static int IMPORT_PRIORITY_WT_PRODUCT_CONFIGURATION
           
static String RESOURCE
           
static String XML_DOMAIN
           
static String XML_TAG_OBJECT_ID
           
static String XML_VALUE_NULL
           
 
Constructor Summary
ReferenceHndHelper()
           
 
Method Summary
static QuerySpec appendIterationSearchCondition(Class classObject, QuerySpec specification, IxbElement element)
           
static QuerySpec appendMasterSearchCondition(Class classObject, Mastered master, QuerySpec specification)
           
static QuerySpec appendVersionSearchCondition(Class classObject, QuerySpec specification, IxbElement element)
           
static QuerySpec appendViewSearchCondition(Class classObject, QuerySpec specification, IxbElement element)
           
static void cacheFederatedObject(Federatable federatedObject, IxbElement importedElem, Importer importer, boolean isNew)
           
static String createTypeTag(Class objectType)
           
static Persistable deleteFromDB(Persistable object)
           
private static void devError(String message)
           
static boolean didObjectExistPriorImport(String importedId, Importer importer)
           
static ObjectToVersionLink findAlreadyImportedO2VLink(Class cl, WTObject from, WTObject to)
           
static QueryResult findObjectFromDB(Class searchClass, Hashtable attrTable)
           
static QueryResult findObjectFromDB(Class searchClass, String attrTag, String attrVal)
           
static QueryResult findVersionedObject(Class classObject, QuerySpec specification, IxbElement element)
           
static QueryResult findVersionedObjectFromMaster(Class classObject, Mastered master, IxbElement element)
           
static QueryResult findVersionedObjectFromMaster(Class classObject, Mastered master, QuerySpec specification, IxbElement element)
           
static IxbElement getActualUfidElem(IxbElement importedElem, Importer importer)
           
static String getImportedLocalIdString(IxbElement fileXML)
           
static Mastered getMaster(Class masterClass, String attrNameInMaster, Class iteratedClass, String attrNameInIteration, String attrValue)
           
static Iterated getObjectFromMasterAndConfigSpec(Mastered master, ConfigSpec configSpec)
           
static QueryResult getOOLinkFromRoleObject(Class linkClass, Persistable persistant, boolean isRoleA)
           
static boolean isObjectInfoInCache(String importedId, Importer importer)
           
static Federatable locateAndCacheFederatedObject(IxbElement importedElem, Importer importer)
           
static Federatable locateFederatedObjectFromCache(IxbElement importedElem, Importer importer)
           
static Federatable locateNotCachedFederatedObject(IxbElement importedElem, Importer importer)
           
static void logAndThrowWTException(WTException e, String logMessage)
           
static void logWTException(WTException e, String logMessage)
           
static Persistable modifyDB(Persistable object)
           
private static void printLog(String message)
           
static QueryResult queryDB(QuerySpec specification)
           
static Persistable storeToDB(Persistable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFLICT_RESOURCE

private static final String CONFLICT_RESOURCE
See Also:
Constant Field Values

IMPORT_PRIORITY_AXL

public static final int IMPORT_PRIORITY_AXL
See Also:
Constant Field Values

IMPORT_PRIORITY_AXL_ITEMS

public static final int IMPORT_PRIORITY_AXL_ITEMS
See Also:
Constant Field Values

IMPORT_PRIORITY_CHANGE_ISSUE

public static final int IMPORT_PRIORITY_CHANGE_ISSUE
See Also:
Constant Field Values

IMPORT_PRIORITY_CHANGE_REQUEST2

public static final int IMPORT_PRIORITY_CHANGE_REQUEST2
See Also:
Constant Field Values

IMPORT_PRIORITY_CHANGE_ORDER2

public static final int IMPORT_PRIORITY_CHANGE_ORDER2
See Also:
Constant Field Values

IMPORT_PRIORITY_CHANGE_ACTIVITY2

public static final int IMPORT_PRIORITY_CHANGE_ACTIVITY2
See Also:
Constant Field Values

IMPORT_PRIORITY_CHANGE_PROPOSAL

public static final int IMPORT_PRIORITY_CHANGE_PROPOSAL
See Also:
Constant Field Values

IMPORT_PRIORITY_WT_PRODUCT_CONFIGURATION

public static final int IMPORT_PRIORITY_WT_PRODUCT_CONFIGURATION
See Also:
Constant Field Values

DELIMITER

public static final String DELIMITER
See Also:
Constant Field Values

XML_VALUE_NULL

public static final String XML_VALUE_NULL
See Also:
Constant Field Values

XML_TAG_OBJECT_ID

public static final String XML_TAG_OBJECT_ID
See Also:
Constant Field Values

XML_DOMAIN

public static final String XML_DOMAIN
See Also:
Constant Field Values

RESOURCE

public static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static String CLASSNAME
Constructor Detail

ReferenceHndHelper

public ReferenceHndHelper()
Method Detail

devError

private static void devError(String message)
                      throws WTException
Throws:
WTException

printLog

private static void printLog(String message)

logAndThrowWTException

public static void logAndThrowWTException(WTException e,
                                          String logMessage)
                                   throws WTException
Throws:
WTException

logWTException

public static void logWTException(WTException e,
                                  String logMessage)
                           throws WTException
Throws:
WTException

createTypeTag

public static String createTypeTag(Class objectType)
                            throws WTException
Throws:
WTException

locateAndCacheFederatedObject

public static Federatable locateAndCacheFederatedObject(IxbElement importedElem,
                                                        Importer importer)
                                                 throws WTException
Throws:
WTException

locateFederatedObjectFromCache

public static Federatable locateFederatedObjectFromCache(IxbElement importedElem,
                                                         Importer importer)
                                                  throws WTException
Throws:
WTException

locateNotCachedFederatedObject

public static Federatable locateNotCachedFederatedObject(IxbElement importedElem,
                                                         Importer importer)
                                                  throws WTException
Throws:
WTException

cacheFederatedObject

public static void cacheFederatedObject(Federatable federatedObject,
                                        IxbElement importedElem,
                                        Importer importer,
                                        boolean isNew)
                                 throws WTException
Throws:
WTException

getActualUfidElem

public static IxbElement getActualUfidElem(IxbElement importedElem,
                                           Importer importer)
                                    throws WTException
Throws:
WTException

queryDB

public static QueryResult queryDB(QuerySpec specification)
                           throws WTException
Throws:
WTException

modifyDB

public static Persistable modifyDB(Persistable object)
                            throws WTException
Throws:
WTException

storeToDB

public static Persistable storeToDB(Persistable object)
                             throws WTException
Throws:
WTException

deleteFromDB

public static Persistable deleteFromDB(Persistable object)
                                throws WTException
Throws:
WTException

getImportedLocalIdString

public static String getImportedLocalIdString(IxbElement fileXML)
                                       throws WTException
Throws:
WTException

isObjectInfoInCache

public static boolean isObjectInfoInCache(String importedId,
                                          Importer importer)
                                   throws WTException
Throws:
WTException

didObjectExistPriorImport

public static boolean didObjectExistPriorImport(String importedId,
                                                Importer importer)
                                         throws WTException
Throws:
WTException

getObjectFromMasterAndConfigSpec

public static Iterated getObjectFromMasterAndConfigSpec(Mastered master,
                                                        ConfigSpec configSpec)
                                                 throws WTException
Throws:
WTException

findVersionedObjectFromMaster

public static QueryResult findVersionedObjectFromMaster(Class classObject,
                                                        Mastered master,
                                                        IxbElement element)
                                                 throws WTException
Throws:
WTException

findVersionedObjectFromMaster

public static QueryResult findVersionedObjectFromMaster(Class classObject,
                                                        Mastered master,
                                                        QuerySpec specification,
                                                        IxbElement element)
                                                 throws WTException
Throws:
WTException

findVersionedObject

public static QueryResult findVersionedObject(Class classObject,
                                              QuerySpec specification,
                                              IxbElement element)
                                       throws WTException
Throws:
WTException

appendMasterSearchCondition

public static QuerySpec appendMasterSearchCondition(Class classObject,
                                                    Mastered master,
                                                    QuerySpec specification)
                                             throws WTException
Throws:
WTException

appendViewSearchCondition

public static QuerySpec appendViewSearchCondition(Class classObject,
                                                  QuerySpec specification,
                                                  IxbElement element)
                                           throws WTException
Throws:
WTException

appendVersionSearchCondition

public static QuerySpec appendVersionSearchCondition(Class classObject,
                                                     QuerySpec specification,
                                                     IxbElement element)
                                              throws WTException
Throws:
WTException

appendIterationSearchCondition

public static QuerySpec appendIterationSearchCondition(Class classObject,
                                                       QuerySpec specification,
                                                       IxbElement element)
                                                throws WTException
Throws:
WTException

getMaster

public static Mastered getMaster(Class masterClass,
                                 String attrNameInMaster,
                                 Class iteratedClass,
                                 String attrNameInIteration,
                                 String attrValue)
                          throws WTException
Throws:
WTException

getOOLinkFromRoleObject

public static QueryResult getOOLinkFromRoleObject(Class linkClass,
                                                  Persistable persistant,
                                                  boolean isRoleA)
                                           throws WTException
Throws:
WTException

findObjectFromDB

public static QueryResult findObjectFromDB(Class searchClass,
                                           Hashtable attrTable)
                                    throws WTException
Throws:
WTException

findObjectFromDB

public static QueryResult findObjectFromDB(Class searchClass,
                                           String attrTag,
                                           String attrVal)
                                    throws WTException
Throws:
WTException

findAlreadyImportedO2VLink

public static ObjectToVersionLink findAlreadyImportedO2VLink(Class cl,
                                                             WTObject from,
                                                             WTObject to)
                                                      throws WTException
Throws:
WTException