wt.iba.value.service
Class IBAValueDBService

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

public class IBAValueDBService
extends StandardManager
implements IBAValueDBServiceInterface, Serializable

A helper or proxy service for the IBAValueService.

Use the newIBAValueDBService static factory method(s), not the IBAValueDBService 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

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
static IBADefinitionDBService theIBADefinitionDBService
           
 
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
IBAValueDBService()
           
 
Method Summary
protected  IBAHolder copyAttributeContainer(IBAHolder oldTarget, IBAHolder target)
           
 void copyAttributes(WTValuedMap ibaHoldersMap, boolean replace)
          Copy all soft attributes from source IBAHolder to the Target IBAHoler.
 void deleteAttributeContainer(IBAHolder ibaHolder, Object constraintParam)
          

Supported API: false
protected  void deleteReferenceValuesAssociated(IBAReferenceable target)
           
private  Hashtable getAllDefinition(ObjectIdentifier[] defOids)
           
private  Hashtable getAllQOM()
           
private  AttributeDefinitionReference getAttributeDefinitionReference(AbstractValue av)
           
 String getConceptualClassname()
          Deprecated.  
private  void insertNonReferenceValues(Class targetClass, Class defClass, IBAHolder[] ibaHolders, long[] oi, Hashtable refValueHash)
           
private  void insertNonReferenceValues(IBAHolder[] ibaHolders, long[] oi, Hashtable refValueHash)
           
private  void insertNonReferenceValues(WTCollection ibaHoldersCollection, long[] oi, Hashtable refValueHash)
           
static IBAValueDBService newIBAValueDBService()
          Default factory for the class.
protected  void performStartupProcess()
          

Supported API: false
private  WTCollection privateRefreshAttributeContainerWithoutConstraints(WTCollection ibaHoldersCollection)
           
 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
protected  IBAHolder unsafeCopyAttributeContainer(IBAHolder oldTarget, IBAHolder target)
           
protected  void updateAbstractContextualValuesAssociated(ReferenceValue target)
           
 AttributeContainer updateAttributeContainer(IBAHolder ibaHolder, Object constraintParam, Locale locale, MeasurementSystemDefaultView measurementSystem)
          

Supported API: false
private  void updateAttributeValue(AbstractValue av, AbstractValueView liteValue, IBAHolder holder)
           
 void updateIBAReferenceableReferenceID(IBAReferenceable ibaReferenceable)
          

Supported API: false
private  void updateValueDefinitionReference(AbstractAttributeDefinition definition)
           
protected  void validateMasteredDelete(Persistable target)
           
private  int whichIBAHolder(AbstractValue value, long[] oi)
           
 
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

theIBADefinitionDBService

public static final IBADefinitionDBService theIBADefinitionDBService
Constructor Detail

IBAValueDBService

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

newIBAValueDBService

public static IBAValueDBService newIBAValueDBService()
                                              throws WTException
Default factory for the class.

Supported API: false

Returns:
IBAValueDBService
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

updateAttributeValue

private void updateAttributeValue(AbstractValue av,
                                  AbstractValueView liteValue,
                                  IBAHolder holder)
                           throws WTException
Throws:
WTException

getAttributeDefinitionReference

private AttributeDefinitionReference getAttributeDefinitionReference(AbstractValue av)
                                                              throws WTException
Throws:
WTException

unsafeCopyAttributeContainer

protected IBAHolder unsafeCopyAttributeContainer(IBAHolder oldTarget,
                                                 IBAHolder target)
                                          throws WTException
Throws:
WTException

copyAttributeContainer

protected IBAHolder copyAttributeContainer(IBAHolder oldTarget,
                                           IBAHolder target)
                                    throws WTException
Throws:
WTException

validateMasteredDelete

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

deleteReferenceValuesAssociated

protected void deleteReferenceValuesAssociated(IBAReferenceable target)
                                        throws WTException
Throws:
WTException

updateAbstractContextualValuesAssociated

protected void updateAbstractContextualValuesAssociated(ReferenceValue target)
                                                 throws WTException
Throws:
WTException

whichIBAHolder

private int whichIBAHolder(AbstractValue value,
                           long[] oi)

insertNonReferenceValues

private void insertNonReferenceValues(Class targetClass,
                                      Class defClass,
                                      IBAHolder[] ibaHolders,
                                      long[] oi,
                                      Hashtable refValueHash)
                               throws WTException
Throws:
WTException

insertNonReferenceValues

private void insertNonReferenceValues(IBAHolder[] ibaHolders,
                                      long[] oi,
                                      Hashtable refValueHash)
                               throws WTException
Throws:
WTException

getAllQOM

private Hashtable getAllQOM()
                     throws WTException
Throws:
WTException

getAllDefinition

private Hashtable getAllDefinition(ObjectIdentifier[] defOids)
                            throws WTException
Throws:
WTException

updateValueDefinitionReference

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

privateRefreshAttributeContainerWithoutConstraints

private WTCollection privateRefreshAttributeContainerWithoutConstraints(WTCollection ibaHoldersCollection)
                                                                 throws WTException
Throws:
WTException

insertNonReferenceValues

private void insertNonReferenceValues(WTCollection ibaHoldersCollection,
                                      long[] oi,
                                      Hashtable refValueHash)
                               throws WTException
Throws:
WTException