wt.iba.value.service
Class MultiObjIBAValueDBService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.iba.value.service.MultiObjIBAValueDBService
All Implemented Interfaces:
IBAValueDBServiceInterface, Manager, NetFactor, Serializable

public class MultiObjIBAValueDBService
extends StandardManager
implements IBAValueDBServiceInterface, Serializable

Use the newMultiObjIBAValueDBService static factory method(s), not the MultiObjIBAValueDBService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private) static class MultiObjIBAValueDBService.CopyResultProcessor
           
 
Field Summary
private static String CLASSNAME
           
protected static int CONTEXT_ID_INDEX
           
static String COPY_METHOD_CONTEXT_KEY
           
private static Class[] DATA_TYPE_CLASS
           
protected static int DEFINITION_ID_INDEX
           
protected static int HIERARCHY_ID_INDEX
           
protected static int HOLDER_ID_INDEX
           
private static int IBA_COPY_BATCH_PROC
           
private static String IBA_COPY_BATCH_STORED_PROCEDURE_NAME
           
private static int IBA_COPY_FULL
           
private static int IBA_COPY_IMPL
           
private static int IBA_COPY_PROC
           
private static String IBA_COPY_STORED_PROCEDURE_NAME
           
private static int IBA_COPY_VIEW
           
protected static int ID_INDEX
           
private static String KEY_CLASS
           
private static String KEY_ID
           
static String METHOD_CONTEXT_KEY
           
protected static int NUMBER_INDEX
           
protected static int NUMBER_PRECISION_INDEX
           
private static String RESOURCE
           
protected static int STRING_INDEX
           
protected static int STRING2_INDEX
           
private static IBADefinitionDBService theIBADefinitionDBService
           
static IBAValueDBService theStandardIBAValueDBService
          

Supported API: false
protected static int TIMESTAMP_INDEX
           
protected static int VALUE_TYPE_INDEX
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
MultiObjIBAValueDBService()
           
 
Method Summary
private  void addToValueIBAHolderMap(HashMap valueToIBAHolderMap, AbstractValueView avv, IBAHolder iba)
           
private  String avvToString(AbstractValueView value)
           
private  void copyAllIBAs(String a_name, StatementParameterFactory a_factory, StatementParameter a_returnValue, IdOidObjectList a_copyList)
           
private  void copyAllIBAs(WTCollection a_targetIBAholders)
           
private  void copyAllIBAs(WTValuedMap ibaHoldersSrcTargetMap)
           
private  void copyAllIBAs(WTValuedMap ibaHoldersSrcTargetMap, boolean replace)
           
private  void copyAllIBAs(WTValuedMap ibaHoldersSrcTargetMap, Map replacements)
           
private  void copyAllIBAsValueView(WTValuedMap ibaHoldersSrcTargetMap, Map replacements)
           
 void copyAttributes(WTValuedMap ibaHoldersMap, boolean replace)
          Copy all soft attributes from source IBAHolder to the Target IBAHoler.
private  void deleteAllIBAsForIBAHolders(long[] ibaholderIDs)
           
private  void deleteAllIBAsForIBAReferenceables(long[] ibaholderRefIDs)
           
private  void deleteAllIBAsForIDs(long[] ids)
           
 void deleteAttributeContainer(IBAHolder ibaHolder, Object constraintParam)
          

Supported API: false
private  WTCollection getAttributeValuesToUpdate(ArrayList updateList, HashMap valueToIBAHolderMap, HashMap refreshMap, HashMap definitionMap, HashMap referenceMap, HashMap newReferenceMap, HashMap IBAReferenceableMap)
           
 String getConceptualClassname()
          Deprecated.  
private  WTCollection getContextualAttributeValues(ArrayList newContextualList, HashMap valueToIBAHolderMap, HashMap referenceMap, HashMap newReferenceMap)
           
private  WTArrayList getCopyValues(long[] srcIBAholderRefIDs, Map srcTargetMap, WTKeyedMap srcTargetRefMap, WTKeyedMap replacementMap)
           
private  HashMap getDefinitionClassMap(WTHashSet definitionSet)
           
private  QueryResult getIBAValues(Class ibaValueClass, long[] ids)
           
private  HashMap getReferenceableMap(WTHashSet IBAReferenceableSet)
           
private  HashMap getReferenceAttributeValueMap(ArrayList newReferenceList, WTArrayList newReferenceListHeavy, HashMap valueToIBAHolderMap, HashMap definitionMap, HashMap IBAReferenceableMap)
           
private  HashMap getRefreshMap(WTHashSet refreshSet, HashMap valueToIBAHolderMap)
           
