|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.ops.TransactionMgrImpl
Transaction Manager implementation
Constructor Summary | |
TransactionMgrImpl()
Constructor to create transaction manager |
Method Summary | |
TMResult |
addEnterpriseObject(java.sql.Connection conn,
EnterpriseObject eo)
Persists a new EnterpriseObject into database: 1. |
TMResult |
euidMerge(java.sql.Connection conn,
EnterpriseObject eo1,
EnterpriseObject eo2)
Merge two EnterpriseObjects in the database. |
TMResult |
euidMerge(java.sql.Connection conn,
EnterpriseObject eo1,
EnterpriseObject eo2,
java.lang.String srcRevisionNumber,
java.lang.String destRevisionNumber)
Merge two EnterpriseObjects in the database. |
TMResult |
euidUnMerge(java.sql.Connection conn,
EnterpriseObject eo1,
EnterpriseObject eo2)
Unmerge an EnterpriseObject in the database. |
TMResult |
euidUnMerge(java.sql.Connection conn,
java.lang.String transactionID,
EnterpriseObject eo1,
EnterpriseObject eo2)
Unmerge two EnterpriseObjects in the database. |
TransactionObject |
findTransactionLog(java.sql.Connection conn,
java.lang.String transId)
Find transaction logs by TransactionObject ID. |
TransactionObject[] |
findTransactionLogs(java.sql.Connection conn,
java.lang.String euid,
java.util.Date beginTS)
Find transaction logs by EUID. |
TransactionObject[] |
findTransactionLogs(java.sql.Connection conn,
java.lang.String euid,
java.util.Date beginTS,
java.util.Date endTS)
Find transaction logs by EUID. |
TransactionObject[] |
findTransactionLogs(java.sql.Connection conn,
java.lang.String systemcode,
java.lang.String lid,
java.util.Date beginTS,
java.util.Date endTS)
Find transaction objects by SystemCode, Local ID, starting time and ending time. |
TransactionObject[] |
findTransactionLogs(java.sql.Connection conn,
TransactionObject tObj,
java.util.Date beginTS,
java.util.Date endTS)
Find transaction objects by TransactionObject, starting time and ending time. |
TransactionObject[] |
findTransactionLogs(java.sql.Connection conn,
TransactionObject tObj,
java.util.Date beginTS,
java.util.Date endTS,
java.lang.String orderBy)
Find transaction objects by TransactionObject, starting time and ending time. |
EnterpriseObject |
getBeforeImage(EnterpriseObject eo)
Apply a delta to an EnterpriseObject to obtain the image before the update was made. |
EnterpriseObject |
getEnterpriseObject(java.sql.Connection conn,
java.lang.String euid)
Invokes Enterprise OPS to retrieve an EnterpriseObject by its EUID: 1.Get list of SystemCode-LID-EUID associations from SBYN_Enterprise table. |
EnterpriseObject |
getEnterpriseObject(java.sql.Connection conn,
java.lang.String euid,
java.lang.String[] epaths)
Retrieves an EnterpriseObject by its EUID and set of Epaths. |
SystemObject |
getSystemObject(java.sql.Connection conn,
java.lang.String systemcode,
java.lang.String lid)
Invokes SystemObject OPS to retrieve a SystemObject by its SystemCode and LocalID. |
SBR |
getSystemSBR(java.sql.Connection conn,
java.lang.String euid)
Invokes SystemSBR OPS to retrieve a SystemSBR by its EUID. |
TMResult |
lidMerge(java.sql.Connection conn,
EnterpriseObject eo1,
EnterpriseObject eo2,
java.lang.String systemcode,
java.lang.String lid1,
java.lang.String lid2)
Merge two system objects in the database. |
TMResult |
lidTransfer(java.sql.Connection conn,
EnterpriseObject eo1,
EnterpriseObject eo2,
java.lang.String systemcode,
java.lang.String lid)
Transfer a SystemObject from one EnterpriseObject to another. |
TMResult |
lidUnMerge(java.sql.Connection conn,
EnterpriseObject eo1,
EnterpriseObject eo2,
java.lang.String systemcode,
java.lang.String lid1,
java.lang.String lid2)
Unmerge two system objects in the database. |
TMResult |
lidUnMerge(java.sql.Connection conn,
EnterpriseObject eo1,
EnterpriseObject eo2,
java.lang.String transactionID,
java.lang.String systemcode,
java.lang.String lid1,
java.lang.String lid2)
LID unmerge: update unmerged EnterpriseObject in database and log the action in transaction facility Unmerge two system objects in the database. |
RecreateResult |
recreateObject(java.sql.Connection conn,
java.lang.String transactionnumber)
Recreate an object by transaction ID. |
TMResult |
updateEnterpriseObject(java.sql.Connection conn,
EnterpriseObject eo,
java.lang.String function)
Updates an EnterpriseObject in the database. |
TMResult |
updateEnterpriseObject(java.sql.Connection conn,
EnterpriseObject eo,
java.lang.String revisionNumber,
java.lang.String function)
Updates an EnterpriseObject in the database. |
TMResult |
updateEnterpriseObject(java.sql.Connection conn,
EnterpriseObject eo,
java.lang.String sysCode,
java.lang.String lid,
java.lang.String function)
Updates an EnterpriseObject in the database. |
TMResult |
updateEnterpriseObject(java.sql.Connection conn,
EnterpriseObject eo,
java.lang.String sysCode,
java.lang.String lid,
java.lang.String revisionNumber,
java.lang.String function)
Updates an EnterpriseObject in the database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionMgrImpl() throws OPSException
Method Detail |
public TMResult addEnterpriseObject(java.sql.Connection conn, EnterpriseObject eo) throws OPSException
addEnterpriseObject
in interface TransactionMgr
conn
- JDBC connection.eo
- EnterpriseObject.
OPSException
- if an error is encountered.public TMResult euidMerge(java.sql.Connection conn, EnterpriseObject eo1, EnterpriseObject eo2) throws OPSException, DataModifiedException
euidMerge
in interface TransactionMgr
conn
- JDBC connection.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult euidMerge(java.sql.Connection conn, EnterpriseObject eo1, EnterpriseObject eo2, java.lang.String srcRevisionNumber, java.lang.String destRevisionNumber) throws OPSException, DataModifiedException
euidMerge
in interface TransactionMgr
conn
- JDBC connection.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.srcRevisionNumber
- The SBR revision number of the surviving EnterpriseObject.destRevisionNumber
- The SBR revision number of the merged EnterpriseObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult euidUnMerge(java.sql.Connection conn, EnterpriseObject eo1, EnterpriseObject eo2) throws OPSException, DataModifiedException
euidUnMerge
in interface TransactionMgr
conn
- JDBC connection.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult euidUnMerge(java.sql.Connection conn, java.lang.String transactionID, EnterpriseObject eo1, EnterpriseObject eo2) throws OPSException, DataModifiedException
euidUnMerge
in interface TransactionMgr
conn
- JDBC connection.transactionID
- Transaction number of the original merge operation.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TransactionObject findTransactionLog(java.sql.Connection conn, java.lang.String transId) throws OPSException
findTransactionLog
in interface TransactionMgr
conn
- JDBC connection.transId
- Transaction ID.
OPSException
- if an error is encountered.public TransactionObject[] findTransactionLogs(java.sql.Connection conn, java.lang.String euid, java.util.Date beginTS) throws OPSException
conn
- JDBC connection.euid
- EUIDbeginTS
- start timestamp
OPSException
- if an error is encountered.public TransactionObject[] findTransactionLogs(java.sql.Connection conn, java.lang.String euid, java.util.Date beginTS, java.util.Date endTS) throws OPSException
findTransactionLogs
in interface TransactionMgr
conn
- JDBC connection.euid
- EUID.beginTS
- Starting timestamp.endTS
- Ending timestamp.
OPSException
- if an error is encountered.public TransactionObject[] findTransactionLogs(java.sql.Connection conn, java.lang.String systemcode, java.lang.String lid, java.util.Date beginTS, java.util.Date endTS) throws OPSException
findTransactionLogs
in interface TransactionMgr
conn
- JDBC connection.systemcode
- System code.lid
- Local ID.beginTS
- Starting timestamp.endTS
- Ending timestamp.
OPSException
- if an error is encountered.public TransactionObject[] findTransactionLogs(java.sql.Connection conn, TransactionObject tObj, java.util.Date beginTS, java.util.Date endTS) throws OPSException
findTransactionLogs
in interface TransactionMgr
conn
- JDBC connection.tObj
- TransactionObject.beginTS
- Starting timestamp.endTS
- Ending timestamp.
OPSException
- if an error is encountered.public TransactionObject[] findTransactionLogs(java.sql.Connection conn, TransactionObject tObj, java.util.Date beginTS, java.util.Date endTS, java.lang.String orderBy) throws OPSException
findTransactionLogs
in interface TransactionMgr
conn
- JDBC connection.tObj
- TransactionObject.beginTS
- Starting timestamp.endTS
- Ending timestamp.orderBy
- Order by clause.
OPSException
- if an error is encountered.public EnterpriseObject getBeforeImage(EnterpriseObject eo) throws OPSException
getBeforeImage
in interface TransactionMgr
eo
- EnterpriseObject to which the delta is applied.
OPSException
- if an error is encountered.public EnterpriseObject getEnterpriseObject(java.sql.Connection conn, java.lang.String euid) throws OPSException
getEnterpriseObject
in interface TransactionMgr
conn
- JDBC connection.euid
- EUID.
OPSException
- if an error is encountered.public EnterpriseObject getEnterpriseObject(java.sql.Connection conn, java.lang.String euid, java.lang.String[] epaths) throws OPSException
getEnterpriseObject
in interface TransactionMgr
conn
- JDBC connection.euid
- EUIDepaths
- list of Epaths
OPSException
- if an error is encountered.public SystemObject getSystemObject(java.sql.Connection conn, java.lang.String systemcode, java.lang.String lid) throws OPSException
getSystemObject
in interface TransactionMgr
conn
- JDBC connection.systemcode
- System code.lid
- Local ID.
OPSException
- if an error is encountered.public SBR getSystemSBR(java.sql.Connection conn, java.lang.String euid) throws OPSException
getSystemSBR
in interface TransactionMgr
conn
- JDBC connection.euid
- EUID.
OPSException
- if an error is encountered.public TMResult lidMerge(java.sql.Connection conn, EnterpriseObject eo1, EnterpriseObject eo2, java.lang.String systemcode, java.lang.String lid1, java.lang.String lid2) throws OPSException, DataModifiedException
lidMerge
in interface TransactionMgr
conn
- JDBC connection.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.systemcode
- System code for both SystemObjects.lid1
- Surviving SystemObject.lid2
- Merged SystemObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult lidTransfer(java.sql.Connection conn, EnterpriseObject eo1, EnterpriseObject eo2, java.lang.String systemcode, java.lang.String lid) throws OPSException, DataModifiedException
lidTransfer
in interface TransactionMgr
conn
- JDBC connection.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.systemcode
- System code for both SystemObjects.lid
- Local ID of the transferred SystemObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult lidUnMerge(java.sql.Connection conn, EnterpriseObject eo1, EnterpriseObject eo2, java.lang.String systemcode, java.lang.String lid1, java.lang.String lid2) throws OPSException, DataModifiedException
lidUnMerge
in interface TransactionMgr
conn
- JDBC connection.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.systemcode
- System code for both SystemObjects.lid1
- Surviving SystemObject.lid2
- Merged SystemObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult lidUnMerge(java.sql.Connection conn, EnterpriseObject eo1, EnterpriseObject eo2, java.lang.String transactionID, java.lang.String systemcode, java.lang.String lid1, java.lang.String lid2) throws OPSException, DataModifiedException
lidUnMerge
in interface TransactionMgr
conn
- JDBC connection.eo1
- Surviving EnterpriseObject.eo2
- Merged EnterpriseObject.transactionID
- Transaction ID of the original merge operation.systemcode
- System code for both SystemObjects.lid1
- Surviving SystemObject.lid2
- Merged SystemObject.
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public RecreateResult recreateObject(java.sql.Connection conn, java.lang.String transactionnumber) throws OPSException
recreateObject
in interface TransactionMgr
conn
- JDBC connection.transactionnumber
- Transaction ID.
OPSException
- if an error is encountered.public TMResult updateEnterpriseObject(java.sql.Connection conn, EnterpriseObject eo, java.lang.String function) throws OPSException, DataModifiedException
updateEnterpriseObject
in interface TransactionMgr
conn
- JDBC connection.eo
- EnterpriseObject to update.function
- This is the update function: "Update", "euidActivate",
"euidDeactivate", "lidActivate", or "lidDeactivate".
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult updateEnterpriseObject(java.sql.Connection conn, EnterpriseObject eo, java.lang.String revisionNumber, java.lang.String function) throws OPSException, DataModifiedException
updateEnterpriseObject
in interface TransactionMgr
conn
- JDBC connection.eo
- EnterpriseObject to update.revisionNumber
- The revision number of the SBR of the associated EO.function
- This is the update function: "Update", "euidActivate",
"euidDeactivate", "lidActivate", or "lidDeactivate".
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult updateEnterpriseObject(java.sql.Connection conn, EnterpriseObject eo, java.lang.String sysCode, java.lang.String lid, java.lang.String function) throws OPSException, DataModifiedException
updateEnterpriseObject
in interface TransactionMgr
conn
- JDBC connection.eo
- EnterpriseObject to update.sysCode
- System code of the SystemObject causing the update.lid
- Local ID of the SystemObject causing the update.function
- This is the update function: "Update", "euidActivate",
"euidDeactivate", "lidActivate", or "lidDeactivate".
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.public TMResult updateEnterpriseObject(java.sql.Connection conn, EnterpriseObject eo, java.lang.String sysCode, java.lang.String lid, java.lang.String revisionNumber, java.lang.String function) throws OPSException, DataModifiedException
updateEnterpriseObject
in interface TransactionMgr
conn
- JDBC connection.eo
- EnterpriseObject to update.sysCode
- System code of the SystemObject causing the update.lid
- Local ID of the SystemObject causing the update.revisionNumber
- The revision number of the SBR of the associated EO.function
- This is the update function: "Update", "euidActivate",
"euidDeactivate", "lidActivate", or "lidDeactivate".
OPSException
- if an error other than a DataModifiedException
is encountered.
DataModifiedException
- if the record has been modified by
another user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.