Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

oracle.express.olapi.transaction
Class PrepareLockException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oracle.olapi.transaction.NotCommittableException
                    |
                    +--oracle.express.olapi.transaction.PrepareLockException

public class PrepareLockException
extends NotCommittableException
implements HasLocalizedMessage

Indicates that another Transaction must be prepared and committed before the current Transaction can be prepared. This exception occurs when, for example, you create a child Transaction, t2, of a parent Transaction, t1, then create a child Transaction, t3, of t2, and then you try to prepare and commit t2 before you prepare and commit t3. You must either prepare and commit, or rollback, the child Transaction t3 before you can prepare and commit the parent Transaction t2.

See Also:
Serialized Form

Method Summary
java.lang.String getLocalizedMessage()
Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running.
java.lang.String getLocalizedMessage(java.util.Locale locale)
Gets a message in the language of the specified Locale.
Transaction getLockTransaction()
Gets the Transaction that must be prepared and committed or rolled back before you can prepare and commit the Transaction returned by the getSubtransaction method.
java.lang.String getMessage()
Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running.
Transaction getSubtransaction()
Gets the Transaction the preparation of which caused this exception to occur.

Methods inherited from class java.lang.Throwable
fillInStackTrace, printStackTrace, printStackTrace, printStackTrace, toString

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
                                     throws java.util.MissingResourceException
Gets a message in the language of the specified Locale.
Specified by:
getLocalizedMessage in interface HasLocalizedMessage
Parameters:
locale - The Locale that specifies the language of the message.
Returns:
A message in the language of the specified Locale.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running.
Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
A message in the language of the default Locale.

getMessage

public java.lang.String getMessage()
Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running. This method returns the same message as the getLocalizedMessage method with no Locale parameter specified.
Overrides:
getMessage in class java.lang.Throwable
Returns:
A message in the language of the default Locale.

getSubtransaction

public Transaction getSubtransaction()
Gets the Transaction the preparation of which caused this exception to occur.
Returns:
The Transaction the preparation of which failed.

getLockTransaction

public Transaction getLockTransaction()
Gets the Transaction that must be prepared and committed or rolled back before you can prepare and commit the Transaction returned by the getSubtransaction method.
Returns:
The Transaction that was already prepared.

Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

Copyright © 2002, 2005, Oracle. All rights reserved.