static MultiObjIBAValueDBService newMultiObjIBAValueDBService()
          Default factory for the class.
protected  void performStartupProcess()
          

Supported API: false
 AttributeContainer refreshAttributeConstraint(IBAHolder ibaHolder, Object constraintParam, Locale locale)
          

Supported API: false
 IBAHolder[] refreshAttributeContainer(IBAHolder[] ibaHolders)
          

Supported API: false
 AttributeContainer refreshAttributeContainer(IBAHolder ibaHolder, Object constraintParam, Locale locale, MeasurementSystemDefaultView measurementSystem)
          

Supported API: false
 WTCollection refreshAttributeContainer(WTCollection ibaHolders)
          

Supported API: false
 AttributeContainer refreshAttributeContainerWithoutConstraints(IBAHolder ibaHolder)
          

Supported API: false
 IBAHolder[] refreshAttributeContainerWithoutConstraints(IBAHolder[] ibaHolders)
          

Supported API: false
 WTCollection refreshAttributeContainerWithoutConstraints(WTCollection ibaHolders)
          

Supported API: false
 AttributeContainer updateAttributeContainer(IBAHolder ibaHolder, Object constraintParam, Locale locale, MeasurementSystemDefaultView measurementSystem)
          

Supported API: false
 WTCollection updateAttributeContainer(WTCollection ibaHolders)
           
 void updateIBAReferenceableReferenceID(IBAReferenceable ibaReferenceable)
          

Supported API: false
private  void updateValueDefinitionReference(AbstractAttributeDefinition definition)
           
protected  void validateMasteredDelete(WTCollection target)
           
protected  void validateModifiable(long[] ibaholderRefIDs)
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

theStandardIBAValueDBService

public static final IBAValueDBService theStandardIBAValueDBService


Supported API: false


DATA_TYPE_CLASS

private static final Class[] DATA_TYPE_CLASS

KEY_ID

private static final String KEY_ID
See Also:
Constant Field Values

KEY_CLASS

private static final String KEY_CLASS
See Also:
Constant Field Values

theIBADefinitionDBService

private static final IBADefinitionDBService theIBADefinitionDBService

METHOD_CONTEXT_KEY

public static final String METHOD_CONTEXT_KEY
See Also:
Constant Field Values

COPY_METHOD_CONTEXT_KEY

public static final String COPY_METHOD_CONTEXT_KEY
See Also:
Constant Field Values

ID_INDEX

protected static final int ID_INDEX
See Also:
Constant Field Values

VALUE_TYPE_INDEX

protected static final int VALUE_TYPE_INDEX
See Also:
Constant Field Values

HIERARCHY_ID_INDEX

protected static final int HIERARCHY_ID_INDEX
See Also:
Constant Field Values

DEFINITION_ID_INDEX

protected static final int DEFINITION_ID_INDEX
See Also:
Constant Field Values

HOLDER_ID_INDEX

protected static final int HOLDER_ID_INDEX
See Also:
Constant Field Values

CONTEXT_ID_INDEX

protected static final int CONTEXT_ID_INDEX
See Also:
Constant Field Values

NUMBER_INDEX

protected static final int NUMBER_INDEX
See Also:
Constant Field Values

NUMBER_PRECISION_INDEX

protected static final int NUMBER_PRECISION_INDEX
See Also:
Constant Field Values

STRING_INDEX

protected static final int STRING_INDEX
See Also:
Constant Field Values

STRING2_INDEX

protected static final int STRING2_INDEX
See Also:
Constant Field Values

TIMESTAMP_INDEX

protected static final int TIMESTAMP_INDEX
See Also:
Constant Field Values

IBA_COPY_STORED_PROCEDURE_NAME

private static final String IBA_COPY_STORED_PROCEDURE_NAME
See Also:
Constant Field Values

IBA_COPY_BATCH_STORED_PROCEDURE_NAME

private static final String IBA_COPY_BATCH_STORED_PROCEDURE_NAME
See Also:
Constant Field Values

IBA_COPY_IMPL

private static final int IBA_COPY_IMPL

IBA_COPY_FULL

private static final int IBA_COPY_FULL
See Also:
Constant Field Values

IBA_COPY_VIEW

private static final int IBA_COPY_VIEW
See Also:
Constant Field Values

IBA_COPY_PROC

private static final int IBA_COPY_PROC
See Also:
Constant Field Values

IBA_COPY_BATCH_PROC

private static final int IBA_COPY_BATCH_PROC
See Also:
Constant Field Values
Constructor Detail

MultiObjIBAValueDBService

public MultiObjIBAValueDBService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException


Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

newMultiObjIBAValueDBService

