|
Oracle® OLAP Java API Reference 11g Release 2 (11.2) E10794-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.olapi.OLAPIRuntimeException
oracle.olapi.transaction.WriteLockException
public class WriteLockException
Indicates that the TransactionProvider cannot create a write
Transaction at this time.
This exception occurs, for example, in an application that has a
Source produced by a Template.
The Source is active in a parent Transaction and the
application has begun two child Transaction objects.
If the application changes the state of the Template in one child
Transaction and then attempts to change the state of the
Template in the other child without having first prepared and
committed the first child Transaction into the parent
Transaction, then the TransactionProvider produces
this exception.
| Constructor Summary | |
|---|---|
WriteLockException(MetadataState state,
Transaction transaction,
Transaction activeTransaction)
Creates a WriteLockException. |
|
| Method Summary | |
|---|---|
Transaction |
getActiveTransaction()
Gets the Transaction in which the MetadataState
is currently being changed. |
MetadataState |
getMetadataState()
Gets the MetadataState that cannot change state
in the Transaction returned by the getTransaction
method because the MetadataState is active in the
Transaction returned by the getActiveTransaction
method. |
Transaction |
getTransaction()
Gets the Transaction in which the attempt to change a
MetadataState failed because the MetadataState
is not active in the Transaction. |
| Methods inherited from class oracle.olapi.OLAPIRuntimeException |
|---|
getLocalizedMessage, getLocalizedMessage, toString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WriteLockException(MetadataState state,
Transaction transaction,
Transaction activeTransaction)
WriteLockException.
state - The MetadataState that cannot change state.transaction - The Transaction in which the attempt to
change the MetadataState failed.activeTransaction - The Transaction in which the
MetadataState is active.| Method Detail |
|---|
public MetadataState getMetadataState()
MetadataState that cannot change state
in the Transaction returned by the getTransaction
method because the MetadataState is active in the
Transaction returned by the getActiveTransaction
method.
MetadataState that cannot change state.public Transaction getTransaction()
Transaction in which the attempt to change a
MetadataState failed because the MetadataState
is not active in the Transaction.
Transaction in which the attempt to change the
MetadataState failed.public Transaction getActiveTransaction()
Transaction in which the MetadataState
is currently being changed.
This Transaction must be prepared and committed, or rolled back,
before another Transaction can change the MetadataState.
Transaction in which the MetadataState
is active.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||