19992016 Ericsson AB. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. CosTransactions_SubtransactionAwareResource 1999-04-12 PA1
CosTransactions_SubtransactionAwareResource This module implements the OMG CosTransactions::SubtransactionAwareResource interface.

This interface inherits the CosTransactions::Resource interface. Hence, it must also support all operations defined in the Resource interface.

To get access to the record definitions for the structures use:

-include_lib("cosTransactions/include/CosTransactions.hrl").

commit_subtransaction(SubtransactionAwareResource, Coordinator) -> Return Notify the target object that the transaction has committed SubtransactionAwareResource = #objref Coordinator = #objref Return = ok

If the SubtransactionAwareResource have been registered with a subtransaction using the operation CosTransactions_Coordinator:register_subtran_aware/2, it will be notified when the transaction has committed.

The results of a committed subtransaction are relative to the completion of its ancestor transactions, that is, these results can be undone if any ancestor transaction is rolled back.

rollback_subtransaction(SubtransactionAwareResource) -> Return Notify the target object that the transaction has been rolled back SubtransactionAwareResource = #objref Return = ok

If the SubtransactionAwareResource have been registered with a transactions using the operation CosTransactions_Coordinator:register_subtran_aware/2 it will be notified when the transaction has rolled back.