public static MultiObjIBAValueDBService newMultiObjIBAValueDBService()
                                                              throws WTException
Default factory for the class.

Supported API: false

Returns:
MultiObjIBAValueDBService
Throws:
WTException

updateAttributeContainer

public AttributeContainer updateAttributeContainer(IBAHolder ibaHolder,
                                                   Object constraintParam,
                                                   Locale locale,
                                                   MeasurementSystemDefaultView measurementSystem)
                                            throws IBAContainerException,
                                                   WTException


Supported API: false

Specified by:
updateAttributeContainer in interface IBAValueDBServiceInterface
Parameters:
ibaHolder -
constraintParam -
locale -
measurementSystem -
Returns:
AttributeContainer
Throws:
IBAContainerException
WTException

deleteAttributeContainer

public void deleteAttributeContainer(IBAHolder ibaHolder,
                                     Object constraintParam)
                              throws IBAContainerException,
                                     WTException,
                                     NotAuthorizedException


Supported API: false

Specified by:
deleteAttributeContainer in interface IBAValueDBServiceInterface
Parameters:
ibaHolder -
constraintParam -
Throws:
IBAContainerException
WTException
NotAuthorizedException

refreshAttributeContainer

public AttributeContainer refreshAttributeContainer(IBAHolder ibaHolder,
                                                    Object constraintParam,
                                                    Locale locale,
                                                    MeasurementSystemDefaultView measurementSystem)
                                             throws WTException


Supported API: false

Specified by:
refreshAttributeContainer in interface IBAValueDBServiceInterface
Parameters:
ibaHolder -
constraintParam -
locale -
measurementSystem -
Returns:
AttributeContainer
Throws:
WTException

refreshAttributeContainer

public IBAHolder[] refreshAttributeContainer(IBAHolder[] ibaHolders)
                                      throws WTException


Supported API: false

Specified by:
refreshAttributeContainer in interface IBAValueDBServiceInterface
Parameters:
ibaHolders -
Returns:
IBAHolder[]
Throws:
WTException

refreshAttributeContainer

public WTCollection refreshAttributeContainer(WTCollection ibaHolders)
                                       throws WTException


Supported API: false

Specified by:
refreshAttributeContainer in interface IBAValueDBServiceInterface
Parameters:
ibaHolders -
Returns:
WTCollection
Throws:
WTException

refreshAttributeContainerWithoutConstraints

public AttributeContainer refreshAttributeContainerWithoutConstraints(IBAHolder ibaHolder)
                                                               throws WTException


Supported API: false

Specified by:
refreshAttributeContainerWithoutConstraints in interface IBAValueDBServiceInterface
Parameters:
ibaHolder -
Returns:
AttributeContainer
Throws:
WTException

refreshAttributeContainerWithoutConstraints

public IBAHolder[] refreshAttributeContainerWithoutConstraints(IBAHolder[] ibaHolders)
                                                        throws WTException


Supported API: false

Specified by:
refreshAttributeContainerWithoutConstraints in interface IBAValueDBServiceInterface
Parameters:
ibaHolders -
Returns:
IBAHolder[]
Throws:
WTException

refreshAttributeContainerWithoutConstraints

public WTCollection refreshAttributeContainerWithoutConstraints(WTCollection ibaHolders)
                                                         throws WTException


Supported API: false

Specified by:
refreshAttributeContainerWithoutConstraints in interface IBAValueDBServiceInterface
Parameters:
ibaHolders -
Returns:
WTCollection
Throws:
WTException

refreshAttributeConstraint

public AttributeContainer refreshAttributeConstraint(IBAHolder ibaHolder,
                                                     Object constraintParam,
                                                     Locale locale)
                                              throws WTException


Supported API: false

Specified by:
refreshAttributeConstraint in interface IBAValueDBServiceInterface
Parameters:
ibaHolder -
constraintParam -
locale -
Returns:
AttributeContainer
Throws:
WTException

updateIBAReferenceableReferenceID

public void updateIBAReferenceableReferenceID(IBAReferenceable ibaReferenceable)
                                       throws WTException


Supported API: false

Specified by:
updateIBAReferenceableReferenceID in interface IBAValueDBServiceInterface
Parameters:
ibaReferenceable -
Throws:
WTException

copyAttributes

public void copyAttributes(WTValuedMap ibaHoldersMap,
                           boolean replace)
                    throws WTException,
                           RemoteException
Copy all soft attributes from source IBAHolder to the Target IBAHoler. If 'replace' is true then deletes any IBAs that the target may have before the copy is performed. The Map contains target IBAHolder as map Key and source IBAHolder as map value.

