|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.update.UpdateManagerImpl
| Field Summary | |
(package private) static java.lang.String |
CHANGES_NEW
|
(package private) static java.lang.String |
CHANGES_REMOVED
|
| Constructor Summary | |
UpdateManagerImpl()
Constructor to create update manager. |
|
| Method Summary | |
UpdateResult |
activateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
java.lang.String user)
Activates a particular EnterpriseObject |
void |
addHelper(EnterpriseObject beforeEO,
EnterpriseObject curEO,
java.util.Map changes)
Helper method for unmerging enterprise objects. |
UpdateResult |
createEnterpriseObject(java.sql.Connection con,
SystemObject so)
creates an EnterpriseObject given a SystemObject. |
UpdateResult |
createEnterpriseObject(java.sql.Connection con,
SystemObject[] so)
creates an EnterpriseObject given a SystemObject. |
UpdateResult |
deactivateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
java.lang.String user)
Deactivates a particular EnterpriseObject |
UpdateResult |
mergeEnterprise(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
int flags,
java.lang.String user)
Merges two EnterpriseObject by transfering all of the
SystemObject from the source to the destination. |
UpdateResult |
mergeEnterprise(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
java.lang.String srcRevisionNumber,
java.lang.String destRevisionNumber,
int flags,
java.lang.String user)
Merges two EnterpriseObject by transfering all of the
SystemObject from the source to the destination. |
UpdateResult |
mergeSystem(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
java.lang.String system,
java.lang.String lid,
SystemObject newSO,
int flags,
java.lang.String user)
Merge two system objects from two EnterpriseObjects. |
UpdateResult |
mergeSystem(java.sql.Connection con,
EnterpriseObject srcEO,
java.lang.String system,
java.lang.String lid,
SystemObject newSO,
int flags,
java.lang.String user)
merge two LID within the same EnterpriseObject and update the existing SystemObject with values from newSO |
void |
removeHelper(EnterpriseObject beforeEO,
java.util.Map changes)
Helper method for unmerging enterprise objects. |
UpdateResult |
removeSystem(java.sql.Connection con,
EnterpriseObject srcEO,
java.lang.String system,
java.lang.String lid,
java.lang.String user)
Removes a System Object from a Enterprise Object |
java.util.Map |
sameEO(EnterpriseObject eo1,
EnterpriseObject eo2)
identify which SO's are common to both EO's |
UpdateResult |
splitSystem(java.sql.Connection con,
java.lang.String system,
java.lang.String lid,
EnterpriseObject eo,
java.lang.String user)
Splits a SystemObject from its current EnterpriseObject and assign it to a new EnterpriseObject |
UpdateResult |
splitSystem(java.sql.Connection con,
SystemObject so,
EnterpriseObject eo,
java.lang.String user)
Splits a SystemObject from its current EnterpriseObject and assign it to a new EnterpriseObject |
UpdateResult |
transferSystem(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
java.lang.String system,
java.lang.String lid,
java.lang.String user)
Transfer system object from source Enterprise Object to destination Enterprise Object |
UpdateResult |
unmergeEnterprise(java.sql.Connection con,
java.lang.String transactionID,
int flag,
java.lang.String user)
unmerges an EnterpriseObject merge transaction |
void |
unmergeHelper(EnterpriseObject beforeEO,
EnterpriseObject curEO,
java.util.Map changes)
Helper method for unmerging enterprise objects. |
UpdateResult |
unmergeSystem(java.sql.Connection con,
java.lang.String transactionID,
int flag,
java.lang.String user)
Unmerges a SystemObject merge. |
UpdateResult |
updateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
int flags,
java.lang.String user)
Updates a particular EnterpriseObject |
UpdateResult |
updateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
java.lang.String revisionNumber,
int flags,
java.lang.String user)
Updates a particular EnterpriseObject |
UpdateResult |
updateEnterprise(java.sql.Connection con,
SystemObject so,
EnterpriseObject eo,
int flags,
java.lang.String user)
Updates a particular EnterpriseObject with values from the specified SystemObject |
UpdateResult |
updateEnterprise(java.sql.Connection con,
SystemObject so,
EnterpriseObject eo,
java.lang.String revisionNumber,
int flags,
java.lang.String user)
Updates a particular EnterpriseObject with values from the specified SystemObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final java.lang.String CHANGES_NEW
static final java.lang.String CHANGES_REMOVED
| Constructor Detail |
public UpdateManagerImpl()
throws java.lang.Exception
java.lang.Exception - if error occurs| Method Detail |
public UpdateResult activateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
java.lang.String user)
throws UpdateException,
ObjectException,
DataModifiedException
activateEnterprise in interface UpdateManagercon - connectioneo - EnterpriseObject to be deactivateduser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent usercom.sun.mdm.index.update.UpdateManagerEJB#activateEnterprise
public void addHelper(EnterpriseObject beforeEO,
EnterpriseObject curEO,
java.util.Map changes)
throws ObjectException
beforeEO - image of the EnterpriseObject before the mergecurEO - image of the EnterpriseObject as of nowchanges - diff map of changes
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
public UpdateResult createEnterpriseObject(java.sql.Connection con,
SystemObject so)
throws SystemObjectException,
UpdateException,
ObjectException,
UserException
createEnterpriseObject in interface UpdateManagercon - connection database connectionso - SystemObject used to create EnterpriseObject
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
SystemObjectException - SystemObject access exception
SystemObject access exception
UpdateException - error updating
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#createEnterpriseObject
public UpdateResult createEnterpriseObject(java.sql.Connection con,
SystemObject[] so)
throws SystemObjectException,
UpdateException,
SurvivorCalculationException,
ObjectException,
UserException
createEnterpriseObject in interface UpdateManagercon - connectionso - array of SystemObject used to create the EnterpriseObject
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
SystemObjectException - SystemObject access exception
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#createEnterpriseObject
public UpdateResult deactivateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
java.lang.String user)
throws UpdateException,
ObjectException,
DataModifiedException
deactivateEnterprise in interface UpdateManagercon - connectioneo - EnterpriseObject to be deactivated
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent usercom.sun.mdm.index.update.UpdateManagerEJB#deactivateEnterprise
public UpdateResult mergeEnterprise(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
int flags,
java.lang.String user)
throws SurvivorCalculationException,
SystemObjectException,
ObjectException,
UpdateException,
DataModifiedException,
UserException
EnterpriseObject by transfering all of the
SystemObject from the source to the destination.
mergeEnterprise in interface UpdateManagercon - connectionsrcEO - the source of the transfersdestEO - the destination of the transfersflags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
UpdateException - error updating
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#mergeEnterprise
public UpdateResult mergeEnterprise(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
java.lang.String srcRevisionNumber,
java.lang.String destRevisionNumber,
int flags,
java.lang.String user)
throws SurvivorCalculationException,
SystemObjectException,
ObjectException,
UpdateException,
DataModifiedException,
UserException
EnterpriseObject by transfering all of the
SystemObject from the source to the destination.
mergeEnterprise in interface UpdateManagercon - connectionsrcEO - the source of the transfersdestEO - the destination of the transferssrcRevisionNumber - The SBR revision number or the surviving EnterpriseObjectdestRevisionNumber - The SBR revision number or the merged EnterpriseObjectflags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
UpdateException - error updating
DataModifiedException - data modification by concurrent user
UserException - general user exception
public UpdateResult mergeSystem(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
java.lang.String system,
java.lang.String lid,
SystemObject newSO,
int flags,
java.lang.String user)
throws SurvivorCalculationException,
SystemObjectException,
ObjectException,
UpdateException,
DataModifiedException,
UserException
mergeSystem in interface UpdateManagercon - connectionsrcEO - source of the transferdestEO - destination of the transfersystem - SystemCode of the SystemObject to transferlid - local id of the SystemObject to transfernewSO - merged image of the SystemObjectflags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.* @throws SystemObjectException SystemObject access exception
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
UpdateException - error updating
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#mergeSystem
public UpdateResult mergeSystem(java.sql.Connection con,
EnterpriseObject srcEO,
java.lang.String system,
java.lang.String lid,
SystemObject newSO,
int flags,
java.lang.String user)
throws SurvivorCalculationException,
SystemObjectException,
ObjectException,
UpdateException,
DataModifiedException,
UserException
mergeSystem in interface UpdateManagercon - connectionsrcEO - source of the transfersystem - SystemCode of the SystemObject to be removedlid - local ID of the SystemObject to be removednewSO - merged image of the SystemObjectflags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
UpdateException - error updating
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#mergeSystem
public void removeHelper(EnterpriseObject beforeEO,
java.util.Map changes)
throws ObjectException
beforeEO - image of the EnterpriseObject before the mergechanges - diff map of changes
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
public UpdateResult removeSystem(java.sql.Connection con,
EnterpriseObject srcEO,
java.lang.String system,
java.lang.String lid,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException
removeSystem in interface UpdateManagercon - connectionsrcEO - source EnterpriseObjectsystem - SystemCode of the SystemObject to be removedlid - local ID of the SystemObject to be removeduser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent usercom.sun.mdm.index.update.UpdateManagerEJB#removeSystem
public java.util.Map sameEO(EnterpriseObject eo1,
EnterpriseObject eo2)
throws ObjectException
eo1 - Enterprise Objecteo2 - Enterprise Object
ObjectException - ObjectNode access exception.
public UpdateResult splitSystem(java.sql.Connection con,
java.lang.String system,
java.lang.String lid,
EnterpriseObject eo,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
splitSystem in interface UpdateManagercon - connectionsystem - SystemCodelid - local IDeo - EnterpriseObject to removed the SystemObject from.user - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#splitSystem
public UpdateResult splitSystem(java.sql.Connection con,
SystemObject so,
EnterpriseObject eo,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
splitSystem in interface UpdateManagercon - connectionso - system objec to be split outeo - enterprise object to split fromuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#splitSystem
public UpdateResult transferSystem(java.sql.Connection con,
EnterpriseObject srcEO,
EnterpriseObject destEO,
java.lang.String system,
java.lang.String lid,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException
transferSystem in interface UpdateManagercon - connectionsrcEO - source of the transferdestEO - destination of the transfersystem - system code of the SystemObject to transferlid - local ID of the SystemObject to transferuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent usercom.sun.mdm.index.update.UpdateManagerEJB#transferSystem
public UpdateResult unmergeEnterprise(java.sql.Connection con,
java.lang.String transactionID,
int flag,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
unmergeEnterprise in interface UpdateManagercon - connectiontransactionID - transaction ID to unmergeflag - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#unmergeEnterprise
public void unmergeHelper(EnterpriseObject beforeEO,
EnterpriseObject curEO,
java.util.Map changes)
throws ObjectException
beforeEO - image of the EnterpriseObject before the mergecurEO - image of the EnterpriseObject as of nowchanges - diff map of changes
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
public UpdateResult unmergeSystem(java.sql.Connection con,
java.lang.String transactionID,
int flag,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
unmergeSystem in interface UpdateManagercon - connectiontransactionID - transaction ID of the SystemObject mergeflag - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#unmergeSystem
public UpdateResult updateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
int flags,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
updateEnterprise in interface UpdateManagercon - connectioneo - EnterpriseObject to be updatedflags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#updateEnterprise
public UpdateResult updateEnterprise(java.sql.Connection con,
EnterpriseObject eo,
java.lang.String revisionNumber,
int flags,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
updateEnterprise in interface UpdateManagercon - connectioneo - EnterpriseObject to be updatedrevisionNumber - The revision number of the SBR of the associated SO.flags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exception
public UpdateResult updateEnterprise(java.sql.Connection con,
SystemObject so,
EnterpriseObject eo,
int flags,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
updateEnterprise in interface UpdateManagercon - connectionso - up-to-date SystemObject imageeo - EnterpriseObject that the SystemObject belongs toflags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exceptioncom.sun.mdm.index.update.UpdateManagerEJB#updateEnterprise
public UpdateResult updateEnterprise(java.sql.Connection con,
SystemObject so,
EnterpriseObject eo,
java.lang.String revisionNumber,
int flags,
java.lang.String user)
throws UpdateException,
SurvivorCalculationException,
SystemObjectException,
ObjectException,
DataModifiedException,
UserException
updateEnterprise in interface UpdateManagercon - connectionso - up-to-date SystemObject imageeo - EnterpriseObject that the SystemObject belongs torevisionNumber - The revision number of the SBR of the associated SO.flags - optional flagsuser - user
UpdateResult containing the affected EnterpriseObjects
and transaction ID.
UpdateException - error updating
SurvivorCalculationException - error calculating SBR
SystemObjectException - SystemObject access exception
ObjectException - ObjectNode access exception.
See com.sun.mdm.index.objects.ObjectNode
DataModifiedException - data modification by concurrent user
UserException - general user exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.