Supported API: false

Specified by:
copyAttributes in interface IBAValueDBServiceInterface
Parameters:
ibaHoldersMap - Map containing target IBAHolder keys and associated IBAHolder source values.
replace -
Throws:
WTException
RemoteException

updateValueDefinitionReference

private void updateValueDefinitionReference(AbstractAttributeDefinition definition)
                                     throws WTException
Throws:
WTException

validateMasteredDelete

protected void validateMasteredDelete(WTCollection target)
                               throws WTException
Throws:
WTException

deleteAllIBAsForIBAHolders

private void deleteAllIBAsForIBAHolders(long[] ibaholderIDs)
                                 throws WTException
Throws:
WTException

deleteAllIBAsForIBAReferenceables

private void deleteAllIBAsForIBAReferenceables(long[] ibaholderRefIDs)
                                        throws WTException
Throws:
WTException

deleteAllIBAsForIDs

private void deleteAllIBAsForIDs(long[] ids)
                          throws WTException
Throws:
WTException

getIBAValues

private QueryResult getIBAValues(Class ibaValueClass,
                                 long[] ids)
                          throws WTException
Throws:
WTException

validateModifiable

protected void validateModifiable(long[] ibaholderRefIDs)
                           throws WTException
Throws:
WTException

updateAttributeContainer

public WTCollection updateAttributeContainer(WTCollection ibaHolders)
                                      throws IBAContainerException,
                                             WTException
Throws:
IBAContainerException
WTException

addToValueIBAHolderMap

private void addToValueIBAHolderMap(HashMap valueToIBAHolderMap,
                                    AbstractValueView avv,
                                    IBAHolder iba)
                             throws IBAContainerException
Throws:
IBAContainerException

getRefreshMap

private HashMap getRefreshMap(WTHashSet refreshSet,
                              HashMap valueToIBAHolderMap)
                       throws IBAContainerException,
                              WTException
Throws:
IBAContainerException
WTException

getReferenceableMap

private HashMap getReferenceableMap(WTHashSet IBAReferenceableSet)
                             throws WTException
Throws:
WTException

getDefinitionClassMap

private HashMap getDefinitionClassMap(WTHashSet definitionSet)
                               throws WTException
Throws:
WTException

getReferenceAttributeValueMap

private HashMap getReferenceAttributeValueMap(ArrayList newReferenceList,
                                              WTArrayList newReferenceListHeavy,
                                              HashMap valueToIBAHolderMap,
                                              HashMap definitionMap,
                                              HashMap IBAReferenceableMap)
                                       throws WTException
Throws:
WTException

getContextualAttributeValues

private WTCollection getContextualAttributeValues(ArrayList newContextualList,
                                                  HashMap valueToIBAHolderMap,
                                                  HashMap referenceMap,
                                                  HashMap newReferenceMap)
                                           throws WTException
Throws:
WTException

getAttributeValuesToUpdate

private WTCollection getAttributeValuesToUpdate(ArrayList updateList,
                                                HashMap valueToIBAHolderMap,
                                                HashMap refreshMap,
                                                HashMap definitionMap,
                                                HashMap referenceMap,
                                                HashMap newReferenceMap,
                                                HashMap IBAReferenceableMap)
                                         throws WTException
Throws:
WTException

copyAllIBAs

private void copyAllIBAs(WTCollection a_targetIBAholders)
                  throws WTException
Throws:
WTException

copyAllIBAs

private void copyAllIBAs(WTValuedMap ibaHoldersSrcTargetMap,
                         boolean replace)
                  throws WTException
Throws:
WTException

copyAllIBAs

private void copyAllIBAs(WTValuedMap ibaHoldersSrcTargetMap)
                  throws WTException
Throws:
WTException

copyAllIBAs

private void copyAllIBAs(String a_name,
                         StatementParameterFactory a_factory,
                         StatementParameter a_returnValue,
                         IdOidObjectList a_copyList)
                  throws WTException
Throws:
WTException

copyAllIBAs

private void copyAllIBAs(WTValuedMap ibaHoldersSrcTargetMap,
                         Map replacements)
                  throws WTException,
                         WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

copyAllIBAsValueView

private void copyAllIBAsValueView(WTValuedMap ibaHoldersSrcTargetMap,
                                  Map replacements)
                           throws WTException,
                                  WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

getCopyValues

private WTArrayList getCopyValues(long[] srcIBAholderRefIDs,
                                  Map srcTargetMap,
                                  WTKeyedMap srcTargetRefMap,
                                  WTKeyedMap replacementMap)
                           throws WTException,
                                  WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

avvToString

private String avvToString(AbstractValueView value)